After updating python to solve an earlier issue I am now receiving this launch error when I try to open spyder. The error prevents me from even opening the application.
Traceback (most recent call last):
File "/anaconda3/bin/spyder", line 7, in
from spyder.app.start import main
File "/anaconda3/lib/python3.6/site-packages/spyder/app/start.py", line 27, in
from spyder.config.main import CONF
File "/anaconda3/lib/python3.6/site-packages/spyder/config/main.py", line 22, in
from spyder.config.user import UserConfig
File "/anaconda3/lib/python3.6/site-packages/spyder/config/user.py", line 26, in
from spyder.utils.programs import check_version
File "/anaconda3/lib/python3.6/site-packages/spyder/utils/programs.py", line 18, in
import subprocess
File "/anaconda3/lib/python3.6/subprocess.py", line 136, in
import _posixsubprocess
ImportError: dlopen(/anaconda3/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-darwin.so, 2): Symbol not found: __Py_set_inheritable_async_safe
Referenced from: /anaconda3/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-darwin.so
Expected in: flat namespace
in /anaconda3/lib/python3.6/lib-dynload/_posixsubprocess.cpython-36m-darwin.so
PASTE TRACEBACK HERE
PASTE DEPENDENCIES HERE
Thanks for reporting. This is a duplicate of #6876 which apparently is a problem with the Mac conda executable of Python itself, and there isn't much we can do about it. However, according to ContinuumIO/anaconda-issues#9025 you can fix it with conda update python.app
.
This is supposed to be fixed by downgrading to Python 3.6.4, but you that version was giving you issue #6335, so I don't know how to help you further. In any case, both problems are not related to Spyder directly, but they are Python problems.
@mingwandroid, have you seen the problem above with Python 3.6.5 in macOS?
Ups, I didn't see @CAM-Gerlach's comment before publishing my own. @dantheman3232, please follow his advice.
@mingwandroid, sorry for the unnecessary ping.
Ups, I didn't see @CAM-Gerlach's comment before publishing my own. @dantheman3232, please follow his advice.
I actually said the same thing you did above in my comment before I saw the issue I linked to, heh.
No problem; we need to stop building python.app
the way we are building it. Frequently when we bump Python versions we forget to update python.app
and this is really bad. I will try to get time scheduled to address this properly.
Just want to update that I had the same error, so it seems been have forgotten, but it was fixed via conda update python.app
I've had Anaconda & Spyder working on my Macbook Pro (particular machine under discussion) for over 4 years. Everything was smooth until this afternoon, when I downloaded MongoDB, X-Tools (for the install) and then pymongo (using Anaconda). Now when I try to launch Spyder, it doesn't... And gives this Error Text: App
Traceback (most recent call last):
File "/anaconda3/bin/spyder", line 7, in
from spyder.app.start import main
File "/anaconda3/lib/python3.6/site-packages/spyder/app/start.py", line 13, in
import zmq
File "/anaconda3/lib/python3.6/site-packages/zmq/__init__.py", line 47, in
from zmq import backend
File "/anaconda3/lib/python3.6/site-packages/zmq/backend/__init__.py", line 40, in
reraise(*exc_info)
File "/anaconda3/lib/python3.6/site-packages/zmq/utils/sixcerpt.py", line 34, in reraise
raise value
File "/anaconda3/lib/python3.6/site-packages/zmq/backend/__init__.py", line 27, in
_ns = select_backend(first)
File "/anaconda3/lib/python3.6/site-packages/zmq/backend/select.py", line 26, in select_backend
mod = __import__(name, fromlist=public_api)
File "/anaconda3/lib/python3.6/site-packages/zmq/backend/cython/__init__.py", line 6, in
from . import (constants, error, message, context,
ImportError: dlopen(/anaconda3/lib/python3.6/site-packages/zmq/backend/cython/error.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libsodium.23.dylib
Referenced from: /anaconda3/lib/libzmq.5.dylib
Reason: image not found
I followed the instructions "conda update python.app"
Still didn't work.
Then upgraded Anaconda from 1.7 to 1.9.7
Still didn't work.
Tried "conda update python.app" again... after the Anaconda upgrade to 1.9.7 and still doesn't work.
Adding pymongo also led to open_ssl library getting installed - Anaconda's decision not mine. Don't know if that had anything to do with the issue.
Most helpful comment
Just want to update that I had the same error, so it seems been have forgotten, but it was fixed via conda update python.app