[wxPython] import error

I am a debian user and debian is never up to date with wxpython. I
have tried to build my own debian packages using the make-deb script
in CVS, but it failed (I have asked a question about this in another
message, but so far got no reply). Then I tried to build wxWindows and
wxPython. Not everything worked exactly as it was put in the
instructions, but I did build and install wxWindows and wxPython.

WxWindows was installed in /usr/local/. Then I had to build wxPython
separately and installed it. I thought I gave
DESTDIR=/usr/local/lib/python1.5 but maybe I made a mistake and "build
-i" installed wxPython in /usr/lib/python1.5/site-packages/wxPython.

When I try to run wxpython the following happens:

···

-------------------------
jhspies-15:01:27-/usr/lib/python1.5/site-packages/wxPython$python
Python 1.5.2 (#0, Feb 26 2000, 17:14:29) [GCC 2.95.2 20000116 (Debian GNU/Linux)] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam

import wx

Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/usr/local/bin/../../../usr/lib/python1.5/site-packages/wxPython/wx.py", line 2, in ?
    import wxc
ImportError: libwx_gtkd.so: cannot open shared object file: No such file or directory

------------------

I linked the .so files in /usr/local/lib to the directory where wx.py
is in e.g.:

lrwxrwxrwx 1 root root 31 Jun 17 14:47 libwx_gtk-2.2.so -> /usr/local/lib/libwx_gtk-2.2.so*
lrwxrwxrwx 1 root root 27 Jun 17 14:47 libwx_gtk.so -> /usr/local/lib/libwx_gtk.so*
lrwxrwxrwx 1 root root 32 Jun 17 14:47 libwx_gtkd-2.2.so -> /usr/local/lib/libwx_gtkd-2.2.so*
lrwxrwxrwx 1 root root 28 Jun 17 14:47 libwx_gtkd.so -> /usr/local/lib/libwx_gtkd.so*
-rwxr-xr-x 1 root root 4935314 Jun 17 14:22 wxcmodule.so*

But I still get the error. I have run ldconfig several times.

It is a frustration to work like this after thinking that I could end
up with a few debian packages by just running make-deb.

Can somebody help me to get wxPython working without having to do
everything over?

Johann.
--
J.H. Spies, Hugenotestraat 29, Posbus 80, Franschhoek, 7690, South Africa
Tel/Faks 021-876-2337 Sel/Cell 082 898 1528(Johann) 082 255 2388(Hester)
     "Many are the afflictions of the righteous; but the
      LORD delivereth him out of them all."
                                   Psalms 34:19

Johann Spies <jhspies@adept.co.za> writes:

But I still get the error. I have run ldconfig several times.

I can't help you with this part. I myself run Debian and I have run
into this problem in the past, but it has been a while since I build
wx from source and I don't remember the fix.

It is a frustration to work like this after thinking that I could end
up with a few debian packages by just running make-deb.

If you check out the CVS tree you should be able to run make-deb. That
is how I have been building the source lately. make-deb may need some
files that are only in the cvs tree and not in the release source
archives.

later,
joseph

···

--
the "LaterDude" @ (martinja@ice-works.com || ICQ #52640402)
http://www.ice-works.com/personal/LaterDude/index.html

All opinions expressed are my own and not necessarily those of
my employer unless otherwise noted.

I am having the same problem on a Suse Linux machine.
I am also interested in a solution.

Paul Casteels casteels@uia.ua.ac.be Tel: +32.3.8202455
            Fax: +32.3.8202470
University of Antwerp Dpt.Physics
Universiteitsplein 1
B-2610 Wilrijk
Belgium

···

On Sat, 17 Jun 2000, Johann Spies wrote:

When I try to run wxpython the following happens:
-------------------------
jhspies-15:01:27-/usr/lib/python1.5/site-packages/wxPython$python
Python 1.5.2 (#0, Feb 26 2000, 17:14:29) [GCC 2.95.2 20000116 (Debian GNU/Linux)] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import wx
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/usr/local/bin/../../../usr/lib/python1.5/site-packages/wxPython/wx.py", line 2, in ?
    import wxc
ImportError: libwx_gtkd.so: cannot open shared object file: No such file or directory
>>>

After a previous message of you with the same sort of information I
got my source from
http://www.lpthe.jussieu.fr/~zeitlin/wxWindows/daily/Linux-2.2.2-i686-gtk/wxWindows.tar.gz.
I thought that was the CVS tree. I am a bit uneducated as far as CVS
is concerned. I found a make-deb script, but it ended in an error
message as was mentioned in a previous message with the subject line
"make-deb problem".

Johann.

···

On Sat, Jun 17, 2000 at 09:31:50AM -0400, Joseph A. Martin (The LaterDude) wrote:

If you check out the CVS tree you should be able to run make-deb. That
is how I have been building the source lately. make-deb may need some
files that are only in the cvs tree and not in the release source
archives.

--
J.H. Spies, Hugenotestraat 29, Posbus 80, Franschhoek, 7690, South Africa
Tel/Faks 021-876-2337 Sel/Cell 082 898 1528(Johann) 082 255 2388(Hester)
     "Many are the afflictions of the righteous; but the
      LORD delivereth him out of them all."
                                   Psalms 34:19