Python module installed or not installed?

ChrisJ

New Member
How can I check if my Python module is successfully installed.I did:\[code\]python setup.py install\[/code\]inside the folder where my module was downloaded.Now, I can see that this resulted in a folder inside this location:\[code\]/usr/lib/python2.4/site-packages (I can see my module folder is inside here)\[/code\]Now I am using PHP to execute a script from this module:\[code\]exec("/usr/bin/python /usr/lib/python2.4/site-packages/MyModule/myModule script.py -v pixfx.xml 2>&1", $output, $return);\[/code\]This runs the script.py file but does not load modules which this script requires.This script has code like this:\[code\]#! /usr/bin/env python import sys import os import getopt import re from myModule.ttLib import TTFont // this is line60 as I have removed comments\[/code\]I get this error:\[code\]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\[/code\]Does this mean there could be some problem with the way my module was installed.orHow do I check if the module is installed correctly....I also tried to do this in SSH terminal:\[code\]help('modules')\[/code\]This listed a load of modules but my module name was missing.Any help? EDIT {Solved} **Reinstalling the module solved it.Its funny that what I used online SSH tool provided by Mediatemple, it didnt install the module correctly.Later when I installed using Terminal from my Mac computer, everything worked.Just thought I will add this for other who might face similar problem.Thanks
 
Back
Top