Skip to content

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

Description

@ferazambuja

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions