I can't launch spyder from anaconda-navigator environment
See original GitHub issueDescription of your problem
I upgraded many python packages using the Anaconda-Navigator Environment , which broke spyder ( and also jupyterlab, which I don’t use ) the GitHub python people suggested I roll back to a good version, but the command apparently removed a lot of files it wasn’t supposed too. 😦. finally, I have used “conda install” to get about 50 removed files back and Anaconda-Navigator will launch , but spyder will not!! I’ve done the spyder – reset several times.
What steps will reproduce the problem?
- more history on Anaconda GitHub, issue # 7855 .
What is the expected output? What do you see instead? I only get the crash reports traceback ( from the Terminal window ) and the jpg above.
CAM-Gerlach Edit: Pasted your traceback inline
fredericks-MBP:~ bravo$ spyder Traceback (most recent call last): File “/anaconda3/lib/python3.6/site-packages/spyder/app/mainwindow.py”, line 3126, in main mainwindow = run_spyder(app, options, args) File “/anaconda3/lib/python3.6/site-packages/spyder/app/mainwindow.py”, line 3023, in run_spyder main.setup() File “/anaconda3/lib/python3.6/site-packages/spyder/app/mainwindow.py”, line 825, in setup from spyder.plugins.console import Console File “/anaconda3/lib/python3.6/site-packages/spyder/plugins/console.py”, line 35, in <module> from spyder.widgets.internalshell import InternalShell File “/anaconda3/lib/python3.6/site-packages/spyder/widgets/internalshell.py”, line 27, in <module> from spyder.interpreter import Interpreter File “/anaconda3/lib/python3.6/site-packages/spyder/interpreter.py”, line 14, in <module> import ctypes File “/anaconda3/lib/python3.6/ctypes/init.py”, line 7, in <module> from _ctypes import Union, Structure, Array ImportError: dlopen(/anaconda3/lib/python3.6/lib-dynload/_ctypes.cpython-36m-darwin.so, 2): Symbol not found: __PyUnicode_AsWideCharString Referenced from: /anaconda3/lib/python3.6/lib-dynload/_ctypes.cpython-36m-darwin.so Expected in: flat namespace in /anaconda3/lib/python3.6/lib-dynload/_ctypes.cpython-36m-darwin.so
Please provide any additional information below conda info.txt
Versions and main components
- Spyder Version: 3.2.6
- Python Version: 3.6.4
- Qt Version:
- PyQt Version: Anaconda-Navigator : 1.6.12
- Operating system: Mac OS 10.13.2.
==========
I’m trying to begin a new online Udemy course on Neural Networks, and I have to have Python to begin. I’m pretty new to all this. But my system has been broken since Dec 19, so I’m not feeling optimistic about this .
Dependencies
Please go to the menu entry Help > Optional Dependencies
(or
Help > Dependencies
), press the button Copy to clipboard
and paste the contents below:
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (6 by maintainers)
Top GitHub Comments
@debasistripathy1 That traceback is completely different from that originally reported here, sorry. In any case, the error is fairly clear if you are familiar with Python—Spyder can’t find the
atomicwrites
module it requires installed. You can try installing it by runningconda install atomicwrites
in yourbase
environment on the command line (you may need to typeconda activate base
first). However, this may be a symptom of a broken Anaconda installation sinceatomicwrites
should be installed by default with Anaconda. If you still get problems, try creating a fresh Spyder environment withconda create -n spyder-env spyder=4 python=3.7
then activating it withconda activate spyder-env
and finally running Spyder from it withspyder
(or doing the last two steps with Anaconda navigator, if you prefer). Best of luck!I am doing a complete remove and install of anaconda. Hopefully the second time around to install the data programs like XGBoost, TensorFlow, Brew, and others will be easier if I have kept good notes. my key learning is that I’m NOT using the Anaconda --> Environment page to update individual packages.
I really appreciate your time and information. I have saved your anaconda info from above.