Jump to content


Photo

[Solved] Python Module Install Request On Johnny

python module install johnny

  • This topic is locked This topic is locked
2 replies to this topic

#1 tarun7si2

tarun7si2

    Newbie

  • Members
  • 6 posts

Posted 27 December 2016 - 10:20 AM

I am new to heliohost.

I am running a python script which needs module tweepy. www.tweepy.org

 

can you please install python module tweepy. 

 

I am trying to run a script which demand this.

 

I tried installing using comand "pip install tweepy" cron job. but it gives error says pip command not found.

 

i am on johnny server.

 

Thanks and you guys are doing great job.



#2 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 11,887 posts
  • Gender:Not Telling

Posted 29 December 2016 - 04:17 AM

Does it work now?

#3 tarun7si2

tarun7si2

    Newbie

  • Members
  • 6 posts

Posted 29 December 2016 - 07:56 AM

Thanks for processing this request, and it is working now.

 

http://tarun7singh.h...st.org/test.cgi

 

For all others trying to import modules that are not available, i found a workaround for it.

 

I will try to explain it as best as i can (I tested it on Ubuntu) -

 

1. download and install module on your computer (let's say tweepy)

 

2. upload all the files related to a folder with name of module (for this case tweepy)

 

3. add these lines before your code. (for enabling debugging)

#enable debugging
import cgitb
cgitb.enable()

4. now import sys module and append path to your library. (in this case my module folder was in public_html)

import sys
sys.path.append("/tweepy")
import tweepy

5. You have to do this for all the other libraries required by your library. It will start working.

 

Hope this helps.







Also tagged with one or more of these keywords: python, module, install, johnny

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users