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

ImportError: cannot import name 'journal' from 'systemd' #8

Open
ferazambuja opened this issue Nov 2, 2019 · 1 comment
Open

ImportError: cannot import name 'journal' from 'systemd' #8

ferazambuja opened this issue Nov 2, 2019 · 1 comment

Comments

@ferazambuja
Copy link

Followed the steps, however, can't get past this error.
Any ideas?

(bsec) pi@raspberrypizero:/opt/bsec $ sudo systemctl start bsec-conduit.service; journalctl -f -u bsec-conduit.service
Job for bsec-conduit.service failed because the control process exited with error code.
See "systemctl status bsec-conduit.service" and "journalctl -xe" for details.
-- Logs begin at Sat 2019-11-02 22:17:02 GMT. --
Nov 02 23:49:09 raspberrypizero systemd[1]: bsec-conduit.service: Succeeded.
Nov 02 23:49:09 raspberrypizero systemd[1]: Stopped BSEC-Conduit Daemon.
Nov 02 23:55:58 raspberrypizero systemd[1]: Starting BSEC-Conduit Daemon...
Nov 02 23:55:59 raspberrypizero python3[782]: Traceback (most recent call last):
Nov 02 23:55:59 raspberrypizero python3[782]: File "/opt/bsec/bsec-conduit", line 37, in
Nov 02 23:55:59 raspberrypizero python3[782]: from systemd import journal
Nov 02 23:55:59 raspberrypizero python3[782]: ImportError: cannot import name 'journal' from 'systemd' (/home/pi/.local/lib/python3.7/site-packages/systemd/init.py)
Nov 02 23:56:00 raspberrypizero systemd[1]: bsec-conduit.service: Main process exited, code=exited, status=1/FAILURE
Nov 02 23:56:00 raspberrypizero systemd[1]: bsec-conduit.service: Failed with result 'exit-code'.
Nov 02 23:56:00 raspberrypizero systemd[1]: Failed to start BSEC-Conduit Daemon.
Nov 02 23:56:05 raspberrypizero systemd[1]: bsec-conduit.service: Service RestartSec=5s expired, scheduling restart.
Nov 02 23:56:05 raspberrypizero systemd[1]: bsec-conduit.service: Scheduled restart job, restart counter is at 1.
Nov 02 23:56:05 raspberrypizero systemd[1]: Stopped BSEC-Conduit Daemon.

@badstraw360
Copy link

It has something to do with venv, try this sudo apt-get install python3.6-venv It worked for me and I was getting the same error.

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

2 participants