ahlashkari / DoHLyzer

DoHlyzer is a DNS over HTTPS (DoH) traffic flow generator and analyzer for anomaly detection and characterization.
56 stars 31 forks source link

ModuleNotFoundError: No module named 'meter' #1

Closed Ala-Jeb closed 4 years ago

Ala-Jeb commented 4 years ago

When I ryn the meter/dohlyzer.py file I get the error "" File "./dohlyzer.py", line 8, in from meter.flow_session import generate_session_class ModuleNotFoundError: No module named 'meter' "" I tried to add the meter folder to the packages but I still get errors Any idea please

QianruZhou333 commented 4 years ago

you need to put the dir to the DoHlyzer-master to the PYTHONPATH in your system, let python know where your project is. If your sys is mac, do the following:

# vi ~/.bash_profile add export PYTHONPATH=$PYTHONPATH:[the dir to your DoHlyzer-master folder] to the file $ source ~/.bash_profile