Nixellion / MikrotikTrafficMonitor

A small server that keeps track of traffic usage per IP for RouterOS
MIT License
27 stars 6 forks source link

ModuleNotFoundError: No module named 'eventlet' #4

Closed xsname closed 3 years ago

xsname commented 3 years ago

I am trying to install your script on raspbian os but I am getting following error while starting the service.

? MikrotikTrafficMonitor.service - MikrotikTrafficMonitor Loaded: loaded (/lib/systemd/system/MikrotikTrafficMonitor.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sat 2021-01-30 17:03:05 PKT; 11s ago Process: 9535 ExecStart=/usr/bin/python3 /opt/MikrotikTrafficMonitor/app.py (code=exited, status=1/FAILURE) Main PID: 9535 (code=exited, status=1/FAILURE)

Jan 30 17:03:05 RaspberryPi systemd[1]: Started MikrotikTrafficMonitor. Jan 30 17:03:05 RaspberryPi python3[9535]: Traceback (most recent call last): Jan 30 17:03:05 RaspberryPi python3[9535]: File "/opt/MikrotikTrafficMonitor/app.py", line 5, in Jan 30 17:03:05 RaspberryPi python3[9535]: import eventlet Jan 30 17:03:05 RaspberryPi python3[9535]: ModuleNotFoundError: No module named 'eventlet' Jan 30 17:03:05 RaspberryPi systemd[1]: MikrotikTrafficMonitor.service: Main process exited, code=exited, status=1/FAILU Jan 30 17:03:05 RaspberryPi systemd[1]: MikrotikTrafficMonitor.service: Failed with result 'exit-code'.

Here is output for eventlet module

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: eventlet in /home/pi/.local/lib/python3.7/site-packages (0.30.0) Requirement already satisfied: six>=1.10.0 in /usr/lib/python3/dist-packages (from eventlet) (1.12.0) Requirement already satisfied: dnspython<2.0.0,>=1.15.0 in /home/pi/.local/lib/python3.7/site-packages (from eventlet) (1.16.0) Requirement already satisfied: greenlet>=0.3 in /home/pi/.local/lib/python3.7/site-packages (from eventlet) (1.0.0)

xsname commented 3 years ago

never mind. I mistakenly installed requirements.txt as normal user. Now installed them using root user and everything is fine