wxPython Phoenix with Python 3.5

Hi all,

I've recently decided to port my current project to Python 3, and
installed Python 3.5 (32-bit) over the weekend on Windows 7 (64-bit).

I downloaded the following Python wheel:

http://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev1830+0b5f910-cp34-none-win32.whl

And attempted to install it using pip, at which point I received an
error stating that this wheel was not supported on my platform. I
renamed it to wxPython_Phoenix-3.0.3.dev1830+0b5f910-cp35-none-win32.whl
as a workaround, and pip claimed the installation was successful.
However the following ImportError is raised when I try to actually use it:

C:\Users\jscholes>python
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:16:59) [MSC v.1900 32
bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import wx

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python35\lib\site-packages\wx\__init__.py", line 17, in <module>
    from wx.core import *
  File "C:\Python35\lib\site-packages\wx\core.py", line 6, in <module>
    from ._core import *
ImportError: DLL load failed: The specified module could not be found.

As you can see, there's no information about which DLL failed to load.
I tried installing the latest versions of the Microsoft Visual C++
Redistributable package (2013 and 2015, both X86 variants) without success.

As an aside, I have recently used Phoenix with Python 3.4 on the very
same computer, so I'm not sure why updating to the latest and greatest
is causing a problem.

Many thanks for any suggestions anybody has.

···

--
James Scholes
http://twitter.com/JamesScholes

cp34 = Python 3.4

There is no 3.5 version yet. IIRC 3.5 uses another version of the C++ compiler and Robin does not have that one yet. However it was mentioned on the wxPython-dev list that he has it on his TODO list.

Werner

···

On 9/30/2015 21:35, James Scholes wrote:

Hi all,

I've recently decided to port my current project to Python 3, and
installed Python 3.5 (32-bit) over the weekend on Windows 7 (64-bit).

I downloaded the following Python wheel:

http://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev1830+0b5f910-cp34-none-win32.whl

Werner wrote:

There is no 3.5 version yet. IIRC 3.5 uses another version of the C++
compiler and Robin does not have that one yet. However it was mentioned
on the wxPython-dev list that he has it on his TODO list.

Do you happen to know whether that would prevent me from building the
Phoenix source myself for use with Python 3.5, perhaps using Visual
Studio 2015? Also, when you say it's on the TODO list, in your
experience, does this mean it will be done sooner, or later?

Please don't think I'm demanding or in any way expecting a fix for this.
But I'd like to get on with this project and if I'm going to have to
set up a build environment or downgrade to Python 3.4, I'd like to know
now rather than after spending a day experimenting. So I ask meerly out
of time-saving curiosity :slight_smile:

···

--
James Scholes
http://twitter.com/JamesScholes

Do you happen to know whether that would prevent me from building the
Phoenix source myself for use with Python 3.5, perhaps using Visual
Studio 2015?

Worth a try -- and yes, you want to use VS2015.

But I'd like to get on with this project and if I'm going to have to
set up a build environment or downgrade to Python 3.4, I'd like to know
now rather than after spending a day experimenting.

It seems VS2015 is different enough that it'll be a bit of work to get
going. I'd say the downgrade to py3.4 is the easier route.

But if you have experience with that kind of thing, by all means go
for it. I'm sure Robin would appreciate someone else ironing out the
wrinkles...

-CHB

For reference, compiling Phoenix on Linux and Mac OS X with Python 3.5 works. So it should work on WIndows if you can compile it. Microsoft no longer sells the compiler that’s needed to build Python 3.4, and the needed compiler for Python 3.5 is free.

– Greg

You can get the compiler you need -- it's in the "Windows SDK for Windows
7 and .NET Framework 4" (v7.1)

There is a discussion right now on the python-dev list about how better to
document all this. Here's the high level version:

the instructions are:

For Python 2.7:

1. Install "Visual C++ Compiler Package for Python 2.7"
2. Use (a recent version of) setuptools in your setup.py (pip will do
this for you, in any case).
3. Done.

For Python 3.4

1. Install "Windows SDK for Windows 7 and .NET Framework 4" (v7.1)
2. Work from an SDK command prompt (with the environment variables
set, and the SDK on PATH).
3. Set DISTUTILS_USE_SDK=1
4. Done.

For Python 3.5

1. Install Visual Studio 2015 Community Edition (or any later version,
when these are released).
2. Done.

But you have a point -- I don't know if you can find the VS2010 IDE
anywhere -- so if you want to debug, etc, it'll be uglier....

-Chris

···

On Thu, Oct 1, 2015 at 3:59 PM, Greg Couch <gregcouch@gmail.com> wrote:

For reference, compiling Phoenix on Linux and Mac OS X with Python 3.5
works. So it should work on WIndows if you can compile it. Microsoft no
longer sells the compiler that's needed to build Python 3.4, and the needed
compiler for Python 3.5 is free.

--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Hi,

Just wanted to say that I’m also waiting for a build of wxPython Phoenix for Python 3.5 on Windows.

Thanks,

Ram.

···

On Wednesday, September 30, 2015 at 10:35:28 PM UTC+3, James Scholes wrote:

Hi all,

I’ve recently decided to port my current project to Python 3, and

installed Python 3.5 (32-bit) over the weekend on Windows 7 (64-bit).

I downloaded the following Python wheel:

http://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev1830+0b5f910-cp34-none-win32.whl

And attempted to install it using pip, at which point I received an

error stating that this wheel was not supported on my platform. I

renamed it to wxPython_Phoenix-3.0.3.dev1830+0b5f910-cp35-none-win32.whl

as a workaround, and pip claimed the installation was successful.

However the following ImportError is raised when I try to actually use it:

C:\Users\jscholes>python

Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:16:59) [MSC v.1900 32

bit (Intel)] on win32

Type “help”, “copyright”, “credits” or “license” for more information.

import wx

Traceback (most recent call last):

File “”, line 1, in

File “C:\Python35\lib\site-packages\wx_init_.py”, line 17, in

from wx.core import *

File “C:\Python35\lib\site-packages\wx\core.py”, line 6, in

from ._core import *

ImportError: DLL load failed: The specified module could not be found.

As you can see, there’s no information about which DLL failed to load.

I tried installing the latest versions of the Microsoft Visual C++

Redistributable package (2013 and 2015, both X86 variants) without success.

As an aside, I have recently used Phoenix with Python 3.4 on the very

same computer, so I’m not sure why updating to the latest and greatest

is causing a problem.

Many thanks for any suggestions anybody has.


James Scholes

http://twitter.com/JamesScholes

The development version (wxPhoenix) of wxPython work here on an Ubuntu
(GNU/Linux) with Python3.4 and 3.5. But I build them myself with
"pip" (escpecialy "pip3").

I use Windows only for testing situations in a virtual environment. Did
you tried to build wxPhoenix yourself? I did it on Windows, too.

In "normal" situations I use this command (on GNU/Linux) to build
wxPhoenix my self - but be clear this wouldn't work with Python3.5.

pip3 install --trusted-host wxpython.org -v -U --pre -f
Index of /Phoenix/snapshot-builds wxPython_Phoenix

You need to tweak that command a little bit.

I am not sure If you can build on Windows as a normal user or maybe you
need to have a "Administrator" shell ("DOS Box").

You want it for Python3.5? To be sure that "pip" use that version of
you have to call "pip" as a module like this

python3.5 -m pip install .....

Maybe your pip-Version is a little bit old than it will tell you that
the option "--trusted-host" doesn't exists. In that case just erase
that string from the build-command "--trusted-host wxpython.org".

Please feel free to ask or post error messages if it doesn't work.

···

On 2015-10-31 03:44 Ram Rachum <ram.rachum@gmail.com> wrote:

Just wanted to say that I'm also waiting for a build of wxPython
Phoenix for Python 3.5 on Windows.

--
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1

mQENBFQIluABCACfPwAhRAwFD3NXgv5CtVUGSiqdfJGVViVBqaKd+14E0pASA0MU
G0Ewj7O7cGy/ZIoiZ0+lIEZmzJKHfuGwYhXjR/PhnUDrQIHLBvh9WuD6JQuULXfH
kXtVm/i9wm76QAcvr2pwYgNzhcJntUHl2GcgnInYbZDeVmg+p9yIPJjuq73/lRS3
0/McgNoFOBhKK/S6STQuFyjr9OyJyYd1shoM3hmy+kg0HYm6OgQBJNg92WV9jwGe
GzlipvEp2jpLwVsTxYir2oOPhfd9D1fC9F/l/3gXbfjd5GIIVrZFq2haZmoVeJ33
LJxo3RA5Tf9LoUeels1b4s9kFz6h7+AHERUpABEBAAG0IUNocmlzdGlhbiBCdWh0
eiA8YnVodHpAcG9zdGVvLmRlPokBPgQTAQIAKAUCVAiW4AIbAwUJAeEzgAYLCQgH
AwIGFQgCCQoLBBYCAwECHgECF4AACgkQZLsXsAdRqOxNUAf/V/hDA5zGDpySuCEj
DhjiVRK74J9Wd8gfH0WAf1Co5HZ24wZH8rgOIVIgXw8rWkOw/VA6xfdfT+64xjTY
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