ModuleNotFoundError: No module named 'main'
lianghuihaoking opened this issue · 8 comments
According to the documentation, when executing the command "cs-dlp --cauth-auto chrome ........," the following error is reported:
Traceback (most recent call last):
File "E:\Soft\anaconda3\envs\Coursera\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "E:\Soft\anaconda3\envs\Coursera\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\HouseLiang\AppData\Roaming\Python\Python39\Scripts\cs-dlp.exe\__main__.py", line 4, in
ModuleNotFoundError: No module named 'main'
Please post the output of git rev-parse HEAD
try to reinstall it.
I think you installed from an old version
@raffaem
I uninstalled it first and then reinstalled it, but it still shows this error.
Traceback (most recent call last):
File "E:\Soft\anaconda3\envs\Coursera\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "E:\Soft\anaconda3\envs\Coursera\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\HouseLiang\AppData\Roaming\Python\Python39\Scripts\cs-dlp.exe\__main__.py", line 4, in
ModuleNotFoundError: No module named 'main'
According to the documentation, when executing the command "cs-dlp --cauth-auto chrome ........," the following error is reported:
Traceback (most recent call last): File "E:\Soft\anaconda3\envs\Coursera\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "E:\Soft\anaconda3\envs\Coursera\lib\runpy.py", line 87, in run_code exec(code, run_globals) File "C:\Users\HouseLiang\AppData\Roaming\Python\Python39\Scripts\cs-dlp.exe_main.py", line 4, in ModuleNotFoundError: No module named 'main'
i have the problem also
please fix it
Hi, I also have the same issue and the git rev-parse HEAD ("4f40c9a
").
ok try again with the new commits
Make sure to uninstall the old versions first
python -m pip uninstall --yes cs-dlp
It is working now. Thanks a lot.