blood-pressure-monitor icon indicating copy to clipboard operation
blood-pressure-monitor copied to clipboard

NoneType object is not subscriptable

Open Kryol62 opened this issue 1 year ago • 1 comments

On Ubuntu 22.04 I see for bpm_usb.py

Starting USB communication with Blood Pressure Monitor. Error: 'NoneType' object is not subscriptable

This happens on line 101: patient_id = self.get_patient_id(); How to resolve?

Kryol62 avatar Feb 21 '24 13:02 Kryol62

I cannot reproduce this one; setting and getting the patient id works for me.

Generally, for USB there are two things to consider:

  1. Install the hid module with pip3 install hid and also install one of the required libraries; it did not work for me with Ubuntu's apt install python3-hid.
  2. Get it to work first running as root. Once USB communication works for root add a rule under /etc/udev/rules.d/ to get it to work for non-root users.

Hope this helps.

joergmlpts avatar Feb 22 '24 15:02 joergmlpts