Jump to content

[Hh#52376] Python Module Install Request On Johnny


Recommended Posts

Posted

Hi HelioHost!

 

I'm on Johnny server and need access to Python modules: requests and pygsheets

Requests: http://docs.python-requests.org/en/master/user/install/

Pygsheets: https://github.com/nithinmurali/pygsheets

 

Could you help me install these modules onto the server?

 

Also, is there a place where I can check which modules are installed on the servers by default? Or can I assume whatever modules come with a regular Python install will be what's installed on the servers?

 

Thank you very much!

Posted

I am using Python 2 instead of Python 3. It seems like there are not that m=

any modules on the server. I am kind of new to this but in my script, I am =

importing cgitb, requests, pygsheets, and time. Could you help me install t=

hese if they're not already on the server? Thank you!=0A=

=0A=

________________________________________=0A=

Posted

Python 2.6.6 on Johnny is too old to install modules globally. I believe you can still include the module using something like https://stackoverflow.com/questions/279237/import-a-module-from-a-relative-path Let us know if you need more help. We could also install the latest Python 2.7 version on Johnny if that works better for you. Python 2.7.x would be able to have new modules installed where 2.6.6 cannot.

Posted

Oh that would be great if you could install the latest Python 2.7 version. =

Just confirming, you would be able to install the new modules too if Johnny=

is updated to 2.7.x? Either way, updating to the latest 2.7 version would =

be greatly appreciated. Thank you!=0A=

________________________________________=0A=

Posted

Hey, thanks for updating the python version. However, I do not see pygsheet=

s as an installed modules. My script also does not run because when importi=

ng pygsheets, it says no module named pygsheets. Could you check on that ag=

ain for me? Thank you very much!=0A=

________________________________________=0A=

Posted

Actually, never mind. I just didn't specify python2.7 in my script. It's al=

l working now. Thank you so much for quick and top notch support!=0A=

________________________________________=0A=

Posted

I noticed that too. Even though pygsheets doesn't show up in that modules list it still works when you import it. Not sure why the modules27.py script doesn't list it.

Guest
This topic is now closed to further replies.
×
×
  • Create New...