pablo-s / passes

Manage your digital passes
GNU General Public License v3.0
66 stars 16 forks source link

Can't decode byte 0xfe in position 0 #5

Closed airon90 closed 2 years ago

airon90 commented 2 years ago

I opened a pkpass file and this traceback appeared in the console:

  File "/usr/share/passes/passes/main.py", line 127, in _on_file_chosen
    pkpass = PassFactory.create(pkpass_file)
  File "/usr/share/passes/passes/digital_pass_factory.py", line 41, in create
    digital_pass = this_class.create_pkpass(archive)
  File "/usr/share/passes/passes/digital_pass_factory.py", line 71, in create_pkpass
    translation_dict = thisClass.create_translation_dict(file_content)
  File "/usr/share/passes/passes/digital_pass_factory.py", line 108, in create_translation_dict
    content = translation_file_content.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfe in position 0: invalid start byte

I used both new and old pkpass file. I am using latest Arch Linux with latest git version of Passes from AUR.