Question about an error-massage

95 views
Skip to first unread message

MusiMaster

unread,
Nov 25, 2021, 4:20:02 PM11/25/21
to mh_z19 users
Hi all,

i was trying to measure the co2-ppm with the help of your guide.
i did:
- pip install mh-z19

and then:
-sudo python
>>> import mh_z19
>>> mh_z19.read()

after that nothing happens until i press CRTL+C end get this error-massage:

>>>mh_z19.read()
^CTraceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/mh_z19/__init__.py", line 69, in mh_z19
    result=ser.write(b"\xff\x01\x86\x00\x00\x00\x00\x00\x79")
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 622, in write
    abort, ready, _ = select.select([self.pipe_abort_write_r], [self.fd], [], None)
KeyboardInterrupt
{}
>>>

my python-version is:
Python 3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110] on linux

can you help me?

kind regrards,
Jeron

P.S.: pleas excuse my bad english..

Almduedli

unread,
Jan 23, 2024, 6:15:35 AM1/23/24
to mh_z19 users
Hey, have you found the solution to your problem? I have a very similar problem and can't come up with a solution.
Reply all
Reply to author
Forward
0 new messages