LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   A Problem with "wxPython". (https://www.linuxquestions.org/questions/linux-newbie-8/a-problem-with-wxpython-858765/)

msbstar 01-26-2011 07:55 AM

A Problem with "wxPython".
 
Hi Everybody,

I have installed wxPython on my Ubuntu 9.10. But when I type
"import wxPython" in "python environment it returns the following
error.

Does it need a PATH to be added in ".bashrc"? If so what should I write as a PATH for it?

I would be very grateful for any help.

With best regards,
Hassan

------------------------------------------
>>> import wxPython
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/scisoft/lib/python2.5/site-packages/wx-2.8-gtk2-ansi/wxPython/__init__.py", line 15, in <module>
import _wx
File "/scisoft/lib/python2.5/site-packages/wx-2.8-gtk2-ansi/wxPython/_wx.py", line 3, in <module>
from _core import *
File "/scisoft/lib/python2.5/site-packages/wx-2.8-gtk2-ansi/wxPython/_core.py", line 15, in <module>
import wx._core
File "/scisoft/lib/python2.5/site-packages/wx-2.8-gtk2-ansi/wx/__init__.py", line 45, in <module>
from wx._core import *
File "/scisoft/lib/python2.5/site-packages/wx-2.8-gtk2-ansi/wx/_core.py", line 4, in <module>
import _core_
ImportError: libtiff.so.3: cannot open shared object file: No such file or directory
>>>
---------------------------------------------------------------
---------------------------------------------------------------

jcookeman 01-26-2011 08:11 AM

Do the following:

Code:

$ find /usr -name libtiff.so.*
/usr/lib32/libtiff.so.4
/usr/lib32/libtiff.so.4.3.3

I have versoin .4 and my import wx and wxPython works fine. So, you will have to either create the link libtiff.so.3 pointing to that or find out why your install is a bit "old". It works fine on mine and I'm running Ubuntu 10.10 on this machine.


All times are GMT -5. The time now is 09:19 AM.