Open konrad51 opened 1 year ago
Hi, first you need to create a Spotify app in their dashboard: https://developer.spotify.com
Then setup those environment variables in your shell ('SPOTIPY_CLIENT_ID', 'SPOTIPY_CLIENT_SECRET', 'SPOTIPY_REDIRECT_URI')
For example,
export SPOTIPY_CLIENT_ID=<CLIENT-ID-FROM-SPOTIFY-APP-DASHBOARD>
export SPOTIPY_CLIENT_SECRET=<CLIENT-SECRET-FROM-SPOTIFY-APP-DASHBOARD>
export SPOTIPY_REDIRECT_URI=http://localhost:9090
Then you can run
wizmusic
In the example above, make sure to put the same Redirect URI in the Spotify app dashboard
Still trying to get this to work. Using windows 10. am using... powershell $Env:SPOTIPY_CLIENT_ID='7644a895f19b4a9d8d97b9738b899476' Same with client secret and redirect uri. This is what I get "C:\Users\schultz\AppData\Local\Programs\Python\Python39\Scripts>wizmusic Missing envs: {'SPOTIPY_REDIRECT_URI', 'SPOTIPY_CLIENT_SECRET', 'SPOTIPY_CLIENT_ID'}. Please help .Thank you.
Never used powershell but you can verify your envs running
Get-ChildItem Env:
Thanks for responding.OK, my system is Windows 10. I used the set command to set the environment variables.( in a regular windows command window...no powershell). I used the "set" command to list environment variables.The spotipy variables were listed when I typed "set" in the command console. I used single quotes around the variables ie set 'SPOTIPY_REDIRECT_URI=http://localhost:8888/callback/' ( I opened command window in wizmusic directory). Results as follows:
C:\Users\schultz\AppData\Local\Programs\Python\Python39\Lib\site-packages\wizmusic>set 'SPOTIPY_CLIENT_ID=7644a895f19b4a9d8d97b9738b899476' 'SPOTIPY_CLIENT_SECRET=3fac05dd9f3a4f41aca38b6d5d6284ad' 'SPOTIPY_REDIRECT_URI=http://localhost:8888/callback/'
C:\Users\schultz\AppData\Local\Programs\Python\Python39\Lib\site-packages\wizmusic>wizmusic Missing envs: {'SPOTIPY_CLIENT_ID', 'SPOTIPY_CLIENT_SECRET', 'SPOTIPY_REDIRECT_URI'}
If set without single quotes I get:
C:\Users\schultz\AppData\Local\Programs\Python\Python39\Lib\site-packages\wizmusic>set SPOTIPY_CLIENT_ID=7644a895f19b4a9d8d97b9738b899476 SPOTIPY_CLIENT_SECRET=3fac05dd9f3a4f41aca38b6d5d6284ad SPOTIPY_REDIRECT_URI=http://localhost:8888/callback/
C:\Users\schultz\AppData\Local\Programs\Python\Python39\Lib\site-packages\wizmusic>wizmusic
Traceback (most recent call last):
File "c:\users\schultz\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\schultz\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\schultz\AppData\Local\Programs\Python\Python39\Scripts\wizmusic.exe__main.py", line 4, in
I am trying really hard to get this to work. Does this even work on Windows? If so, please tell me what I am doing wrong. It seems to be something to do with setting the environment variables. A really detailed explanation (step-by-step) with examples or an alternative method of setting the environment variables would be really helpful. I think I would really enjoy this program if I could only get it to work .Thank you very much
Mm looks weird. You could try installing Ubuntu on Windows using WSL. Following this tutorial https://youtu.be/7-a1A5ETeyk
And then follow the README installation steps inside the Ubuntu box
El sáb., 16 sep. 2023 10:58, konrad51 @.***> escribió:
Thanks for responding.OK, my system is Windows 10. I used the set command to set the environment variables.( in a regular windows command window...no powershell). I used the "set" command to list environment variables.The spotipy variables were listed when I typed "set" in the command console. I used single quotes around the variables ie set 'SPOTIPY_REDIRECT_URI= http://localhost:8888/callback/' ( I opened command window in wizmusic directory). Results as follows:
C:\Users\schultz\AppData\Local\Programs\Python\Python39\Lib\site-packages\wizmusic>set 'SPOTIPY_CLIENT_ID=7644a895f19b4a9d8d97b9738b899476' 'SPOTIPY_CLIENT_SECRET=3fac05dd9f3a4f41aca38b6d5d6284ad' 'SPOTIPY_REDIRECT_URI=http://localhost:8888/callback/'
C:\Users\schultz\AppData\Local\Programs\Python\Python39\Lib\site-packages\wizmusic>wizmusic Missing envs: {'SPOTIPY_CLIENT_ID', 'SPOTIPY_CLIENT_SECRET', 'SPOTIPY_REDIRECT_URI'}
If set without single quotes I get:
C:\Users\schultz\AppData\Local\Programs\Python\Python39\Lib\site-packages\wizmusic>set SPOTIPY_CLIENT_ID=7644a895f19b4a9d8d97b9738b899476 SPOTIPY_CLIENT_SECRET=3fac05dd9f3a4f41aca38b6d5d6284ad SPOTIPY_REDIRECT_URI=http://localhost:8888/callback/
C:\Users\schultz\AppData\Local\Programs\Python\Python39\Lib\site-packages\wizmusic>wizmusic Traceback (most recent call last): File "c:\users\schultz\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main return
run_code(code, main_globals, None, File "c:\users\schultz\appdata\local\programs\python\python39\lib\runpy.py", line 87, in run_code exec(code, run_globals) File "C:\Users\schultz\AppData\Local\Programs\Python\Python39\Scripts\wizmusic.exe_main.py", line 4, in File "c:\users\schultz\appdata\local\programs\python\python39\lib\site-packages\wizmusic_init.py", line 1, in from .client import Client File "c:\users\schultz\appdata\local\programs\python\python39\lib\site-packages\wizmusic\client.py", line 11, in from .player import spotify File "c:\users\schultz\appdata\local\programs\python\python39\lib\site-packages\wizmusic\player.py", line 17, in oauth2 = SpotifyOAuth( File "c:\users\schultz\appdata\local\programs\python\python39\lib\site-packages\spotipy\oauth2.py", line 332, in init self.client_id = client_id File "c:\users\schultz\appdata\local\programs\python\python39\lib\site-packages\spotipy\oauth2.py", line 94, in client_id self._client_id = _ensure_value(val, "client_id") File "c:\users\schultz\appdata\local\programs\python\python39\lib\site-packages\spotipy\oauth2.py", line 70, in _ensure_value raise SpotifyOauthError(msg) spotipy.oauth2.SpotifyOauthError: No client_id. Pass it or set a 7644a895f19b4a9d8d97b9738b899476 environment variable.
I am trying really hard to get this to work. Does this even work on Windows? If so, please tell me what I am doing wrong. It seems to be something to do with setting the environment variables. A really detailed explanation (step-by-step) with examples or an alternative method of setting the environment variables would be really helpful. I think I would really enjoy this program if I could only get it to work .Thank you very much
— Reply to this email directly, view it on GitHub https://github.com/redraw/wizmusic/issues/1#issuecomment-1722236215, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSXISH4B4IVTSUWYC24JFLX2WWATANCNFSM6AAAAAA3WVDV2E . You are receiving this because you commented.Message ID: @.***>
Installed ubuntu as per video, installed wizmusic ...still doesn't work . Got wizbulb timeout. Too bad it does'nt work on Windows. Wish I could figure out the environment variable problem. I appreciate the time and trouble you took to try to help me. Thank you.
Great! seems like the envs are ok. Did it authorized with your spotify app the first time it run? Are you passing your wiz ip? Like this
wizmusic -H
The easiest way to find the Wiz ip is by using the Fing app in your phone, it will run a scan in your network and list all your network devices with a friendly name
El sáb., 16 sep. 2023 13:18, konrad51 @.***> escribió:
Installed ubuntu as per video, installed wizmusic ...still doesn't work . Got wizbulb timeout. Too bad it does'nt work on Windows. Wish I could figure out the environment variable problem. I appreciate the time and trouble you took to try to help me. Thank you.
— Reply to this email directly, view it on GitHub https://github.com/redraw/wizmusic/issues/1#issuecomment-1722263024, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSXISD2SACLQGM6JFKBONLX2XGORANCNFSM6AAAAAA3WVDV2E . You are receiving this because you commented.Message ID: @.***>
Much thanks for the help. Did not really get anywhere with this . Don't really want to install gigabytes of software to try to get one program to work (and another OS). Was hoping for a work-around to get it to work on Windows since it seems the problem was getting the program to recognize the env variables. Appreciate the help, thanks.
Yeah I understand. You might try setting them as system env variables. These are for some Oracle ones, but add the SPOTIPY ones instead.
Once your envs are set correctly, if you receive wiz timeout, you might wanna check if the Wiz IP is ok.
El mar., 19 sep. 2023 10:36, konrad51 @.***> escribió:
Much thanks for the help. Did not really get anywhere with this . Don't really want to install gigabytes of software to try to get one program to work (and another OS). Was hoping for a work-around to get it to work on Windows since it seems the problem was getting the program to recognize the env variables. Appreciate the help, thanks.
— Reply to this email directly, view it on GitHub https://github.com/redraw/wizmusic/issues/1#issuecomment-1725541931, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSXISAPW2ACRECXYST3O5TX3GNXLANCNFSM6AAAAAA3WVDV2E . You are receiving this because you commented.Message ID: @.***>
I am trying to use your program "wizmusic". I have Spotify client ID , client secret and redirect uri. When I try to run I get "Missing envs: {'SPOTIPY_CLIENT_ID', 'SPOTIPY_CLIENT_SECRET', 'SPOTIPY_REDIRECT_URI'}. Can you give me an example of the command and syntax of running Wizmusic? I am trying wizmusic -H then env vars. Can you give me an example with values, commas , spaces, so I can plug in my numbers? Thanks!