Import Error with embedded python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lane Brooks

    #1

    Import Error with embedded python

    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.rea der 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
Working...