I downloaded daily build and did
python3 setup.py build

and then
python3 setup.py install

So far so good!
I tried import wx and no errors
I tried to run the program here and all I got was the error below.

Have anyone got wxPython working with Py3 especially on Linux (Debian/Ubuntu)

python3 test.py 
Traceback (most recent call last):
  File "test.py", line 2, in <module>
    import wx
  File "/usr/local/lib/python3.3/dist-packages/wx/__init__.py", line 17, in <module>
    from wx.core import *
  File "/usr/local/lib/python3.3/dist-packages/wx/core.py", line 6, in <module>
    from ._core import *
ImportError: No module named 'wx._core'

TIA,
Stefano

Recommended Answers

Install it using pip:

sudo pip install -U --pre -f http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix

Note the space between the last '/' and wxPython_Phoenix.

I use this both on Windows and Mint 17 with Python 3.4

Jump to Post

All 3 Replies

I get the same error

Traceback (most recent call last):
  File "test.py", line 13, in <module>
    import wx
  File "/usr/local/lib/python3.3/dist-packages/wx/__init__.py", line 17, in <module>
    from wx.core import *
  File "/usr/local/lib/python3.3/dist-packages/wx/core.py", line 6, in <module>
    from ._core import *
ImportError: No module named 'wx._core'

Have you tried it in Linux?
I know its in alpha but at least it should be usable ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.