Hi,
When i am trying to execute python module as shown below it it running sucessfully on some machine but on others m/c it is showing following error msg:
C:\Python24>python subcontentitem.py d:\base\cnt139459a.xml
Traceback (most recent call last):
File "subcontentitem.py", line 1, in ?
import sys, os, re, random, Ft.Xml.Domlette
ImportError: No module named Ft.Xml.Domlette
Please do the needful ASAP.
Thanks and Regards,
Arun Jain
On a machine which succeeds at running type
import sys
print sys.path
in the python command line.
In one of the directories in that list there is probably a directory tree
"Ft/Xml/" with the Domlette file in it.
If this tree exists on the machines on which running fails, you can move it to match the other installations or add the path to the Ft directory to sys.path in one of several way:
1. sys.path.append(r"absolute/file/path")
2. edit $PYTHONPATH environment variable to include the path
3. create a textfile (say ftpath).pth with the path in it and store it somewhere where python looks by default (say) sitepackages