Tried updating Spyder—now Anaconda not working

295 views
Skip to first unread message

NICHOLAS SIMON

unread,
Aug 17, 2022, 8:14:48 PM8/17/22
to spyder
Hi all!

Any suggestions with the problem described below would be greatly appreciated. 

I'm having issues with Anaconda. My problems started after I tried updating Spyder. Here's the sequence of events:
  • I opened Anaconda
  • I opened Spyder
  • A tab popped up indicating that I could update to the newest version of Spyder. (I can't remember which version.) 
  • The tab stated that in order to prompt this update, I had to run a couple lines of code in my Terminal
  • The code was provided on the tab. (Unfortunately, I don't remember the code, otherwise I'd include it in this email.)
  • I ran the code in the Terminal
  • I tried reopening Anaconda
  • A Navigation Error appeared on my browser.
  • I've pasted the text from the Navigation Error below. (The same Navigation Error appears every time I try to open Anaconda.):
Navigator Error

An unexpected error occurred on Navigator start-up

Report

Please report this issue in the anaconda issue tracker

Main Error

failed to run: 'conda info --json': "FileNotFoundError(2, 'No such file or directory')"

Traceback:

Traceback (most recent call last):
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_project/internal/conda_api.py", line 68, in _call_conda
    (p, stdout_lines, stderr_lines) = streaming_popen.popen(cmd_list,
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_project/internal/streaming_popen.py", line 83, in popen
    p = logged_subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_project/internal/logged_subprocess.py", line 27, in Popen
    return subprocess.Popen(args=args, **kwargs)
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'conda'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_navigator/exceptions.py", line 72, in exception_handler
    return_value = func(*args, **kwargs)
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_navigator/app/start.py", line 151, in start_app
    window = run_app(splash)
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_navigator/app/start.py", line 66, in run_app
    window = MainWindow(splash=splash)
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_navigator/widgets/main_window/__init__.py", line 235, in __init__
    self.api = AnacondaAPI()
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_navigator/api/anaconda_api.py", line 1442, in AnacondaAPI
    ANACONDA_API = _AnacondaAPI()
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_navigator/api/anaconda_api.py", line 82, in __init__
    self._project_api = ProjectAPI()
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_navigator/api/project_api.py", line 154, in ProjectAPI
    PROJECT_API = _ProjectAPIWrapper()
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_navigator/api/project_api.py", line 58, in __init__
    from anaconda_project.api import AnacondaProject
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_project/api.py", line 24, in
    from anaconda_project import prepare, project, provide, project_ops
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_project/prepare.py", line 19, in
    from anaconda_project.internal import conda_api
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_project/internal/conda_api.py", line 626, in
    _default_platforms_with_current = tuple(sorted(list(set(default_platforms + (current_platform(), )))))
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_project/internal/conda_api.py", line 622, in current_platform
    conda_info = info()
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_project/internal/conda_api.py", line 117, in info
    return _call_and_parse_json(['info', '--json'], platform=platform)
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_project/internal/conda_api.py", line 104, in _call_and_parse_json
    out = _call_conda(extra_args, json_mode=True, platform=platform)
  File "/Users/nicholassimon/opt/anaconda3/lib/python3.9/site-packages/anaconda_project/internal/conda_api.py", line 73, in _call_conda
    raise CondaError("failed to run: %r: %r" % (command_in_errors, repr(e)))
anaconda_project.internal.conda_api.CondaError: failed to run: 'conda info --json': "FileNotFoundError(2, 'No such file or directory')"

I've been looking for solutions online but haven't had any luck yet. I've also tried reaching out to folks at Anaconda (per the Navigation Error) but haven't heard back yet. 

I'd love to get your thoughts—very open to any suggestions!

Thanks,
Nick

Daniel Althviz Moré

unread,
Aug 22, 2022, 1:45:37 PM8/22/22
to spyder
Hi Nick,

Maybe you could check if the Spyder troubleshooting guide/resources: https://docs.spyder-ide.org/current/troubleshooting/index.html

Also, maybe if you try to open Spyder from the terminal directly (running with your env activated 'spyder') you will be able to use Spyder again. If the issue persist I would suggest you to open and issue with all the details following the instructions at https://docs.spyder-ide.org/current/troubleshooting/submit-a-report.html#submit-a-report

Best regards,

Daniel

NICHOLAS SIMON

unread,
Aug 22, 2022, 8:51:08 PM8/22/22
to spyd...@googlegroups.com
Thanks for the note, Daniel! I took the advice you gave me on the public thread—went ahead and reinstalled Anaconda. That did the trick!

Appreciate you following up.

Best,
Nick

--
You received this message because you are subscribed to a topic in the Google Groups "spyder" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spyderlib/6s4ROm23sng/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/052b5ca6-de51-437b-93d5-a963291acb04n%40googlegroups.com.

Daniel Althviz Moré

unread,
Aug 23, 2022, 2:19:49 PM8/23/22
to spyder
Awesome, glad you got your setup working again!

Best regards,

Daniel
Reply all
Reply to author
Forward
0 new messages