[[wxPython] import error]

[...]
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?

I had similar problem and soved it by inserting /usr/local/lib in
/etc/ld.so.config (on RedHat)

Niki Spahiev
e-mail: niki@vintech.bg

···

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

____________________________________________________________________
Get free email and a permanent address at Net@ddress Mail

Thanks Niki! You are a star. It solved my problem.

Johann.

···

On Sun, Jul 27, 2036 at 12:44:37AM +0200, Niki Spahiev wrote:

I had similar problem and soved it by inserting /usr/local/lib in
/etc/ld.so.config (on RedHat)

--
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)
     "My son, if sinners entice thee, consent thou not."
                               Proverbs 1:10

It does not work for me (Suse). I have /etc/ld.so.conf that contained
/usr/local/lib. I copied it to /etc/ld.so.config, but I still get :

Traceback (innermost last):
  File "demo.py", line 3, in ?
    import Main
  File "Main.py", line 15, in ?
    from wxPython.wx import *
  File "/usr/local/lib/python1.5/site-packages/wxPython/__init__.py", line
20, in ? import wxc
ImportError: libwx_gtk.so: cannot open shared object file: No such file or
directory

Paul Casteels

···

On Mon, 19 Jun 2000, Johann Spies wrote:

On Sun, Jul 27, 2036 at 12:44:37AM +0200, Niki Spahiev wrote:
> I had similar problem and soved it by inserting /usr/local/lib in
> /etc/ld.so.config (on RedHat)

Thanks Niki! You are a star. It solved my problem.

Johann.
--

Paul,

It does not work for me (Suse). I have /etc/ld.so.conf that contained
/usr/local/lib. I copied it to /etc/ld.so.config, but I still get :

On my system (debian) it is actually /etc/ld.so.conf. Try and locate
libwx_gtk.so on your system (using "locate" or "find") and see whether
it is on the path indicated in /etc/ld.so.conf. If it is not, add the
path to your /etc/ld.so.conf. If your problem was caused by the same
configuration problem as mine that should solve it.

Did you run ldconfig as root after installing wxPython/wxWindows?

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)
     "There is therefore now no condemnation to them which
      are in Christ Jesus, who walk not after the flesh, but
      after the Spirit." Romans 8:1

Johann,

Thanks, ldconfig made this dissapear. I still don't undersstand why the
wxGTK samples did work without problems. I suppose they also need
libwx_gtk.so ?
I am still having problems, and cannot compare with my failing wxPython
demo on our Compaq/Alpha machine. Now I get :
  Gdk-ERROR **: Fatal IO error 0 (Success) on X server pcevs12:0.
Other X applications work fine.

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 Tue, 20 Jun 2000, Johann Spies wrote:

Paul,

> It does not work for me (Suse). I have /etc/ld.so.conf that contained
> /usr/local/lib. I copied it to /etc/ld.so.config, but I still get :

On my system (debian) it is actually /etc/ld.so.conf. Try and locate
libwx_gtk.so on your system (using "locate" or "find") and see whether
it is on the path indicated in /etc/ld.so.conf. If it is not, add the
path to your /etc/ld.so.conf. If your problem was caused by the same
configuration problem as mine that should solve it.

Did you run ldconfig as root after installing wxPython/wxWindows?

Johann

I still don't undersstand why the
wxGTK samples did work without problems. I suppose they also need
libwx_gtk.so ?

The wxGTK samples link such that the full pathname of the library is
embedded in the executable, so they don't have to do a ld search for it at
runtime.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!