-
Notifications
You must be signed in to change notification settings - Fork 40
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
Unable to start livestream_saver on Ubuntu #57
Comments
I suspect that you have a |
I moved everything into a new directory called livestream. To no avail. ls livestream/ ~/livestream$ python3.8 livestream_saver.py monitor --help Doing the requirements part I noticed that this error happened: Traceback (most recent call last):
Command "/usr/bin/python3.8 -u -c "import setuptools, tokenize;file='/tmp/pi p-build-9vmxvr2s/Pillow/setup.py';f=getattr(tokenize, 'open', open)(file);co de=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec') )" install --record /tmp/pip-d3g7d0hv-record/install-record.txt --single-version -externally-managed --compile --user --prefix=" failed with error code 1 in /tmp /pip-build-9vmxvr2s/Pillow/ Any ideas? |
There is something wrong with your setup. You might want to look into setting up a virtual environment as is described in the Readme, then install dependencies in that virtual environment with pip. Can you confirm you have the exact same directory structure as in this here repository? |
I did a clean install of Raspberry Pi OS on a new SDCard. The only thing I installed was python-pip. Nothing else. hbs@raspberrypi:~/livestream $ python3.9 -m pip install -r requirements.txt Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple When I tried to run, the same thing happened. hbs@raspberrypi:~/livestream $ python3.9 livestream_saver.py download --cookie cookie.txt https://www.youtube.com/watch?v=86YLFOog4GM This is what is inside my home user: |
I managed to reproduce this by not having a livestream_saver directory alongside livestream_saver.py. You need to have the same directory structure as is in the repository and I suspect you are missing files for some reason. How have you cloned the repository?
|
I was able to fix it. It started downloading a live stream but at a certain point, it stopped with an error. This was on a Ubuntu machine. The first one i mentioned above. python3.8 livestream_saver.py download --log-level CRITICAL --cookie ~hbs/cookie.txt https://www.youtube.com/watch?v=V9rlTQCg0Ow 2022-11-18 01:11:16,648 - CRITICAL - download.V9rlTQCg0Ow - Some kind of error occured during download? Stream format mismatch after update of base URL. What it is missing? |
The path to your cookie.txt file is wrong, it should be The error you got is a known issue. |
For the last week up to today, I've been using this option trying to salvage my live streams on YouTube to no avail All of them ended with an error right in the middle saying that a mismatch occurred. Nothing could be saved. I tried to concatenate another live stream that I captured that I did only for testing purposes which also ended in a mismatch. I ended up canceling the action because even on my remote server it took more than a day to end. I must apologize because I don't have any logs to show as of now. I deleted the whole thing to start over. But tomorrow and on I will be able to provide some. I've left livestream_stream saver monitoring a YouTube channel. The same one and the only one that I am trying to capture since the very beginning. I've used this; python3 livestream_saver.py monitor --ignore-quality-change -d --scan-delay 30 URL I did a git pull and everything seems to be up-to-date. |
Yeah, I had that error come up randomly but it seems to occur more with certain streamers than others. Not sure why exactly but I'll try to handle it better in future versions. Another thing you might want to do is automatically start a side-car application to record your live streams, like yt-dlp for example. You can use the hooks described in "hooks on event" section in the Readme. |
I'm getting this error (below) when i try to initialize it.
I followed the install instructions.
python3.8 livestream_saver.py monitor --help
Traceback (most recent call last):
File "livestream_saver.py", line 12, in
from livestream_saver import extract, util
File "/home/hobbes/livestream_saver.py", line 12, in
from livestream_saver import extract, util
ImportError: cannot import name 'extract' from partially initialized module 'livestream_saver' (most likely due to a circular import) (/home//hobbes/livestream_saver.py)
What I did do wrong?
Please, let me know
The text was updated successfully, but these errors were encountered: