-
Notifications
You must be signed in to change notification settings - Fork 515
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
Problem importing 4.2.2 #2614
Comments
Is this an x86_64 or ARM processor? Did you install from a wheel or did you compile it yourself? |
This is with a virtual environment? Does it work outside a virtual environment? |
For comparison, I have an Intel MacBook Pro using macOS Sequoia 15.0 and Python 3.11.9 I installed wxPython 4.2.2 using pip (not in a virtual environment). It downloaded and installed I am able to import wx without any errors. |
In looking closer at this, I suspect the OP might be using an ARM64 Mac (would be nice if @JamesRandom could confirm). I noticed something: the 4.2.2 wheels for Python 3.8-3.10 are not shown as universal2, they are only shown as AMD64 only, whereas with 4.2.1, all macOS wheels are universal2. So, if the OP has an ARM Mac, it probably did not install a wheel and tried to build one, and failed somehow. I'll try to look into why we didn't get universal2 wheels for 3.8-3.10. |
So the answer to the last question seems to be that the default behavior is for the wheels to be built as the version that Python was compiled as, and the GitHub Actions Python installs for macOS for Python 3.8 through 3.10 are NOT universal2. |
@swt2c You are right, I am running on an Arm-based Mac. And that it depends on the Python version. Running with Python 3.12, I can install 4.2.2. |
Operating system: MacOS Sonoma 14.6.1
wxPython version & source: 4.2.2 from pypi
Python version & source: 3.9.19
Description of the problem:
Attempting to import
wx
results in an error where__ZN10wxBoxSizer20InformFirstDirectionEiii
is not found (see below for details).The problem does not occur if I
pip install wxpython==4.2.1
Code Example (click to expand)
The text was updated successfully, but these errors were encountered: