Python Forum
Problems using Wxpython
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems using Wxpython
#1
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.
Reply
#2
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [WxPython] Problems with making a Video Player in WxPython SheeppOSU 2 2,061 Sep-23-2020, 11:44 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020