andreafabrizi / rtmpSnoop

rtmpSnoop lets you to grab the RTMP properties from live or dumped video streams.
145 stars 39 forks source link

ModuleNotFoundError: No module named 'Utils' #25

Open kirkcc opened 6 years ago

kirkcc commented 6 years ago

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 commented 4 years ago

same error

Amoswuuuu commented 4 years ago

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 commented 4 days ago

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