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 'Utils' #25

Open
kirkcc opened this issue Jul 11, 2018 · 3 comments
Open

ModuleNotFoundError: No module named 'Utils' #25

kirkcc opened this issue Jul 11, 2018 · 3 comments

Comments

@kirkcc
Copy link

kirkcc commented Jul 11, 2018

Why this happen ??

D:\rtmpSnoop-master>python rtmpSnoop.py
Traceback (most recent call last):
File "rtmpSnoop.py", line 28, in
from lib.rtmpParser import rtmpParser
File "D:\rtmpSnoop-master\lib\rtmpParser.py", line 24, in
import Utils
ModuleNotFoundError: No module named 'Utils'

D:\rtmpSnoop-master>python rtmpSnoop.py -h
Traceback (most recent call last):
File "rtmpSnoop.py", line 28, in
from lib.rtmpParser import rtmpParser
File "D:\rtmpSnoop-master\lib\rtmpParser.py", line 24, in
import Utils
ModuleNotFoundError: No module named 'Utils'

D:\rtmpSnoop-master>

@chijiao
Copy link

chijiao commented Aug 7, 2020

same error

@Amoswuuuu
Copy link

I also encountered the same error, you can solve it as follows.

Use from lib.Utils import * instead of import Utils in your project.

This error is caused by different python versions,this project was written by Python2 and everyone is using Python3.

@crackevil
Copy link

py3 isolate source file path from sys.path, add it before you "absolute import" local module

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

4 participants