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

generate-token.sh not generating .cache file #24

Open
thenamesweird opened this issue Aug 13, 2024 · 0 comments
Open

generate-token.sh not generating .cache file #24

thenamesweird opened this issue Aug 13, 2024 · 0 comments

Comments

@thenamesweird
Copy link

thenamesweird commented Aug 13, 2024

Initial setup, when I enter the url that I am directed to, nothing happens. generate-token.py doesn't complete or something?

I also get the DepreciationWarning that other people have gotten.

Raspbian (bookworm)
python: 3.12
git bash

I love the project though Ryan! Keep it up.

EDIT: Found a couple issues.

  1. Python PATH wasnt set correctly so it couldnt properly run any other code, so that got me further.
  2. The SpotiPY library has a static method for input from the console. It's a Try/Except clause that attempts raw_input(prompt) which is a python 2.x function. It should produce a NameError exception that kicks in the Except clause and try the python 3.x input(prompt) but that wasn't working so I just changed that in oauth2.py since i know i am running python 3.12. It simply returns input(prompt) now.
  3. Kept kicking up errors when I tried to input the redirect url (i believe its an encoding issue?) but i changed your generate-token.sh to openbrowser=True and that seemed to work. Generated a token after that. idek.

Now I still cant get the damn thing to output an image but I'm still working on that. I'm thinking its the PiOS?

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

No branches or pull requests

1 participant