[Tutor] Unable to import xxx.pyd
URBAN LANDREMAN
ulandreman at msn.com
Thu May 25 21:20:20 CEST 2006
I'm debugging a program where I'm trying to import a file named xxx.pyd.
I test the logic interactively with IDLE and see that it makes a difference
on which directory the file xxx.pyd is located. That is, I can get it to
work when xxx.pyd is on the path.
However, when I run the program in batch
#!/usr/local/bin/python
import cgitb; cgitb.enable()
print "Content-type: text/html"
print
print "<pre>"
import sys
print sys.path
import xxx
I get the error message: No module named xxx, even though I know that the
file xxx.pyd is on the path. If I put a file xxx.py in the same folder, the
system finds that file.
The file xxx.pyd has security numeric value 755, so the system should be
able to find it.
I'm baffled.
Any suggestions of what my be causing the system to not find xxx.pyd?
Thanks.
Urban Landreman
More information about the Tutor
mailing list