Open Lejobuild opened 2 years ago
I have the same issue too @JJoshyyy , pip is already installed.
Requirement already satisfied: livestreamer in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (1.12.2) Requirement already satisfied: requests<3.0,>=1.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from livestreamer) (2.28.1) Requirement already satisfied: charset-normalizer<3,>=2 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3.0,>=1.0->livestreamer) (2.1.1) Requirement already satisfied: idna<4,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3.0,>=1.0->livestreamer) (2.8) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3.0,>=1.0->livestreamer) (1.26.5) Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3.0,>=1.0->livestreamer) (2022.12.7)
An error has occurred while trying to use livestreamer package. Is it installed? Do you have Python in your PATH variable? Traceback (most recent call last): File "/Users/user/Desktop/Development/twitch-viewer/twitch-viewer.py", line 48, in get_url url = json.loads(response)['streams']['audio_only']['url'] ^^^^^^^^ UnboundLocalError: cannot access local variable 'response' where it is not associated with a value
I have the same issue too @JJoshyyy , pip is already installed.
Requirement already satisfied: livestreamer in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (1.12.2) Requirement already satisfied: requests<3.0,>=1.0 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from livestreamer) (2.28.1) Requirement already satisfied: charset-normalizer<3,>=2 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3.0,>=1.0->livestreamer) (2.1.1) Requirement already satisfied: idna<4,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3.0,>=1.0->livestreamer) (2.8) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3.0,>=1.0->livestreamer) (1.26.5) Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests<3.0,>=1.0->livestreamer) (2022.12.7)
That means nothing, its just saying that the apps are already installed
An error has occurred while trying to use livestreamer package. Is it installed? Do you have Python in your PATH variable? Traceback (most recent call last): File "/Users/user/Desktop/Development/twitch-viewer/twitch-viewer.py", line 48, in get_url url = json.loads(response)['streams']['audio_only']['url'] ^^^^^^^^ UnboundLocalError: cannot access local variable 'response' where it is not associated with a value
No clue, try lookuing elsewhere
Do the exact thing as i said above bro. pip install livestreamer
i install livestreamer again, the problem remains the same
maybe its a problem caused because im running it from a Mac?
maybe its a problem caused because im running it from a Mac?
Most likely in that case. Try setting up a vm running windows
@Lejobuild try running the following: pip install livestreamer then try again