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

mynode_usb_driver_check.py fails with Python error #888

Closed
erebor opened this issue Feb 8, 2025 · 2 comments
Closed

mynode_usb_driver_check.py fails with Python error #888

erebor opened this issue Feb 8, 2025 · 2 comments

Comments

@erebor
Copy link

erebor commented Feb 8, 2025

Hi, all. Trying to get mynode (RaspPi 4) to come back up after it shutdown for reasons unknown a while back. Upgraded to the latest release tag:

admin@mynode:~ $ cat /usr/share/mynode/version
0.3.32

I think I have the right Python3 version:

admin@mynode:~ $ grep PYTHON_VERSION /usr/share/mynode/mynode_app_versions.sh
PYTHON_VERSION="3.8.9"
admin@mynode:~ $ python3 --version
Python 3.8.9

But /usr/bin/mynode_startup.sh can't finish because /usr/bin/mynode_usb_driver_check.py fails, like this:

admin@mynode:~ $ python3 /usr/bin/mynode_usb_driver_check.py
Traceback (most recent call last):
  File "/usr/bin/mynode_usb_driver_check.py", line 7, in <module>
    from systemd import journal
  File "/home/admin/.local/lib/python3.8/site-packages/systemd.py", line 3, in <module>
    from cysystemd import (
  File "/home/admin/.local/lib/python3.8/site-packages/cysystemd/async_reader.py", line 29, in <module>
    class AsyncJournalReader(Base):
  File "/home/admin/.local/lib/python3.8/site-packages/cysystemd/async_reader.py", line 147, in AsyncJournalReader
    async def on_append(self) -> AsyncIterator[JournalEntry]:
TypeError: 'ABCMeta' object is not subscriptable

I don't know where to go from here. Any suggestions?

@tehelsper
Copy link
Collaborator

Yes, there should be a fix in the next release. To temporarily resolve, try running this command:

pip3 install "cysystemd<2.0.0"

@erebor
Copy link
Author

erebor commented Feb 11, 2025

@tehelsper Worked great, thank you!

@erebor erebor closed this as completed Feb 11, 2025
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