[Tutor] another Module / import problem
Bruce Sass
bsass@freenet.edmonton.ab.ca
Wed, 27 Jun 2001 02:03:50 -0600 (MDT)
On Wed, 27 Jun 2001, Kathrin Kirsch wrote:
> ok, I updated my db, so now the locate message is:
>
> /usr/lib/python/rhtkinter.py
> /usr/lib/python/rhtkinter.pyc
> /usr/lib/python2.1/lib-dynload/_tkinter.so
> /usr/lib/python2.1/lib-tk/Tkinter.py
> /usr/lib/python2.1/lib-tk/Tkinter.pyc
> /usr/lib/python2.1/lib-tk/Tkinter.pyo
>
> And.. I cannot load any other modules (like cgi.py) either
> "import cgi
> File "/usr/lib/python2.1/cgi.py", line 39, in ?
> import urllib
> File "/usr/lib/python2.1/urllib.py", line 26, in ?
> import socket
> File "/usr/lib/python2.1/socket.py", line 41, in ?
> from _socket import *
> ImportError: shared object not open"
So, it can't find /usr/lib/python-2.1/lib-dynload/_socket.so...
> > I got a similiar problem using tkinter since installing python 2.1 on
> > linux.
> >
> > The error message looks like:
> > File "/usr/lib/python2.1/lib-tk/Tkinter.py", line 35, in ?
> > import _tkinter # If this fails your Python may not be configured for
> > Tk ImportError: shared object not open
...which is also a .../lib-dynload error, this time with _tkinter.so
Is lib-dynload is sys.path?
ld.so doesn't need to know about them, well...
ldconfig -p | grep lib-dynload
has no output on my system, and everything works.
- Bruce
p.s. - Just curious, whose packages and which version of the
distribution, or did you build from source into /usr?