wxPython for Python 3 windows binaries?

Hi,

When I visit this page:
http://wxpython.org/Phoenix/docs/html/index.html
The link to the binaries takes me here:
http://www.wxpython.org/download.php#binaries

But the binaries are all for Python 2.

When are binaries for Python 3 on windows likely to be available? Or is it too early to say?

Thanks!

Hi Mark,

Hi,

When I visit this page:
wxPython API Documentation — wxPython Phoenix 4.2.3a1 documentation
The link to the binaries takes me here:
Redirecting...

But the binaries are all for Python 2.

When are binaries for Python 3 on windows likely to be available? Or is it too early to say?

I believe the wheels is all that will be done.

Now the commend you mentioned on the other thread should work, I do it a bit different to be sure I get the right version:

c:\python34\scripts\pip3.exe install -U --pre -f Index of /Phoenix/snapshot-builds wxPython_Phoenix

Now the error "FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'Phoenix\\setup.py' -> 'setup.py'" I think I am getting when the latest build is done for some platform/python version but not for the one I need.

In that case I download an approriate version to my PC and then do in the temp folder this command:
c:\python34\scripts\pip3.exe install -U --pre wxPython_Phoenix-3.0.2.dev78136-cp34-none-win32.whl

Werner

···

On 11/23/2014 13:36, Mark Summerfield wrote:

Hi Werner,

Installing that way worked fine.

I created the hello world example from the docs and it worked.

FYI I did notice a warning in wx\core.py:22 UserWarning “wxPython/wxWidgets release number mismatch”.

Thanks!

···

On Monday, 24 November 2014 08:08:25 UTC, werner wrote:

Hi Mark,

On 11/23/2014 13:36, Mark Summerfield wrote:

Hi,

When I visit this page:

http://wxpython.org/Phoenix/docs/html/index.html

The link to the binaries takes me here:

http://www.wxpython.org/download.php#binaries

But the binaries are all for Python 2.

When are binaries for Python 3 on windows likely to be available? Or
is it too early to say?

I believe the wheels is all that will be done.

Now the commend you mentioned on the other thread should work, I do it a
bit different to be sure I get the right version:

c:\python34\scripts\pip3.exe install -U --pre -f
http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix

Now the error “FileExistsError: [WinError 183] Cannot create a file when
that file already exists: ‘Phoenix\setup.py’ → ‘setup.py’” I think I
am getting when the latest build is done for some platform/python
version but not for the one I need.

In that case I download an approriate version to my PC and then do in
the temp folder this command:

c:\python34\scripts\pip3.exe install -U --pre
wxPython_Phoenix-3.0.2.dev78136-cp34-none-win32.whl

Werner

The above error occurs when there's an updated .tar.gz file but not an equivalent wheel. I just ignore it as I'm assuming that nothing has changed on Windows so no update is needed.

···

On 24/11/2014 08:08, Werner wrote:

Hi Mark,

On 11/23/2014 13:36, Mark Summerfield wrote:

Hi,

When I visit this page:
wxPython API Documentation — wxPython Phoenix 4.2.3a1 documentation
The link to the binaries takes me here:
Redirecting...

But the binaries are all for Python 2.

When are binaries for Python 3 on windows likely to be available? Or
is it too early to say?

I believe the wheels is all that will be done.

Now the commend you mentioned on the other thread should work, I do it a
bit different to be sure I get the right version:

c:\python34\scripts\pip3.exe install -U --pre -f
Index of /Phoenix/snapshot-builds wxPython_Phoenix

Now the error "FileExistsError: [WinError 183] Cannot create a file when
that file already exists: 'Phoenix\\setup.py' -> 'setup.py'" I think I
am getting when the latest build is done for some platform/python
version but not for the one I need.

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Hi Mark,

...

FYI I did notice a warning in wx\core.py:22 UserWarning "wxPython/wxWidgets release number mismatch".

This is a know issue, someone posted a work around here. You can just ignore it and wait until Robin updates it for the next version.

Werner

···

On 11/24/2014 9:45, Mark Summerfield wrote:

Hi Werner,

I found a workaround that avoids the warning.

Instead of:

import wx

I’m using:

import warnings
with warnings.catch_warnings():
warnings.simplefilter(“ignore”, UserWarning)
import wx

Thanks.

···

On Sunday, November 23, 2014 12:36:11 PM UTC, Mark Summerfield wrote:

Hi,

When I visit this page:
http://wxpython.org/Phoenix/docs/html/index.html
The link to the binaries takes me here:
http://www.wxpython.org/download.php#binaries

But the binaries are all for Python 2.

When are binaries for Python 3 on windows likely to be available? Or is it too early to say?

Thanks!

I know this thread is a couple of yeara old but I still have the problem of trying to obtain a prebuilt binary of wxPython for Python 3. Furthermore, it needs to be built using Visual Studio 2010. See further comments below:-

Hi Mark,

Hi,

When I visit this page:

http://wxpython.org/Phoenix/docs/html/index.html

The link to the binaries takes me here:

http://www.wxpython.org/download.php#binaries

But the binaries are all for Python 2.

Indeed. Two years on this is still the case.

When are binaries for Python 3 on windows likely to be available? Or
is it too early to say?

I believe the wheels is all that will be done.

I don’t understand. What is “wheels”?

c:\python34\scripts\pip3.exe install -U --pre -f
http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix

I can’t make sense of those filenames. I would welcome any pointers please.

···

On Monday, 24 November 2014 08:08:25 UTC, werner wrote:

On 11/23/2014 13:36, Mark Summerfield wrote:

See e.g. here:
Or just open a .whl file as zip archive and extract the files into
site-libraries.
e.g. this is for 32 bit Python 3.4 (i.e. Visual Studio 2010):
Regards,
Dietmar

···

On 24.03.2016 19:18, Andrew Marlow
wrote:

I don’t understand. What is “wheels”?

http://pythonwheels.com/

      I can't make sense of those filenames. I would welcome any

pointers please.

wxPython_Phoenix-3.0.3.dev1964+f780b21-cp34-cp34m-win32.whl

http://wxpython.org/Phoenix/snapshot-builds/

I believe the wheels is all that will be done.

I don’t understand. What is “wheels”?

A wheel is a binary package for Python, the use the extension .whl, and can be installed with pip.

c:\python34\scripts\pip3.exe install -U --pre -f
http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix

I can’t make sense of those filenames. I would welcome any pointers please.

Those are the wheels-- you want one with cp34 or cp35, (cPython 3.4 and 3.5)

HTH,

  • CHB
···

You received this message because you are subscribed to the Google Groups “wxPython-users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

One of the most important things about pip/pip3 is that you don't need
to make sense of the file names pip knows the naming convention and
downloads and installs the latest version of the specified package that
is compatible with your python version and OS.

Wheels are a package format for python than recent versions of pip
understands and have a very specific naming format to allow pip to do
its job. (Full explanation of the content
PEP 376 – Database of Installed Python Distributions | peps.python.org and naming
PEP 427 – The Wheel Binary Package Format 1.0 | peps.python.org).

The pip command example given breaks down to:
c:\python34\scripts\pip3.exe - the pip program with its most likely path
on windows
install - the command
-U - Update
--pre - Include pre-release and development versions.
-f Index of /Phoenix/snapshot-builds - Where to look in
addition the the default locations
wxPython_Phoenix - the package to try to install

Pip will then go off to the specified location(s) and the default
locations looking for packages that match wxPython_Phoenix and download
the one that has the highest release number, with --pre this will
include pre-releases, that also matches your python version, (py2.py3,
py3 or py34), ABI, (none, abi3 or cp33d), and OS/CPU (any for pure
python or win32 are examples). The cleaver bit is that pip knows all
about the naming and has rules for compatibility and precedence and will
pick the "best" compatible build for you.

Examples of naming - this is for information let pip work it out for you:
  parrot-1.0-1-py27-none-any.whl will be a package of parrot version 1.0
build 1 that will work for Python 2.7 doesn't care which build of python
27 so is pure python and will work on any CPU/OS - it will contain
python files, meta data possibly other data and may well be digitally
signed and because it doesn't contain any compiled extensions it doesn't
care where it is installed.
The example you gave was:
wxPython_Phoenix-3.0.3.dev1964+f780b21-cp34-cp34m-win32.whl
which I would read as:
wxPython_Phoenix - package name
3.0.3 - version 3.0.3
dev1964 - Development Build no 1964 - so without --pre Don't install
+f780b21 - probably either some build flags or part of the source
control system version ID
cp34 - Build for CPython 3.4
cp34m - With the cp34m ABI
win32 - for Windows 32 bit - note your machine & OS may be 64 bit but if
your python is 32 bit this is the one you need.
.whl - it is a wheel which is the default preferred format.

Note that if pip cannot find a wheel that matches your system it will
fall back to looking for the other formats that it understands which may
end up downloading, building and installing from source packages - if
they have other language extensions then this normally fails on windows
unless you have just the right tools and libraries installed.

The nice thing about wheels is that as long as someone takes the trouble
to build and upload for your combination of Python & OS they can include
extensions such as C, C++ fortran, etc., without you having to go and
find either the tool chain and dependencies.

Hope I have made things clearer rather than muddier for you.

TL:DR

···

On 25/03/2016 00:00, Chris Barker - NOAA Federal wrote:

    I believe the wheels is all that will be done.

I don't understand. What is "wheels"?

A wheel is a binary package for Python, the use the extension .whl, and
can be installed with pip.

    c:\python34\scripts\pip3.exe install -U --pre -f
    Index of /Phoenix/snapshot-builds wxPython_Phoenix

I can't make sense of those filenames. I would welcome any pointers
please.

Those are the wheels-- you want one with cp34 or cp35, (cPython 3.4 and 3.5)

HTH,
- CHB

-----
Ignore the names just run:
   pip3 install -U --pre -f Index of /Phoenix/snapshot-builds
wxPython_Phoenix

From your command line. If you get command not found try:
c:\python34\scripts\pip3.exe instead of pip3 above.

--
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.

Thanks Steve!

···

Ignore the names just run:

pip3 install -U --pre -f http://wxpython.org/Phoenix/snapshot-builds/

wxPython_Phoenix

somehow I had totally forgotten that you could point pip to another location – this is obviously what the OP needed to know!

-CHB

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