[GH-ISSUE #254] Module Spotipy does not exist #136

Closed
opened 2026-02-27 23:21:01 +03:00 by kerem · 6 comments
Owner

Originally created by @timbirtles on GitHub (Feb 11, 2018).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/254

`Traceback (most recent call last):
File "C:/Users/Tims/Documents/Python/ss.py", line 2, in
import spotipy
ModuleNotFoundError: No module named 'spotipy'

Its saying the module does not exist.... I didn't actually code this by the way, its just one of spotify's example s. import sys
import spotipy

if name == 'main':
max_tracks_per_call = 50
if len(sys.argv) > 1:
file = open(sys.argv[1])
else:
file = sys.stdin
tids = file.read().split()

sp = spotipy.Spotify()
for start in range(0, len(tids), max_tracks_per_call):
    results = sp.tracks(tids[start: start + max_tracks_per_call])
    for track in results['tracks']:
        print(track['name'] + ' - ' + track['artists'][0]['name'])

`

Originally created by @timbirtles on GitHub (Feb 11, 2018). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/254 `Traceback (most recent call last): File "C:/Users/Tims/Documents/Python/ss.py", line 2, in <module> import spotipy ModuleNotFoundError: No module named 'spotipy' >>> ` Its saying the module does not exist.... I didn't actually code this by the way, its just one of spotify's example s. `import sys import spotipy if __name__ == '__main__': max_tracks_per_call = 50 if len(sys.argv) > 1: file = open(sys.argv[1]) else: file = sys.stdin tids = file.read().split() sp = spotipy.Spotify() for start in range(0, len(tids), max_tracks_per_call): results = sp.tracks(tids[start: start + max_tracks_per_call]) for track in results['tracks']: print(track['name'] + ' - ' + track['artists'][0]['name']) `
kerem closed this issue 2026-02-27 23:21:01 +03:00
Author
Owner

@pl4nty commented on GitHub (Feb 11, 2018):

Did you run pip install spotipy?

<!-- gh-comment-id:364801250 --> @pl4nty commented on GitHub (Feb 11, 2018): Did you run `pip install spotipy`?
Author
Owner

@HuzefaMandvi commented on GitHub (Feb 20, 2018):

If using python3 make sure to run pip3 install spotipy

<!-- gh-comment-id:366980102 --> @HuzefaMandvi commented on GitHub (Feb 20, 2018): If using python3 make sure to run `pip3 install spotipy`
Author
Owner

@mateusrangel commented on GitHub (Mar 20, 2018):

use pip install spotipy or pip3 install spotipy (if your system default python isn't python3)

you can check installed modules using pip freeze

<!-- gh-comment-id:374635260 --> @mateusrangel commented on GitHub (Mar 20, 2018): use `pip install spotipy` or` pip3 install spotipy` (if your system default python isn't python3) you can check installed modules using `pip freeze`
Author
Owner

@mikechen66 commented on GitHub (May 2, 2020):

I am pleased to notify you that the following command include both Python2 and Python3 environbment.

$ pip install spotipy

You do not need use the command pip3 install spotify. The command of pip3 that installs spotify is wrong and incurs the error of import spotipy while you use the Python3 environment.

Please see the spotipy details as follows.

spotipy: https://github.com/joohoi/spotipy/tree/python3

<!-- gh-comment-id:622671245 --> @mikechen66 commented on GitHub (May 2, 2020): I am pleased to notify you that the following command include both Python2 and Python3 environbment. $ pip install spotipy You do not need use the command $ pip3 install spotify. The command of $ pip3 that installs spotify is wrong and incurs the error of import spotipy while you use the Python3 environment. Please see the spotipy details as follows. spotipy: https://github.com/joohoi/spotipy/tree/python3
Author
Owner

@sameehaafr commented on GitHub (Jul 31, 2022):

I'm still having an issue with using spotipy ini jupyter notebook. I installed it exactly as mentioned about and get the same error

<!-- gh-comment-id:1200330357 --> @sameehaafr commented on GitHub (Jul 31, 2022): I'm still having an issue with using spotipy ini jupyter notebook. I installed it exactly as mentioned about and get the same error
Author
Owner

@stephanebruckert commented on GitHub (Jul 31, 2022):

This is possibly a common python issue unrelated with spotipy. Make sure you don't have another folder (maybe file?) in your project that's called spotipy.

<!-- gh-comment-id:1200514903 --> @stephanebruckert commented on GitHub (Jul 31, 2022): This is possibly a common python issue unrelated with spotipy. Make sure you don't have another folder (maybe file?) in your project that's called spotipy.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#136
No description provided.