uga-libraries / ASpace_Batch_Export-Cleanup-Upload

A program to batch export and clean ArchivesSpace resources, and upload resources to XTF-built finding aid websites.
Creative Commons Attribution Share Alike 4.0 International
7 stars 3 forks source link

Decode Error on Startup for 1.7.1 #53

Closed crugas closed 4 months ago

crugas commented 4 months ago

Issue: Encoding error with cx_Freeze when starting latest release, 1.7.1. After downloading the latest release and installing, attempting to run the program results in the following error: "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa6 in postion 12: invalid start byte." This should be the ¦ 0xc2 0xa6 BROKEN BAR character, which is not in any part of my code, but is a part of some language codecs. It may have something to do with the inclusion of the PySimpleGUI license as listed on the first line of as_XTF_GUI.py.

Time: 06/21/2024

Resolution: Try setting the encoding of the PSG license string to UTF-8 using .encode() and generate a new .exe.

Issue tracker:

crugas commented 4 months ago

The attempted fix from https://github.com/uga-libraries/ASpace_Batch_Export-Cleanup-Upload/commit/16f7e70b7dd7d1b6cf0eb2d15777a4ccc87e729e did not solve the issue, but the error changed to read: "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa6 in position 9: invalid continuation byte" image