corpnewt / ProperTree

Cross platform GUI plist editor written in python.
BSD 3-Clause "New" or "Revised" License
2.65k stars 435 forks source link

Can't save my files #28

Open 3xpl0it2c opened 4 years ago

3xpl0it2c commented 4 years ago

Hi,

I am using Arch linux, I have python 3.8.2 with tk 8.6.10-1. It seems to me like some part of the script can't "compile" to binary some fields. Whenever I try to save my files I get this output:

TypeError: expected bytes, str found TypeError: expected bytes, str found Exception ignored in: 'plist.create_dict_plist' Traceback (most recent call last): File "/path/to/ProperTree/Scripts/plistwindow.py", line 1407, in save_plist_as plist_text = plist.dumps(plist_data,sort_keys=self.controller.settings.get("sort_dict",False)) TypeError: expected bytes, str found

TBH it would have greatly useful if there was a mechanism to tell which line is causing the issue.

Thanks anyway.

corpnewt commented 4 years ago

This issue has been posted before here and also here and it seems that it's due to the libplist library in Arch based distros. The workarounds include removing libplist - or using python 2 instead of 3.

-CorpNewt