mikemountain / fantasy-football-scoreboard

Display the score of your fantasy football team on a Raspberry Pi driven RGB LED matrix for maximum ease of disappointment
GNU General Public License v3.0
56 stars 9 forks source link

module not found error: Yahoo_oauth #35

Closed Coop21 closed 1 year ago

Coop21 commented 1 year ago

I followed the instructions the best I could. Ran the yahoo install both in the fantasy_football_scoreboard directory and in the pi directory. But still getting this. I also ran the command to create the auth folder and manually created the token.json with the auth code from the app program once I authorized it. Any help would be appreciated. Thank you.

image

mikemountain commented 1 year ago

can you run sudo pip3 install yahoo-oauth?

On Thu., Sep. 8, 2022, 7:23 p.m. Coop21, @.***> wrote:

I followed the instructions the best I could. Ran the yahoo install both in the fantasy_football_scoreboard directory and in the pi directory. But still getting this. I also ran the command to create the auth folder and manually created the token.json with the auth code from the app program once I authorized it. Any help would be appreciated. Thank you.

[image: image] https://user-images.githubusercontent.com/80079281/189242150-6a9518e9-6da6-46b2-bf25-9215d6a1abc4.png

— Reply to this email directly, view it on GitHub https://github.com/mikemountain/fantasy-football-scoreboard/issues/35, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAY2XVR6MAULNJNHOSXBLDDV5JYPRANCNFSM6AAAAAAQIGMER4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Coop21 commented 1 year ago

So that worked, but now I get this...

image

mikemountain commented 1 year ago

Looks like a config issue, there might be too many curly braces because it's saying there is extra data. Can you check your config.json file and make sure it's all lined up?

Coop21 commented 1 year ago

I bet I know the issue. I had to manually create the token.json file. So I bet that's the problem. Can you list the format of that json file below? The main config file looks fine.

Coop21 commented 1 year ago

so I think I figured out the json thing. I get to the point where I enter in my code (I'm using Yahoo). Then I get this...

image

mikemountain commented 1 year ago

the auth/token.json file should look like this:

{ "access_token": <very long string here>, "consumer_key": <consumer key string here>, "consumer_secret": <consumer secret string here>, "guid": null, "refresh_token": <refresh token string here>, "token_time": <time here>, "token_type": "bearer" }

this should be autogenerated by the code; why did you have to manually create the token.json file?

Coop21 commented 1 year ago

Probably because I don't know what the hell I'm doing.

I scrapped the entire thing and started from scratch. I think I'm past the token and json stuff. Now it's this...

image

mikemountain commented 1 year ago

Hahaha no worry dude! This helps me figure out what I need to clarify in my readme/install scripts.

If there is a logos directory already, you can run sudo chown -R $(whoami):$(whoami) logos and it'll hopefully work after that.

If there isn't a logos directory, then you should be able to just run mkdir logos and then run the program as usual.

Can't be at my PC right now but want to make sure I can get this working for you, let me know if this works!

Coop21 commented 1 year ago

Making progress. Added the folder. Now this. Ran the chown command as well. Maybe I need read/write privileges to the folder?

image

mikemountain commented 1 year ago

Can you paste the output of ls -haltr ?

On Fri., Sep. 9, 2022, 8:42 p.m. Coop21, @.***> wrote:

Making progress. Added the folder. Now this. Ran the chown command as well. Maybe I need read/write privileges to the folder?

[image: image] https://user-images.githubusercontent.com/80079281/189461893-294c5537-902d-4170-a191-64a1f1619ffe.png

— Reply to this email directly, view it on GitHub https://github.com/mikemountain/fantasy-football-scoreboard/issues/35#issuecomment-1242576976, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAY2XVSDV23AJ4OGRHLSTGLV5PKNZANCNFSM6AAAAAAQIGMER4 . You are receiving this because you commented.Message ID: @.***>

Coop21 commented 1 year ago

image

Coop21 commented 1 year ago

It's working! I was able to change the directory permissions using winscp.

Sent you some beer money. Have a few cold ones on me, brother.

mikemountain commented 1 year ago

Hell yeah brother, cheers! Enjoy the board, and feel free to open a new ticket if more issues happen.