spyder: spyder 3.2.8 crashes on launch with (clean conda install of) Python 3.6.5 on MacOS 10.12.6
Problem Description
spyder, on MacOS 10.12.6 with Python 3.6.5, crashes on attempt to launch from Anaconda or from commandline in conda env with error message including: ImportError: dlopen(/Users/stuartswerdloff/anaconda2/envs/py36/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-darwin.so, 2): Symbol not found: __Py_set_inheritable_async_safe
however: nm -g _posixsubprocess.cpython-36m-darwin.so includes: U __Py_set_inheritable_async_safe
exact same procedure with python 3.5.5 works fine (which is what I did after the python 3.6.5 install didn’t work out so well)
What steps will reproduce the problem?
- install Python 3.6.5 using conda (naming environment py36)
- activate in anaconda (conda activate …)
- use anaconda to install spyder
- launch spyder
What is the expected output? What do you see instead?
expect: spyder UI see: traceback message, see below
Paste Traceback/Error Below (if applicable)
PASTE TRACEBACK HERE
Traceback (most recent call last):
File "/Users/stuartswerdloff/anaconda2/envs/py36/bin/spyder", line 7, in <module>
from spyder.app.start import main
File "/Users/stuartswerdloff/anaconda2/envs/py36/lib/python3.6/site-packages/spyder/app/start.py", line 27, in <module>
from spyder.config.main import CONF
File "/Users/stuartswerdloff/anaconda2/envs/py36/lib/python3.6/site-packages/spyder/config/main.py", line 22, in <module>
from spyder.config.user import UserConfig
File "/Users/stuartswerdloff/anaconda2/envs/py36/lib/python3.6/site-packages/spyder/config/user.py", line 26, in <module>
from spyder.utils.programs import check_version
File "/Users/stuartswerdloff/anaconda2/envs/py36/lib/python3.6/site-packages/spyder/utils/programs.py", line 18, in <module>
import subprocess
File "/Users/stuartswerdloff/anaconda2/envs/py36/lib/python3.6/subprocess.py", line 136, in <module>
import _posixsubprocess
ImportError: dlopen(/Users/stuartswerdloff/anaconda2/envs/py36/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-darwin.so, 2): Symbol not found: __Py_set_inheritable_async_safe
Referenced from: /Users/stuartswerdloff/anaconda2/envs/py36/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-darwin.so
Expected in: flat namespace
in /Users/stuartswerdloff/anaconda2/envs/py36/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-darwin.so
Package Versions
- Spyder: 3.2.8
- Python: 3.6.5
- Qt: 5.6.2
- PyQt: 5.6.0
- Operating System: MacOS 10.12.6
Dependencies
PASTE DEPENDENCIES HERE
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 16 (7 by maintainers)
The real solution is to run in Terminal.app
yes, works with that.
Ok, found the issue! I was deactivating my Conda environment in the bash_profile and therefore even with updates, I was not using the updated version. Problem resolved.
@SeyedMohamadMoosavi Glad you figured it out! I figured something like that was very likely to be the case, given the error remained the same and we had no other reports of it persisting over nearly a year since the fix was out, but I wasn’t sure what. Best of luck and happy Spydering!
I was able to
downgrading to 3.6.4 worked.
contributing from an MS Windows 7 PC using Chrome worked