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

zsh: number expected #19

Closed
nothing2obvi opened this issue Jun 6, 2024 · 2 comments
Closed

zsh: number expected #19

nothing2obvi opened this issue Jun 6, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@nothing2obvi
Copy link

nothing2obvi commented Jun 6, 2024

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 bbye98 self-assigned this Jun 6, 2024
@bbye98 bbye98 added the question Further information is requested label Jun 6, 2024
@bbye98
Copy link
Owner

bbye98 commented Jun 6, 2024

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
Copy link
Owner

bbye98 commented Jul 4, 2024

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.

@bbye98 bbye98 closed this as completed Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants