LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Python and wxWidgets help (https://www.linuxquestions.org/questions/linux-software-2/python-and-wxwidgets-help-605731/)

teknik 12-10-2007 01:21 AM

Python and wxWidgets help
 
Hi,

I'm running Slackware 12, and I have installed the following packages from linuxpackages.net :

wxGTK-2.8.4
wxPython-2.8.6.1
wxWidgets-2.8.6

When in python, if I try to import wx, I get this error:
Code:

>>> import wx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named wx
>>>

looking in the site-packages directory...there is no wx anything in there, which is weird to me because I have those packages installed. I'm not sure if I have to change a path somewhere or link some things somewhere? Am I missing a package? Please any help would be appreciated, this is driving me nuts. Thanks.

titopoquito 01-17-2008 04:46 PM

Hi teknik,

I just stumpled upon your question and thought you might want a response, even if it's somewhat late :)

What you installed looks like overkill. wxWidgets and wxGTK are basically the same, because on Linux wx uses the GTK toolkit. I installed wxPython some days ago with the slackbuild from www.slackbuild.org -- at least their version conflicts with wxGTK, so that I am fine with wxPython alone.

I hope you can still make use of my suggestion ...


All times are GMT -5. The time now is 10:34 PM.