[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: python does not seem to find installed modules



On Fri, Oct 12, 2001 at 10:30:02PM +0000, Johann Spies wrote:
| I am still struggling to get wxPython to work.
| 
| The following happens when I try to run a program "taalunie.py" which
| I wrote earlier:
| 
| -------------------------------------------
| Gdk-WARNING **: locale not supported by C library
| Traceback (innermost last):
|   File "<stdin>", line 18, in ?
|   File "wx.py", line 6, in ?
|   File "misc2.py", line 4, in ?
|     from windows import *
|   File "windows.py", line 8, in ?
|     from clip_dnd import *
| ImportError: No module named clip_dnd
| ------------------------------
| 
| $locate clip_dnd
| /usr/lib/python1.5/site-packages/wxPython/clip_dnd.py
| /usr/lib/python1.5/site-packages/wxPython/clip_dnd.pyc
| /usr/lib/python1.5/site-packages/wxPython/clip_dnd.pyo
| 
| I have tried to set $PYTHONHOME and $PYTHONPATH to /usr/lib/python1.5
| but that did not help.
| 
| I this a bug in the debian python packages?  All previous versions of
| python in debian I have used was usable right after installation.
| This one (Woody - from unofficial CD's) not.

I'm not positive, but I think it might be.  When I installed
libwxgtk2.2-python (just a minute ago) I could not 'import wx'.  I
think the package needs to install a .pth file  so that python knows
the .../wxPython directory is a directory containing a package, not a
module of itself.

-D



Reply to: