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

Import error if charset-normalizer >= 3.3.0 is installed #1039

Open
dwinkler1 opened this issue Nov 20, 2023 · 1 comment
Open

Import error if charset-normalizer >= 3.3.0 is installed #1039

dwinkler1 opened this issue Nov 20, 2023 · 1 comment
Labels

Comments

@dwinkler1
Copy link

Describe the bug
There is an import error with charset-normalizer version>=3.3.0

Your code

import spotipy

Expected behavior

Output

ImportError: cannot import name 'is_ascii' from 'charset_normalizer.utils' (/Users/daniel/mambaforge/envs/research/lib/python3.11/site-packages/charset_normalizer/utils.py)

Environment:

  • OS: Mac
  • Python version 3.11.6
  • spotipy version 2.23.0
  • your IDE (if using any): Jupyter Kernel in VS Code

Additional context
Add any other context about the problem here.

@dwinkler1 dwinkler1 added the bug label Nov 20, 2023
@Ousret
Copy link

Ousret commented Dec 11, 2023

It is due to a dual version of charset-normalizer present in vendored libs of conda vs your regular site-package environment.

A quick fix is to align both versions, unfortunately. Force install a older version of charset-normalizer.
It's a known issue. Spotipy can't help for that one.

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

No branches or pull requests

2 participants