Import Error with embedded python

L

Lane Brooks

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top