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

Project file read fails in presence of DLTD labels #39

Open
bdnstn opened this issue Aug 28, 2022 · 0 comments
Open

Project file read fails in presence of DLTD labels #39

bdnstn opened this issue Aug 28, 2022 · 0 comments

Comments

@bdnstn
Copy link

bdnstn commented Aug 28, 2022

Project file reading fails with error: cbus.toolkit.cbz.CBZException: Expected 1 file in CBZ archive, got 11

Issue appears to be the presence of xxx-DLTD-index.txt and xxx-DLTD-PicNNNN.bmp files in the project zip. Deleting those files from the archive allowed to project import to succeed.

Error in log

Using C-Bus Toolkit project backup file /share/BURS1303.cbz Local time zone: Australia/Perth Current time: Sun, 28 Aug 2022 07:33:28 +0800 Running cmqttd with flags: --broker-address core-mosquitto --timesync 300 --serial /dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0 --broker-disable-tls --broker-auth /etc/cmqttd/auth --project-file /share/BURS1303.cbz Traceback (most recent call last): File "/usr/bin/cmqttd", line 33, in <module> sys.exit(load_entry_point('cbus==0.2', 'console_scripts', 'cmqttd')()) File "/usr/lib/python3.10/site-packages/cbus/daemon/cmqttd.py", line 492, in main run(_main()) File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "/usr/lib/python3.10/site-packages/cbus/daemon/cmqttd.py", line 449, in _main labels = (read_cbz_labels(option.project_file) File "/usr/lib/python3.10/site-packages/cbus/daemon/cmqttd.py", line 295, in read_cbz_labels cbz = CBZ(cbz_file) File "/usr/lib/python3.10/site-packages/cbus/toolkit/cbz.py", line 228, in __init__ raise CBZException( cbus.toolkit.cbz.CBZException: Expected 1 file in CBZ archive, got 11

Project backup contents

image

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

1 participant