-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3.4 MSW builds #363
Comments
Attempted to build using |
3.4 hasn't been dropped, it's just not a priority since there are 2 major releases newer than 3.4. When Python 3.7 is released then I'll probably stop building for 3.5 even though wxPython will likely remain compatible with 3.5 for some time. For the raspian build, pip hides most of the build output by default, so you'll probably want to use the --log option so you can capture the full build output and get some clues as to why the build failed. (Probably some missing dependencies or similar.) |
Unfortunately, I don't own a copy of MS Windows, and I have issues building wxPython under Wine; I keep getting the following error:
Could someone please at least share a copy of previous release binary built for Python 3.4, Windows, 32 bit? It's not in stapshot-builds anymore :( And no, I cannot update to Python 3.5/3.6, as py2exe only supports 3.4. |
It would be a shame to drop 3.4 as that bars Debian & Raspbian users for using wxPython unless they use a custom build or back port |
Me too. I am stuck with Windows XP, and therefore with Python 3.4.x. I have a machine with Windows XP Professional and Visual Studio 2008 Express Edition. I could try to build a wxPython release, but I need guidance to do that. |
As I said last week, I wanted to try and build wxPython in this old XP machine with Visual Studio 2008 Express Edition and Python 3.4.4. I had to install and add some extra tools like cygwin, doxygen, sip, and waf. In the end, dox, etg and sip were successfully built. I had to use the --nodoc option to avoid complains about missing GraphViz. Then it was time to build the 'build' target, and I got the following error: "Unable to find vcvarsall.bat" I think this happens because Python 3.4.4 was built with Visual Studio 2010, and this machine has an older version (2008). I tweaked Python's distutils module to deliberately report the "right" version, and this way the build process continued for several minutes, until it stopped with the following error: msvc: Impossible to find a valid architecture for building (in setup_msvc) After that, I decided it was time to ask for help. Probably the next thing to do would be to install the correct compiler version. I did have an ISO image of Visual Studio 2010 Express Edition but unfortunately I trashed it, thinking I'd never need it again. This image is no longer downloadable from Microsoft, and I don't know where to find it. Any suggestions? Thanks! Screen output of the last build follows... E:\Phoenix>python build.py build Will build using: "C:\Python34\python.exe" Running command: build Microsoft (R) Program Maintenance Utility Version 9.00.21022.08 WARNING: msgfmt command not found, message catalogs not rebulit. |
@NippurDeLagash I managed to build it with the compiler from MS Windows 7.1 SDK under a real WinXP. No need to use cygwin etc, if you build from distributed Not sure if this is all that's needed, as I've spent some time on this and didn't document the whole process. If you have other issues, I'll try to recall if I know how to solve them. |
|
@IVU Thanks for your suggestions. I installed Windows SDK 7.1 but it did not help. I checked all registry entries against your .reg file. They are OK. The only difference is that your key names have a trailing v7.0A and mine have v7.1, but all their values match perfectly. The only difference that matters is the value of the key However, I added the last Visual Studio key value pretending I have Visual Studio 2010 installed, and now the build process complains about a missing windows.h include file. This file exists and is located under C:\Program Files\Microsoft SDKs\Windows\v7.1\Include. Here is the error message: cl /c /nologo /TC /Fovc100_mswudll\wxpng_png.obj /MD /DWIN32 /Zi /Fd....\lib\vc100_dll\wxpng.pdb /O2 /D_CRT_SECURE_NO_DEPRECATE=1 /D_CRT_NON_CONFORMING_SWPRINTFS=1 /D_SCL_SECURE_NO_WARNINGS=1 /D__NO_VC_CRTDBG__ /DNDEBUG /D_CRT_SECURE_NO_WARNINGS /I....\src\zlib ....\src\png\png.c png.c |
@NippurDeLagash Have you tried adding all that .reg file to the registry? |
I had hoped that I would be able to get builds for 3.4 again almost for free by porting the code to use the Py_LIMITED_API (which in theory would allow one wxPython build to be used with all current Python 3.x releases, see #314, #371) but I ran into many little stumbling blocks with that and so it is on the back burner for now. So I'll go ahead and turn on the buildbot builders for Python 3.4 again, but to save some time and resources I'll just do it for the snapshot/release builds, not for the builds triggered by commits. |
See 1d86e8b |
@RobinD42 thanks for restoring the 3.4 builder. @IVU No and yes. (No) I did not double-click on your .reg file, but (yes) I manually (well, actually with the help of WinMerge) checked each single entry and made sure that: 1) all your keys were present in my registry, and 2) they had the same values. It may be possible that the wrong/missing registry entries you noticed with the SDK v7.0A where fixed when SDK v7.1 was released. The good news today is that I found the .ISO image of VS2010 Express Edition, installed it, and this time the build completed. I also installed wheel from PyPI, created the .whl file, but it refuses to install. Error message follows:
However, installation works fine when running the script, i.e.
Here is the output of 'pip3 list' on my machine.
Question: is there a way to build the installation program (.exe file), like in wxPython 3 and earlier versions? |
Did you use
No, the InnoSetup scripts and related stuff has been removed. But you may be able to use |
Yes, I used the build target I also tried @IVU asked 11 days ago:
Now we can answer "yes" to that question. Just tell me where I can upload the file. |
I plan on doing the a3 release this weekend, so it may be a moot point now. However if something goes wrong with the release you can get the wheels to me (preferably both 32bit and 64bit) via a dropbox link or something and I can upload them to PyPI. |
You can download it from this link: https://mega.nz/#!jldmmBTK!RoyJwyDPVC8lCY6A5URssUqf38Z2XjCNi6-6ZHF4ixQ Only the 32-bit version, unfortunately. I looked at the build options, but did not find a way to create the 64-bit wheel under a 32-bit operating system with 32-bit Python installed. I have also a Windows 7, 64-bit machine, but with the "wrong" version of Python (2.7.12, 32-bit). |
3.4 builds are now on PyPI |
Is it possible to start building wheels for MSW with python 3.4 again? https://pypi.python.org/pypi/wxPython/4.0.0a2 says that python 3.4 is supported, but there are no 3.4 builds neither on PyPI nor in snapshot builds anymore :(
The text was updated successfully, but these errors were encountered: