Closed DrEggman closed 11 years ago
please please don't run livestreamer as root
Problem is if i dont run it as root it wont work.
When i am trying to run it without sudo i get the following:
My-iMac:~ username$ livestreamer -bash: livestreamer: command not found
Or does anyone know why i can only use livestream with root? As i said i can't run livestreamer without sudo.
As raylu mentioned you really shouldn't need to run livestreamer as root.
-bash: livestreamer: command not found
This is pretty odd, because by installing using pip it should put a livestreamer executable in a location that's accesible by any user on your system. I'm not a OS X user myself though, maybe someone else has a solution?
My-iMac:~ username$ sudo livestreamer -p twitch.tv/lethalfrag best
This is not a correct command line, it should be something like this livestreamer -p pathtoplayer twitch.tv/lethalfrag best
. You did not specify a player to the -p argument, thus it thinks you want to start the url as a player.
As for the problem with the player not starting, verify that the default player /Applications/VLC.app/Contents/MacOS/VLC
exists in your system and is able to start, and if not try specifying the correct path using -p/--player.
Is it normal that i can run pip only with sudo too? Because i only can run pip with sudo.
Is it normal that i can run pip only with sudo too? Because i only can run pip with sudo.
The pip command should be usable by any user on the system, but installing any package globally using it will most likely require you to use sudo.
How did you install pip on your system? After some quick googling the command sudo easy_install pip
should be the correct way.
This guide might help you: https://python-guide.readthedocs.org/en/latest/starting/install/osx.html
Eureka!
I gave me some access to the following directorys using following commands:
sudo chmod -R 777 /usr/local/bin/
sudo chmod -R 777 /Library/Python/2.7/site-packages/
Now i can install pip & livestreamer without sudo.
this is the only thing worse than running livestreamer as root. you just made global installation directories world-writable.
the correct solution would have been to run sudo which livestreamer
and inspecting that path to see why you couldn't use it as your user (either not on your PATH
or not read/exec by your user)
as i'm sure you won't do this, enjoy having a broken system in a month
Thank you for your warning, and i knew this isn't the best solution for my problem, but i did this because i know that i must reinstall my system in a few days because of some various things, so i dont have a problem with it.
I'm having this same issue. Running sudo which livestreamer
yields no results for me.
I installed rtmpdump (via github), livestreamer (via pip) and the newest version of VLC yesterday. But when i'm trying to open a stream VLC wont open, but i dont get any errors or something:
My-iMac:~ username$ sudo livestreamer twitch.tv/lethalfrag best [cli][info] Found matching plugin justintv for URL twitch.tv/lethalfrag [cli][info] Opening stream: 720p+ [cli][info] Starting player: /Applications/VLC.app/Contents/MacOS/VLC [cli][info] Player closed [cli][info] Stream ended
When i am trying to use -p i get the following error:
My-iMac:~ username$ sudo livestreamer -p twitch.tv/lethalfrag best error: No plugin can handle URL: best
I tried everything with mplayer and it works but video and audio are out of sync with mplayer.
(Sorry if i did any spelling mistakes or something, i am not a native speaker :D )