Caught exception:
Traceback (most recent call last):
File “aqt.main”, line 1732, in onAppMsg
File “aqt.main”, line 1300, in installAddon
File “aqt.addons”, line 1678, in installAddonPackages
File “aqt.addons”, line 494, in processPackages
File “aqt.addons”, line 430, in install
File “aqt.addons”, line 473, in _install
File “zipfile”, line 1625, in extract
File “zipfile”, line 1696, in _extract_member
PermissionError: [Errno 13] Permission denied: ‘/Users/calebsmith/Library/Application Support/Anki2/addons21/1322529746/user_files/README.md’
@AnKingMed there have been quite a few reports of this issue when updating your add-on - any idea what could have caused it? At first I thought you’d accidentally packaged a read-only file in the .zip, but it looks like Python’s zipfile doesn’t preserve permissions when extracting if I’ve understood the code correctly.
@dae just as an FYI, I’m in residency now so I’m a bit less connected with the day to day stuff. @andrewsanchez is probably the best person to ping for AnkiHub issues in the future.
In a previous version of the add-on we’ve had the add-on change permission of files in an attempt to fix permission errors occurring during add-on updates on Windows. The permission errors were caused by Anki not being able to move files which were opened for writing (log files). The code for changing permissions had a bug… and it caused permission errors like the one above. This was some time ago, but some users still have the old add-on version.