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

Error: Couldn't launch the stream #99

Closed
xMikasa opened this issue May 26, 2015 · 10 comments
Closed

Error: Couldn't launch the stream #99

xMikasa opened this issue May 26, 2015 · 10 comments

Comments

@xMikasa
Copy link

xMikasa commented May 26, 2015

Was working before but i was getting InsecurePlatformWarning so i updated python to 2.7.10 and reinstalled livestreamer and now i get this error every time. Using the macx64 version
screen shot 2015-05-27 at 01 29 57 1

Launching livestreamer manually via terminal works.

@bastimeyer
Copy link
Member

Hm, strange. I don't know why this is happening.
Seems like something is causing this JS-Promise chain to be rejected without any error output. It could be this method here, since everything else should return an error message.

Would you please be so kind and debug the application for me and then see where this error is coming from? Just go through the chain step by step and see what is happening.
You can find all the necessary NW.js informations in CONTRIBUTING.md

Edit
Maybe you could try to set a breakpoint here, too...

@Blackrame
Copy link

Hello. I can second that. Also using Mac64 version, also was getting the same error, also updated python and also having the same error now.
screen shot 2015-05-26 at 8 05 15 pm

I would like to debug the app for you, but I have no idea how to do it. I am very casual user.

EDIT: Livestreamer is working normally from the console. Watching Twitch just now.

@bastimeyer
Copy link
Member

What is the output of livestreamer --version --no-version-check ?

@Blackrame
Copy link

It says: livestreamer 1.12.2

@xMikasa
Copy link
Author

xMikasa commented May 26, 2015

hmm, this is weird. I did the grunt dev and ran nw.js from build/tmp folder. But now when i run the nw.js for debugging, it runs smoothly without any problems. Same error in main application.
screen shot 2015-05-27 at 07 04 43

edit: k it seems that after uninstalling livestreamer once and reinstalling makes the one in default $Path act like livestreamer it's uninstalled.
replacing livestreamer file "/Library/Frameworks/Python.framework/Versions/2.7/bin/livestreamer" from to "/usr/local/bin" fixes this. Alternatively adding "/Library/Frameworks/Python.framework/Versions/2.7/bin/livestreamer" to executable location in the application settings page also fixes this.

@xMikasa xMikasa closed this as completed May 26, 2015
@bastimeyer
Copy link
Member

Okay, that's weird... Thanks for taking the time finding a fix 👍

The main problem with OSX apps on Yosemite is, that you're unable to read the user's $PATH from within the application, so searching for livestreamer in all these paths is impossible. See the fix of #55: the solution was adding a fallback path (/usr/local/bin/livestreamer) hardcoded into the app. That's why it was working from the shell, because it was looking for livestreamer in a different location.

@Blackrame
Copy link

Sorry, so how will I make it work?

@xMikasa
Copy link
Author

xMikasa commented May 26, 2015

In the settings tab in the app just add this line, "/Library/Frameworks/Python.framework/Versions/2.7/bin/livestreamer" Change 2.7 with ur python version. use the command "which python" in terminal to find ur default version.
screen shot 2015-05-27 at 08 48 10

@Blackrame
Copy link

Thank you and thanks for this amazing app. Everything works now.

On 27 May 2015, at 12:51 am, Varun notifications@github.com wrote:

In the settings tab in the app just add this line, "/Library/Frameworks/Python.framework/Versions/2.7/bin/livestreamer" Change 2.7 with ur python version. use the command "which python" in terminal to find ur default version.
https://cloud.githubusercontent.com/assets/6782462/7825216/82eb8786-044d-11e5-9d6e-b5683ba94289.png

Reply to this email directly or view it on GitHub #99 (comment).

@bastimeyer
Copy link
Member

I've added /Library/Frameworks/Python.framework/Versions/Current/bin to the livestreamer OSX fallback paths...

thanks, @Blackrame

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

No branches or pull requests

3 participants