Closed nilsreichardt closed 1 year ago
It seems so that this issue is related to macOS. When running the script with Linux (in lxhalle), I'm getting different error:
user@lxhalle:~/Desktop/tum_video_scraper$ python src/main.py -c config.yaml
Starting new run!
Scanning TUM-live:
Found 19 videos for "EidI"
--------------------
Starting downloads:
Download of 000_Lecture__October_19._2022.mp4 started
Download of 000_Lecture__October_19._2022.mp4 completed after 16s
Conversion of 000_Lecture__October_19._2022.mp4 started
Process Process-1:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/u/halle/reni/home_at/Desktop/tum_video_scraper/src/downloader.py", line 53, in download_and_cut_video
auto_editor = subprocess.run([
File "/usr/lib/python3.10/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.10/subprocess.py", line 969, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'auto-editor'
However, auto-editor
should be installed (I used pip install -r requirements.txt
before running the script)
However,
auto-editor
should be installed (I usedpip install -r requirements.txt
before running the script)
Are you able to call it from shell?
Please give me a which auto-editor
and an auto-editor --version
.
Are you running with an attached debugger on mac?
Are you able to call it from shell?
No. It cannot find the command.
However, installing auto-editor
globally (python -m pip install auto-editor
) has worked - now everything is working on Linux ✅
Are you running with an attached debugger on mac?
No, I'm just running it via the terminal with this command python3 src/main.py -c config.yaml
I can't reproduce the error you get on macOS. Try upgrading your Python version to 3.10 and see if the error persists.
I couldn't fix it with Python 3.10 :( When I have more information, I will provide them 👍
Any update on this @nilsreichardt ?
I fixed it by adding
import multiprocessing
multiprocessing.set_start_method('fork')
to main.py
I fixed it by adding
import multiprocessing multiprocessing.set_start_method('fork')
to
main.py
This works for me too 👍
When I try to download the lectures of EidI, I'm getting the following errors:
The number of
FileNotFoundError: [Errno 2] No such file or directory
errors is 19, the same number of available lectures.This is my
output
folder after running the tool:My
config.yaml
: