question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

spyder 3.2.8 crashes on launch with (clean conda install of) Python 3.6.5 on MacOS 10.12.6

See original GitHub issue

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?

  1. install Python 3.6.5 using conda (naming environment py36)
  2. activate in anaconda (conda activate …)
  3. use anaconda to install spyder
  4. 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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

14reactions
ccordoba12commented, Apr 18, 2018

The real solution is to run in Terminal.app

conda update python python.app
5reactions
gkvalliscommented, Apr 18, 2018

yes, works with that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release notes — Anaconda documentation
This is the first release that provides a python-3.10 variant for anaconda ... enabling full use of GUI applications like Anaconda Navigator and...
Read more >
Spyder crashing after installing Keras through Conda
I know I have to use Python 3.6 and TensorFlow 1.0.9 (because of my code). After installing Anaconda, I open my Anaconda prompt...
Read more >
Spyder crashed during last session Mac Os Sierra - Google Groups
I am spyder user from Anaconda, but today is not run. when I click in Spyder ... I uninstall anaconda, clean everything and...
Read more >
Spyder :: Anaconda.org
The Scientific Python Development Environment. Conda · Files · Labels ... To install this package run one of the following: conda install -c...
Read more >
Frequently Asked Questions — Spyder 5 documentation
Q: How do I install Python packages to use within Spyder if I installed Spyder with conda? The first approach for installing a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found