Jump to content

alphaNNN

Members
  • Posts

    5
  • Joined

  • Last visited

alphaNNN's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Didn't work. #!/usr/local/bin/python2.7 import sys sys.path.append("/home/<my username>/public_html/cgi-bin/praw") import praw from datetime import datetime print("content-type: text/html\n\n") print(datetime.today().day) Always hangs up on "import praw".
  2. I'm trying to import a Python lib (praw) from a subdirectory. It works fine on my test machine, but not on Johnny. I'm using the exact same directory structure, with the praw directory (which contains the __init__.py) as a subdir. Since we don't have console access I'm not sure how to troubleshoot this. #!/usr/local/bin/python2.7 from datetime import datetime from praw import Reddit print("content-type: text/html\n\n") print(datetime.today().day)
  3. Johnny. I have no idea what Python version, probably the default one. Since I have your attention: how do I schedule the execution of py scripts? Do you provide something similar to cron jobs?
  4. I need pip, which I then use to install beautifulsoup4 and praw.
  5. How do I get a Python console to install some libraries if there's no SSH?
×
×
  • Create New...