Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't launch Spyder through anaconda after trying to install jupyter package #22482

Open
9 of 10 tasks
robram945 opened this issue Sep 11, 2024 · 3 comments
Open
9 of 10 tasks

Comments

@robram945
Copy link

robram945 commented Sep 11, 2024

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

Tried to install jupyter package using "conda install spyder-notebook -c conda-forge" and now cannot open spyder

What steps reproduce the problem?

  1. Launching anaconda
  2. Trying to launch spyder

What is the expected output? What do you see instead?

Spyder just does not open get error code

Paste Traceback/Error Below (if applicable)

PASTE TRACEBACK HERE
Traceback (most recent call last):
File "/Users/anaconda3/bin/spyder", line 7, in 
from spyder.app.start import main
File "/Users/anaconda3/lib/python3.12/site-packages/spyder/app/start.py", line 25, in 
import ctypes
File "/Users/anaconda3/lib/python3.12/ctypes/__init__.py", line 8, in 
from _ctypes import Union, Structure, Array
ImportError: dlopen(/Users/anaconda3/lib/python3.12/lib-dynload/_ctypes.cpython-312-darwin.so, 0x0002): symbol not found in flat namespace '_CFBundleGetVersionNumber'

Versions

  • Spyder version: 5.51
  • Python version:
  • Qt version:
  • PyQt version:
  • Operating System name/version:

Dependencies

PASTE DEPENDENCIES HERE
@robram945
Copy link
Author

python version: 3.12.4
qt version: qt-main 5.15.2
pyqt version: 2.4.1
operating system: os

@PhilipYip1988
Copy link

You are attempting to install a conda-forge (community channel) package into the Anaconda base Python environment which uses the anaconda (commercial channel).

The commercial channel is a limited set of packages, repackaged by Anaconda for use in their Anaconda base Python environment. The Anaconda base Python environment should generally be used "as is" with limited updates to the conda package manager and anaconda-navigator. Installation of community channel packages into the base Python environment, generally results in instabilities.

You should reinstall Anaconda and create a new Python environment (subinstallation of Python), with spyder-notebooks and the optional dependencies (seaborn installs, numpy, pandas and matplotlib, pyqt is needed for the interactive qt backend for matplotlib plots and the other dependencies are needed for pandas to read/write to various formats):

conda create -n spyder-env -c conda-forge python spyder spyder-notebook cython seaborn pyarrow sympy openpyxl xlrd xlsxwriter lxml sqlalchemy tabulate pyqt

@ccordoba12
Copy link
Member

@PhilipYip1988, thanks for chiming in and helping @robram945 with this problem.

@robram945, let us know if the command posted by @PhilipYip1988 helps you to solve your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants