-
-
Notifications
You must be signed in to change notification settings - Fork 473
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
Update wxpython.py example for wxPython 4.0 (wxPhoenix) #348
Comments
Thanks to Andrew Leech for the patch.
Still TODO: Test it and add top comments on which configurations were tested. |
For reference, my tested configuration is: Main packages installed with pip:
[wxpython.py] CEF Python 56.1 |
Additional fixes for wxPython 4.0 / 3.0 on Linux were applied in Issue #349. So it works fine now on Windows and Linux. @andrewleech On the Forum you've said that you have some issues on Mac. I wonder if these issues are similar to Linux issues with handle and maybe a similar fix will work. It seems to me this might be the issue on Mac as well after finding this Phoenix issue: wxWidgets/Phoenix#37 NOTE on installing wxPython 4.0 on Linux: I've tried installing wheel package for Python 3.5 on Linux, but it failed with error that it couldn't load "libpython3.5m.so" (there is no such file in pyenv installation of Python, only .a file I see). I ended up installing wheel package for system Python 3.4. The error:
|
I've done some further testing on mac and those issues don't seem to matter. |
Issue #350 fixed problems on Mac. So now it runs fine on all platforms. Closing. |
Note on installing/running wxPython 4.0 on Mac: I was able to run it with homebrew Python. When running with pyenv installation of Python I had this error:
|
Ah yes, I had this same issue with virtualenv Apparently it's a really common issue with gui python apps on osx which I couldn't find a clear consensus on how to resolve. Basically it wont run with the python wrapper execrable that's created by pyvenv in .venv/bin/python The simplest option I've found is to copy the real python exe into the virtualenv and set PYTHONHOME so it looks in the virtualenv folder for libs etc:
Not sure if this breaks pip etc though, it may still reference system stuff for some things. |
I have resolved issues with pyenv by building Pythons with --enable-shared option on Linux and --enable-framework option on Mac set via PYTHON_CONFIGURE_OPTS env variable. See here for explanation: wxWidgets/Phoenix#288 (comment) |
Patch sent by Andrew Leech in this topic:
https://groups.google.com/d/topic/cefpython/2gvlnukJpJ0/discussion
I can't test it right now, because wxPython 4.0 installation fails, but the changes do work fine with old wxPython 2.8, so it can be commited safely.
The text was updated successfully, but these errors were encountered: