-
Notifications
You must be signed in to change notification settings - Fork 303
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
Python quits and ka-lite server is killed when trying to download videos (on Macbook) #3593
Comments
This is unexpected! Which version of OS X are you running? Just checked here Python 2.7.9 and KA-Lite13.1 branch downloading videos no problem? |
Sounds like this is a revival of this issue: Installing a clean version of Python 2.7.9 from the Python website directly should fix this. @MCGallaspy, I think we used to highlight this fact more saliently on the install guide. The current version only asks them to verify that they have 2.6 or 2.7 installed, not that the built-in version of Python blows up on video download. Could you add some sort of "Warning" box on this page? |
@jamalex @aronasorman In a prior issue #3592 report and this one there was mention that the latest python was being used. Knowing we are testing a MAC installer this week I want to be absolutely sure our 13.1 is good here in order to revert back to it in troubleshooting issues with the installer we may have. So completely uninstalled 13.x and reinstalled git 0.13.x on Yosemite 10.10.3 with python version 2.7.9 with no issues either in the installation in device registration to hub, or downloading of videos. |
@EdDixon @jamalex Either way it would be good to state this explicitly in the documentations as most Mac's would be running with an outdated version of python 2.7 and the installation & replacement process for new versions is not straight forward. |
Managed to fully update python following a tutorial. (http://wolfpaulus.com/jounal/mac/installing_python_osx/) Now Python 2.7.9 is running but I must have messed up something in the process as kalite does not respond in a meaningful way anymore. The resulting error here is clearly my wrongdoing. If - through whichever method - Python is updated successfully to 2.7.9 I'm confident everything would be functioning as expected. |
I'll update the docs to accurately indicate which version of Python is necessary. But the last error you reported @arnoan:
Is because the python interpreter encountered a character it didn't like in # -*- coding: utf-8 -*- |
@MCGallaspy It didn't have a problem parsing it before I just tried to upgrade my Python to the newest version so the error should disappear once I have Python properly up and running again. So far I could not yet figure out what's wrong - updates of Python are a real mess on MAC! - but that's just a matter of time. So you might want to add a line: "Caution: Updating Python on MAC is not straight forward. Attempt only if you are familiar with what you are doing." as it involves quite a bit of playing around with sudo rights. |
It's possible your editor is automatically inserting unicode characters. In fact, looking carefully I suspect the trailing quote is the culprit here! “ vs. " |
@MCGallaspy With Python 2.7.9 installed and the local_settings.py fixed the downloads are working as expected now. So this issue can be closed. Thanks for the support! |
Once you've been burned by encoding issues once, it sticks with you. ;) Closing. |
Branch: master (0.13.1)
Expected Behavior: Upon clicking the download button in the video management section the download should start
Current Behavior: Upon clicking the download button the download seems to start in the background (page is updated) but Python quits immediately with an error message and shuts down the ka-lite server
Steps to reproduce: Every time I try to download videos via the user interface a ka-lite server running on the Macbook Air 2011. Newest version of ka-lite and python are being used.
The text was updated successfully, but these errors were encountered: