uunicorn / python-validity

Validity fingerprint sensor prototype
MIT License
955 stars 79 forks source link

Running without systemd #190

Open ezntek opened 6 months ago

ezntek commented 6 months ago

i have seen #67, I followed the guide provided but I get this output when launching:

--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.11/logging/handlers.py", line 1005, in emit
    self.socket.send(msg)
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.11/logging/handlers.py", line 873, in _connect_unixsocket
    self.socket.connect(address)
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.11/logging/handlers.py", line 1008, in emit
    self._connect_unixsocket(self.address)
  File "/usr/lib/python3.11/logging/handlers.py", line 884, in _connect_unixsocket
    self.socket.connect(address)
FileNotFoundError: [Errno 2] No such file or directory
Call stack:
  File "/opt/python-validity/dbus_service/dbus-service", line 305, in <module>
    main()
  File "/opt/python-validity/dbus_service/dbus-service", line 262, in main
    init.open()
  File "/opt/python-validity/validitysensor/init.py", line 50, in open
    open_common()
  File "/opt/python-validity/validitysensor/init.py", line 31, in open_common
    init_flash()
  File "/opt/python-validity/validitysensor/init_flash.py", line 125, in init_flash
    logging.info('Flash has %d partitions.' % len(info.partitions))
Message: 'Flash has 5 partitions.'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.11/logging/handlers.py", line 1005, in emit
    self.socket.send(msg)
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.11/logging/handlers.py", line 873, in _connect_unixsocket
    self.socket.connect(address)
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.11/logging/handlers.py", line 1008, in emit
    self._connect_unixsocket(self.address)
  File "/usr/lib/python3.11/logging/handlers.py", line 884, in _connect_unixsocket
    self.socket.connect(address)
FileNotFoundError: [Errno 2] No such file or directory
Call stack:
  File "/opt/python-validity/dbus_service/dbus-service", line 305, in <module>
    main()
  File "/opt/python-validity/dbus_service/dbus-service", line 262, in main
    init.open()
  File "/opt/python-validity/validitysensor/init.py", line 50, in open
    open_common()
  File "/opt/python-validity/validitysensor/init.py", line 35, in open_common
    upload_fwext()
  File "/opt/python-validity/validitysensor/upload_fwext.py", line 27, in upload_fwext
    logging.info('Detected firmware version %d.%d (%s))' %
Message: 'Detected firmware version 1.2 (Mon Jan 27 14:32:09 2020))'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.11/logging/handlers.py", line 1005, in emit
    self.socket.send(msg)
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.11/logging/handlers.py", line 873, in _connect_unixsocket
    self.socket.connect(address)
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.11/logging/handlers.py", line 1008, in emit
    self._connect_unixsocket(self.address)
  File "/usr/lib/python3.11/logging/handlers.py", line 884, in _connect_unixsocket
    self.socket.connect(address)
FileNotFoundError: [Errno 2] No such file or directory
Call stack:
  File "/opt/python-validity/dbus_service/dbus-service", line 305, in <module>
    main()
  File "/opt/python-validity/dbus_service/dbus-service", line 262, in main
    init.open()
  File "/opt/python-validity/validitysensor/init.py", line 50, in open
    open_common()
  File "/opt/python-validity/validitysensor/init.py", line 36, in open_common
    sensor.open()
  File "/opt/python-validity/validitysensor/sensor.py", line 228, in open
    logging.info('Opening sensor: %s' % self.device_info.name)
Message: 'Opening sensor: 57K0 FM-3367-001   '
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib/python3.11/logging/handlers.py", line 1005, in emit
    self.socket.send(msg)
OSError: [Errno 9] Bad file descriptor

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.11/logging/handlers.py", line 873, in _connect_unixsocket
    self.socket.connect(address)
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.11/logging/handlers.py", line 1008, in emit
    self._connect_unixsocket(self.address)
  File "/usr/lib/python3.11/logging/handlers.py", line 884, in _connect_unixsocket
    self.socket.connect(address)
FileNotFoundError: [Errno 2] No such file or directory
Call stack:
  File "/opt/python-validity/dbus_service/dbus-service", line 305, in <module>
    main()
  File "/opt/python-validity/dbus_service/dbus-service", line 262, in main
    init.open()
  File "/opt/python-validity/validitysensor/init.py", line 50, in open
    open_common()
  File "/opt/python-validity/validitysensor/init.py", line 36, in open_common
    sensor.open()
  File "/opt/python-validity/validitysensor/sensor.py", line 263, in open
    self.calibrate()
  File "/opt/python-validity/validitysensor/sensor.py", line 660, in calibrate
    logging.info('Calibration data loaded from a file.')
Message: 'Calibration data loaded from a file.'
Arguments: ()

and when i use fprintd-enroll, i get

Using device /net/reactivated/Fprint/Device/0
Enrolling right-index-finger finger.
EnrollStart failed: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.11" (uid=0 pid=608 comm="/usr/bin/python3 /usr/lib/open-fprintd/open-fprint") interface="io.github.uunicorn.Fprint.Device" member="EnrollStart" error name="(unset)" requested_reply="0" destination=":1.8" (uid=0 pid=405 comm="python3 /opt/python-validity/dbus_service/dbus-ser")

I am using a ThinkPad T480 on Artix Linux with dinit.