bbye98 / minim

A collection of music service (iTunes, Qobuz, Spotify, TIDAL) APIs for media information retrieval and semi-automated music tagging.
https://bbye98.github.io/minim/
GNU General Public License v3.0
41 stars 3 forks source link

zsh: number expected #19

Closed nothing2obvi closed 2 months ago

nothing2obvi commented 3 months ago

Hello, I'm just getting started using minim, but I tried to install via both venv and virtualenv and when I run scopes = spotify.WebAPI.get_scopes("all") I get the following:

zsh: number expected

My zsh version is 5.9.

And when I tried installing minim without a virtual environment and run python3 minim -v I get:

python3 minim -v
/Library/Frameworks/Python.framework/Versions/3.12/bin/python3: can't find '__main__' module in '/Users/username/minim/minim'

What am I doing wrong? Thanks!

P.S. Sorry, I would open a discussion as I know this isn't necessarily a bug, but Discussions aren't enabled.

bbye98 commented 3 months ago

Minim is a Python library. It looks like you're trying to run it from the command line currently. You need to start a Python session first.

❯ scopes = spotify.WebAPI.get_scopes("all")
zsh: number expected

❯ python3
Python 3.11.8 | packaged by conda-forge | (main, Feb 16 2024, 20:53:32) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from minim import spotify
>>> scopes = spotify.WebAPI.get_scopes("all")
>>> scopes
'ugc-image-upload user-read-playback-state user-modify-playback-state user-read-currently-playing app-remote-control streaming playlist-read-private playlist-read-collaborative playlist-modify-private playlist-modify-public user-follow-modify user-follow-read user-read-playback-position user-top-read user-read-recently-played user-library-modify user-library-read user-read-email user-read-private'
bbye98 commented 2 months ago

As I haven't heard back in a while, I'm going to go ahead and close this issue. Feel free to reopen this issue if you still need help.