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

ModuleNotFoundError: No module named 'main' #18

Closed
lianghuihaoking opened this issue Nov 7, 2023 · 8 comments
Closed

ModuleNotFoundError: No module named 'main' #18

lianghuihaoking opened this issue Nov 7, 2023 · 8 comments

Comments

@lianghuihaoking
Copy link

lianghuihaoking commented Nov 7, 2023

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'

@raffaem
Copy link
Owner

raffaem commented Nov 7, 2023

Please post the output of git rev-parse HEAD

@lianghuihaoking
Copy link
Author

lianghuihaoking commented Nov 8, 2023

@raffaem hello, the result of "git rev-parse HEAD" is "4f40c9a"

@raffaem
Copy link
Owner

raffaem commented Nov 8, 2023

try to reinstall it.

I think you installed from an old version

@lianghuihaoking
Copy link
Author

lianghuihaoking commented Nov 9, 2023

@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'

@MuhDev
Copy link

MuhDev commented Nov 9, 2023

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

@amjad756
Copy link

amjad756 commented Nov 9, 2023

Hi, I also have the same issue and the git rev-parse HEAD ("4f40c9a").

@raffaem
Copy link
Owner

raffaem commented Nov 10, 2023

ok try again with the new commits

Make sure to uninstall the old versions first

python -m pip uninstall --yes cs-dlp

@amjad756
Copy link

It is working now. Thanks a lot.

@raffaem raffaem closed this as completed Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@lianghuihaoking @raffaem @MuhDev @amjad756 and others