[Tutor] another Module / import problem
Kathrin Kirsch
vishnja@web.de
Wed, 27 Jun 2001 00:00:52 +0200
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"
Kathrin
Am Dienstag, 26. Juni 2001 22:37 schrieb Kathrin Kirsch:
> Hi,
> 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
>
>
>
> I installed the tkinter version 2.1.2:
> If I try a "locate tkinter" I get this one:
>
> /usr/lib/apache/lib/python2.0/lib-dynload/_tkinter.so
> /usr/lib/python2.0/lib-dynload/_tkinter.so
> /usr/lib/python2.0/site-packages/Gtkinter.py
> /usr/lib/python2.0/site-packages/Gtkinter.pyc
> /usr/lib/python2.0/site-packages/Gtkinter.pyo
> /usr/lib/python2.1/lib-dynload/_tkinter.so
> /usr/lib/python2.1/site-packages/Gtkinter.py
> /usr/lib/python2.1/site-packages/Gtkinter.pyc
> /usr/lib/python2.1/site-packages/Gtkinter.pyo
>
> But there is no dir python2.0 anymore. The tkinter modules are
> now in /usr/lib/python2.1/lib-tk.
> So how can I tell my system?
>
>
> Greeting, Kathrin
>
>
> _______________________________________________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor