[Freewx-maint] Bug#895083: Bug#895083: python-wxgtk4.0: module wx is not usable

Scott Talbert swt at techie.net
Sat Apr 7 03:53:39 UTC 2018


On Sat, 7 Apr 2018, Norbert Lange wrote:

> it appears that the files are installed in a subdirectory,
> potentially to avoid confligs with previous versions?
> result is that
>
> import wx fails with
>
> ImportError: No module named wx
>
> I havent found a way to configure the installation

The purpose of the python-wxgtk4.0 package is primarily for application 
developers to use in porting their applications to wxPython 4.0 (Phoenix). 
There isn't much of a reason otherwise to use the Python 2 version of 
wxPython 4.0.  Instead, you should use python3-wxgtk4.0 with which you can 
'import wx'.

If you really would like to use the Python 2 version, you can do:

PYTHONPATH=/usr/lib/python2.7/dist-packages/wxPython-4.0.1-py2.7-linux-amd64.egg python
import wx

Scott



More information about the Freewx-maint mailing list