Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install wxPython for Python 3.3?

I need wxPython for a project I'm currently writing. It's a basic text editor- it'll eventually have markdown and bbcode editing supported (with error checking), but right now I want to get the program working. The guide I'm using uses wxPython, but it's official support is only up to 2.5. I'm using Python 3.3, and I grabbed one of the development builds.

I just don't know how to install it, but I found this comment, but I'm not sure what it's telling me to do. Is it telling me to create a folder in one of python's subfolders, then use the bit of code in every wx program I make? Or is it telling me something else?


Edit: I found the site-packages folder and made the folder, then pasted the appropriate folder in the folder I made, but it threw the error :

ImportError: No module named 'wxversion'

Using Ninja IDE 2.2, if it helps at all.


Edit 2: So I wx instead of wxversion, and it seemed to work, but now Ninja IDE pulls up core.py and tells me

ImportError: DLL load failed: %1 is not a valid Win32 application.

Does anyone know what this means, and how I can fix it?

like image 368
Xethaios Avatar asked Jul 27 '26 17:07

Xethaios


1 Answers

If you don't have another version of wxPython installed then you don't have any need to use wxversion. Just put Phoenix's wx package folder directly in site-packages and use it normally.

like image 176
RobinDunn Avatar answered Jul 30 '26 10:07

RobinDunn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!