How to check if my Python module is installed successfully.
I did:
python setup.py install
inside the folder where my module was loaded.
Now I see that this led to the creation of a folder inside this place:
/usr/lib/python2.4/site-packages (I can see my module folder is inside here)
Now I use PHP to execute the script from this module:
exec("/usr/bin/python /usr/lib/python2.4/site-packages/MyModule/myModule script.py -v pixfx.xml 2>&1", $output, $return);
Executes the script.py file, but does not load the modules that require this script. This script has this code:
import sys
import os
import getopt
import re
from myModule.ttLib import TTFont // this is line60 as I have removed comments
I get this error:
Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/MyModule/myModule/script.py", line 60, in ? from myModule.ttLib import TTFont ImportError: No module named myModule.ttLib
Does this mean that there may be a problem installing my module. or How to check if the module is installed correctly ...
I also tried to do this in the SSH terminal:
help('modules')
The module loading is indicated here, but my module name is missing.
Any help?
****** {} ******
.
, - SSH, Mediatemple, .
, Mac, .
, , .