Skip to content

Error when opening a Gbx file #16

@cinephos

Description

@cinephos

I have managed (*) to correctly install pygbx on Ubuntu 22.04LTS and use libraries with spyder python. Dependency and dependency's dependencies were also installed (*) correctly.
(*) python-lzo by pip and its dependencies by apt

command g=Gbx('file.gbx') where file.gbx is a autosaved replay TM2020 file, produces this console output:

ERROR:root:unpack requires a buffer of 4 bytes
ERROR:root:unpack requires a buffer of 4 bytes
ERROR:root:unpack requires a buffer of 4 bytes
ERROR:root:unpack requires a buffer of 4 bytes
(above errors caused by line 105 in gbx.py)
ERROR:root:unpack requires a buffer of 4294967295 bytes
ERROR:root:Failed to parse map data: 'int' object has no attribute 'decode'
ERROR:root:unpack requires a buffer of 4 bytes
ERROR:root:unpack requires a buffer of 4 bytes
ERROR:root:unpack requires a buffer of 4 bytes
(above errors caused by line 136 in gbx.py)

However, continuing with commands:
replay = g.get_class_by_id(GbxType.REPLAY_RECORD)
print(replay.nickname)
then, the result is the expected one.

Any idea where these errors come from? How can I eliminate them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions