Import Error with embedded python
Lane Brooks
lbrooks at MIT.EDU
Thu Mar 15 23:34:35 EDT 2007
When I run a particular python script from an embedded interpreter, I
get the following ImportError:
File "di.py", line 14, in load
from xml.dom.ext.reader import Sax2
File
"/usr/lib64/python2.4/site-packages/_xmlplus/dom/ext/reader/__init__.py",
line 14, in ?
import string, urllib2, urlparse, cStringIO, os
File "/usr/lib64/python2.4/urllib2.py", line 90, in ?
import base64
File "/usr/lib64/python2.4/base64.py", line 9, in ?
import struct
ImportError: /usr/lib64/python2.4/lib-dynload/structmodule.so: undefined
symbol: PyExc_TypeError
However, running the same script from the command line does not produce
this error. Any ideas as to what I need to do to get the embedded
interpreter setup to not produce this error?
The platform is Linux x86_64.
Thanks,
Lane
More information about the Python-list
mailing list