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.

I can't launch spyder from anaconda-navigator environment

See original GitHub issue

Description 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?

  1. 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.

spyder launch error screen 21jan2018

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

conda list.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:closed
  • Created 6 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
CAM-Gerlachcommented, May 22, 2020

@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 running conda install atomicwrites in your base environment on the command line (you may need to type conda activate base first). However, this may be a symptom of a broken Anaconda installation since atomicwrites should be installed by default with Anaconda. If you still get problems, try creating a fresh Spyder environment with conda create -n spyder-env spyder=4 python=3.7 then activating it with conda activate spyder-env and finally running Spyder from it with spyder (or doing the last two steps with Anaconda navigator, if you prefer). Best of luck!

1reaction
flwheeler2commented, Feb 4, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't launch Spyder from Anaconda Navigator - Stack Overflow
This problem had to do with the PyQt5 installation. The way to fix it was to uninstall it pip uninstall PyQt5.
Read more >
Cannot launch Spyder from Anaconda (New) #18525 - GitHub
I cannot launch Spyder from latest version of Anaconda. Also tried uninstall and ... Launch Anaconda Navigator; Launch Spyder 5.1.5 ...
Read more >
Frequently Asked Questions — Spyder 5 documentation
From the command line: Type spyder in your terminal (or Anaconda prompt on Windows). · From Anaconda Navigator: Scroll to Spyder under Home,...
Read more >
Getting started with Anaconda
Run Python in Spyder IDE (integrated development environment)¶ · On Navigator's Home tab, in the Applications pane on the right, scroll to the...
Read more >
Spyder won't open - Q&A di Informatica
I suggest you uninstall spyder and delete its cache which is located in the AppData/Local folder. You could also do this with anaconda...
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