Page 1 of 1

Import cherry.py problems

Posted: April 23rd, 2011, 2:41 pm
by Hitman9921
test.py its an exact copy of the beginning of sabnzbd's startup script and it STILL DOESN'T WORK. Any suggestions/solutions?

Error: According to several forum posts all you need to do run run cherrypy from the source directory is import cherrypy? Even if I am in the cherrypy folder when you call import cherrypy it wont find it


it will give the error: Traceback (most recent call last): File "./tutorial/tut01_helloworld.py", line 8, in import cherrypy ImportError: No module named cherrypy

There are __init__.py files in every folder in the source folder so they should all be viewed as modules

Can someone please help? Thanks,
hitman9921

Re: Import cherry.py problems

Posted: April 24th, 2011, 12:44 am
by sander
First of all: this does not sound like a SABnzbd problem, so maybe this post / thread will get locked or deleted.

Is your test.py in the same directory as SABnzbd.py? It works for me that way.

Oh, and which OS are you using?