Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#78305 - [python-pynitrokey] 0.4.35-1 Possibly missing dependency python-protobuf
Attached to Project:
Community Packages
Opened by Hendrik Wolff (w0lff) - Tuesday, 25 April 2023, 18:44 GMT
Last edited by David Runge (dvzrv) - Thursday, 27 April 2023, 11:08 GMT
Opened by Hendrik Wolff (w0lff) - Tuesday, 25 April 2023, 18:44 GMT
Last edited by David Runge (dvzrv) - Thursday, 27 April 2023, 11:08 GMT
|
DetailsDescription:
The `nitropy` command from `python-pynitrokey` version 0.4.35-1 does not work properly without the `python-protobuf` package. When `python-protobuf` (version 21.12-1) is installed nitropy works correctly. Verified by running `nitropy list` without an error. Without `python-protobuf` installed, running `nitropy list` returns the following error: ``` Critical error: An unhandled exception occurred Exception encountered: ModuleNotFoundError("No module named 'google'") ``` Potential fix?: Add `python-protobuf` to dependencies of `python-pynitrokey` The written log contains this traceback: ``` Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/pynitrokey/cli/__init__.py", line 129, in main nitropy() File "/usr/lib/python3.10/site-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3.10/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/usr/lib/python3.10/site-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3.10/site-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/usr/lib/python3.10/site-packages/pynitrokey/cli/__init__.py", line 113, in list _list() File "/usr/lib/python3.10/site-packages/pynitrokey/cli/__init__.py", line 106, in _list nk3.commands["list"].callback() File "/usr/lib/python3.10/site-packages/pynitrokey/cli/nk3/__init__.py", line 138, in list for device in list_nk3(): File "/usr/lib/python3.10/site-packages/pynitrokey/nk3/__init__.py", line 24, in list devices.extend(bootloader.list()) File "/usr/lib/python3.10/site-packages/pynitrokey/nk3/bootloader/__init__.py", line 115, in list from .nrf52 import Nitrokey3BootloaderNrf52 File "/usr/lib/python3.10/site-packages/pynitrokey/nk3/bootloader/nrf52.py", line 27, in <module> from .nrf52_upload.dfu.init_packet_pb import InitPacketPB File "/usr/lib/python3.10/site-packages/pynitrokey/nk3/bootloader/nrf52_upload/dfu/init_packet_pb.py", line 39, in <module> from . import dfu_cc_pb2 as pb File "/usr/lib/python3.10/site-packages/pynitrokey/nk3/bootloader/nrf52_upload/dfu/dfu_cc_pb2.py", line 7, in <module> from google.protobuf import descriptor as _descriptor ModuleNotFoundError: No module named 'google' 664 DEBUG root print: Critical error: 664 DEBUG root print: An unhandled exception occurred 664 ERROR root No module named 'google' ``` Steps to reproduce error case: - `pacman -S python-pynitrokey` - have `python-protobuf` _not_ installed - run `nitropy list` Steps to reproduce correct behavior: - `pacman -S python-pynitrokey python-protobuf` - run `nitropy list` |
This task depends upon
Closed by David Runge (dvzrv)
Thursday, 27 April 2023, 11:08 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with python-pynitrokey 0.4.36-1
Thursday, 27 April 2023, 11:08 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with python-pynitrokey 0.4.36-1
Will be fixed in the upcoming update.