Python Forum

Full Version: Problems using Wxpython
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I'm using an old aplication that's was build use Python 2.7.9, and wxpython 2.8.12.1.

Then, my problem is in Windows 10 Pro Wall , when execute, this error appears:

Traceback (most recent call last):
File "DBM_tool.py", line 2, in <module>
File "wx\__init__.pyo", line 45, in <module>
File "wx\_core.pyo", line 4, in <module>
File "wx\_core_.pyo", line 12, in <module>
File "wx\_core_.pyo", line 10, in __load
ImportError: DLL load failed: El sistema operativo no puede ejecutar %1.

I understand that, python doesn't find wx libraries.

Then,
I've installed this python version(2.7.9). I've installed wxpython 2.8.12.1 with exe package (downloaded of SourceForge.net web). I've put python path folder in System Path variable(\Python27, \Python27\lib, \Python27\scripts).
But if I execute "pip list", no reference to the wx library appears.

If I try to install wxpython with pip, "pip install wxpython", last version of wxpython is donloaded, but if I try to donwload and install 2.8.12 version "pip install wxpython==2.8.12.1" says that is not available on server.

Then, my question is, It is possible install wxpython 2.8.12.1 version with pip¿?
Any other idea of ​​what the problem might be?

It's my first time using Python, and I'm not familiar with it. Blush
All help is welcome!

Thanks in advance.
Carles.
Here's what I would do:
  • Convert 2.7 program to python 3.6 (wxpython may work fine with newer versions, but it's not stated in the docs)
  • The version of wxpython that runs in 2.7 is nothing compared to phoenix which only runs in python 3
  • Install wxpython with
    pip install wxpython 
Python 2.7 is almost dead and will be next year.