2.9.4 import issue with libwx_gtk2u_xrc-2.9.so.4

579 views
Skip to first unread message

wxpyjoshtron

unread,
Sep 3, 2012, 8:49:22 AM9/3/12
to wxpytho...@googlegroups.com
after the successful build, i wanted to take 2.9 for a spin, but i get this at the interpreter:
the file libwx_gtk2u_xrc-2.9.so.4 is a symlink to /usr/local/lib/libwx_gtk2u_xrc-2.9.so.4.0.0.0



Python 2.7.3 (default, Jul 24 2012, 10:05:39)
[GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wxversion as v; v.select('2.9'); import wx; wx.VERSION
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/wx-2.9.4-gtk2/wx/__init__.py", line 45, in <module>
    from wx._core import *
  File "/usr/lib/python2.7/site-packages/wx-2.9.4-gtk2/wx/_core.py", line 4, in <module>
    import _core_
ImportError: libwx_gtk2u_xrc-2.9.so.4: cannot open shared object file: No such file or directory

but...

Python 2.7.3 (default, Jul 24 2012, 10:05:39)
[GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wxversion as v
>>> v.getInstalled()
['2.9.4-gtk2', '2.8-gtk2-unicode']


how do i fix this?

Robin Dunn

unread,
Sep 3, 2012, 3:14:57 PM9/3/12
to wxpytho...@googlegroups.com
On 9/3/12 5:49 AM, wxpyjoshtron wrote:
> after the successful build, i wanted to take 2.9 for a spin, but i get
> this at the interpreter:
> the file libwx_gtk2u_xrc-2.9.so.4 is a symlink to
> /usr/local/lib/libwx_gtk2u_xrc-2.9.so.4.0.0.0
>
>
>
> Python 2.7.3 (default, Jul 24 2012, 10:05:39)
> [GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import wxversion as v; v.select('2.9'); import wx; wx.VERSION
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/lib/python2.7/site-packages/wx-2.9.4-gtk2/wx/__init__.py",
> line 45, in <module>
> from wx._core import *
> File "/usr/lib/python2.7/site-packages/wx-2.9.4-gtk2/wx/_core.py",
> line 4, in <module>
> import _core_
> ImportError: libwx_gtk2u_xrc-2.9.so.4: cannot open shared object file:
> No such file or directory
>

Run "ldd /usr/lib/python2.7/site-packages/wx-2.9.4-gtk2/wx/_core_.so" to
see where it is trying to load the wxGTK library from. If it doesn't
have a specific path name for it then you probably need to add
/usr/local/lib/ to the paths in /etc/ld.so.conf (and rerun ldconfig), or
add it to LD_LIBRARY_PATH set in the environment.


--
Robin Dunn
Software Craftsman
http://wxPython.org

Kondal Purma

unread,
Dec 7, 2016, 4:17:23 PM12/7/16
to wxPython-users
I run into similer problem. When I run wxpython application (used cx freeze 4.3.3 to freeze) . Standalone application always looking wxpython libraries on python dis-package folder sinatead of using frozen libraries.

Kondal Purma

unread,
Dec 7, 2016, 4:37:57 PM12/7/16
to wxPython-users
any help how to fix ?
Reply all
Reply to author
Forward
0 new messages