-
Notifications
You must be signed in to change notification settings - Fork 220
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 and python.app versions do not match #11633
Comments
I forgot to mention that the non-matching versions is indeed causing the example script to segfault. If I remove the |
So ideally, the |
There is a new version of python.app available with the latest python version. Sorry for the confusing behavior. |
Would it be possible to sync the versions also at least for Python 3.7? This is still the default version in Anaconda. |
I just noticed that the |
Actual Behavior
On macOS, we need to run Python scripts that access the window manager (GUIs created with e.g. wxPython, PyQt5, PySide2, ...) with
pythonw
instead ofpython
(documented in #199 and #446, note that this is an Anaconda-specific solution because this is not required with the official Python binaries). Thepythonw
executable can be installed with thepython.app
package.So this is what I'd do to install:
However, I was surprised to see that the Python versions in these executables don't match (here's the output for Python 3.7 as currently found in the default channel):
This is not just a cosmetic issue, but may cause problems with multiprocessing. Using Python 3.7, the following script (saved as
mwe.py
) runs fine withpython
, but crashes with a segfault withpythonw
:So
python mwe.py
runs without issues, butpythonw mwe.py
results in/Users/clemens/anaconda/bin/pythonw: line 3: 1767 Segmentation fault: 11 /Users/clemens/anaconda/python.app/Contents/MacOS/python "$@"
.Interestingly, even though the versions don't match for Python 3.6 and Python 3.8 either (I didn't test older versions), this script does work even with
pythonw
.Expected Behavior
Python versions for
python
andpython.app
(started aspythonw
) should match.Anaconda or Miniconda version:
This problem exists with several versions, the current version 3.7 has the following Python versions:
But
conda create -n python=3.8 python.app
also has different versions:Same for
conda create -n python=3.6 python.app
:Operating System:
macOS 10.15.3
conda info
conda list --show-channel-urls
The text was updated successfully, but these errors were encountered: