ywangd / stash

StaSh - Shell for Pythonista
MIT License
1.92k stars 227 forks source link

Error launch_stash.py:28 in the latest Pythonista 3 (python3.10) - module ‘plistlib’ has no attribute ‘readPlist’ #484

Closed robco closed 1 year ago

robco commented 1 year ago

Pythonista 3 was upgraded to python 3.10 and now launch_stash.py does not run.

Error is:

Error launch_stash.py:28 - module ‘plistlib’ has no attribute ‘readPlist’

eddo888 commented 1 year ago

replace

_properties = plistlib.readPlist(os.path.join(os.path.dirname(sys.executable), 'Info.plist'))

with

_properties = plistlib.loads(open(os.path.join(os.path.dirname(sys.executable), 'Info.plist'),'rb').read())
robco commented 1 year ago

@eddo888 , it is already fixed in PR

cclauss commented 1 year ago

Fixed in #485 (merged)