Android - Skin Backup&Restore not Working
Closed this issue · 1 comments
The Skin Backup and Restore is not working, seens related with the zipfile.py?!
Log for Backup:
2020-04-15 10:19:07.512 T:6013 DEBUG: CPythonInvoker(7, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py): start processing 2020-04-15 10:19:07.591 T:6013 DEBUG: -->Python Interpreter Initialized<-- 2020-04-15 10:19:07.592 T:6013 DEBUG: CPythonInvoker(7, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py): the source file to load is "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py" 2020-04-15 10:19:07.593 T:6013 DEBUG: CPythonInvoker(7, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py): setting the Python path to /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup:/:/data/app/org.xbmc.kodi-HfvPEEEevgOT7AmH0AQaDw==/base.apk/assets/python2.7/lib/python27.zip:/data/app/org.xbmc.kodi-HfvPEEEevgOT7AmH0AQaDw==/base.apk/assets/python2.7/lib/python2.7:/data/app/org.xbmc.kodi-HfvPEEEevgOT7AmH0AQaDw==/base.apk/assets/python2.7/lib/python2.7/site-packages:/data/app/org.xbmc.kodi-HfvPEEEevgOT7AmH0AQaDw==/base.apk/assets/python2.7/lib/python2.7/plat-linux2:/data/app/org.xbmc.kodi-HfvPEEEevgOT7AmH0AQaDw==/base.apk/assets/python2.7/lib/python2.7/lib-tk:/data/app/org.xbmc.kodi-HfvPEEEevgOT7AmH0AQaDw==/base.apk/assets/python2.7/lib/python2.7/lib-old:/data/app/org.xbmc.kodi-HfvPEEEevgOT7AmH0AQaDw==/base.apk/assets/python2.7/lib/python2.7/lib-dynload 2020-04-15 10:19:07.593 T:6013 DEBUG: CPythonInvoker(7, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py): entering source directory /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup 2020-04-15 10:19:07.594 T:6013 DEBUG: CPythonInvoker(7, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py): instantiating addon using automatically obtained id of "script.skin.helper.skinbackup" dependent on version 2.13.0 of the xbmc.python api 2020-04-15 10:19:07.768 T:6013 DEBUG: Skin Helper Backup --> called with parameters: {'action': 'backup'} 2020-04-15 10:19:07.770 T:6013 DEBUG: CAddonSettings[script.skin.helper.skinbackup]: loading setting definitions 2020-04-15 10:19:07.770 T:6013 DEBUG: CAddonSettings[script.skin.helper.skinbackup]: trying to load setting definitions from old format... 2020-04-15 10:19:07.772 T:6013 DEBUG: CAddonSettings[script.skin.helper.skinbackup]: loading setting values 2020-04-15 10:19:10.536 T:6013 DEBUG: CSMBFile::Open - opened smb://192.168.17.204/data2/Movies/Workouts/InsanityWorkout/running.jpg, fd=10000 2020-04-15 10:19:10.591 T:6013 DEBUG: CSMBFile::Close closing fd 10000 2020-04-15 10:19:11.050 T:6013 DEBUG: Skin Helper Backup --> zipping guisettings.txt 2020-04-15 10:19:11.069 T:6013 DEBUG: Skin Helper Backup --> Traceback (most recent call last): File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py", line 30, in __init__ getattr(self, action)() File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py", line 52, in backup backuprestore.backup(filters, backup_file, silent_backup) File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/resources/lib/backuprestore.py", line 58, in backup zip_tofile(temp_path, zip_temp) File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/resources/lib/utils.py", line 134, in zip_tofile zip_file = add_tozip(src, zip_file, abs_src) File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/resources/lib/utils.py", line 123, in add_tozip zip_file.write(absname.encode("utf-8"), arcname.encode("utf-8")) File "/home/jenkins/workspace/Android-ARM-Leia/tools/depends/xbmc-depends/arm-linux-androideabi-21-release/lib/python2.7/zipfile.py", line 1202, in write IOError: [Errno 22] Invalid argument 2020-04-15 10:19:11.069 T:6013 ERROR: Skin Helper Backup --> ERROR in __main__ ! --> [Errno 22] Invalid argument 2020-04-15 10:19:11.070 T:6013 INFO: CPythonInvoker(7, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py): script successfully run 2020-04-15 10:19:11.071 T:6013 DEBUG: onExecutionDone(7, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py) 2020-04-15 10:19:11.088 T:6013 INFO: Python interpreter stopped 2020-04-15 10:19:11.088 T:6013 DEBUG: Thread LanguageInvoker 6013 terminating
Log for Restore:
2020-04-15 10:09:49.661 T:5973 DEBUG: CPythonInvoker(6, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py): start processing 2020-04-15 10:09:49.740 T:5973 DEBUG: -->Python Interpreter Initialized<-- 2020-04-15 10:09:49.740 T:5973 DEBUG: CPythonInvoker(6, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py): the source file to load is "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py" 2020-04-15 10:09:49.741 T:5973 DEBUG: CPythonInvoker(6, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py): setting the Python path to /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup:/:/data/app/org.xbmc.kodi-HfvPEEEevgOT7AmH0AQaDw==/base.apk/assets/python2.7/lib/python27.zip:/data/app/org.xbmc.kodi-HfvPEEEevgOT7AmH0AQaDw==/base.apk/assets/python2.7/lib/python2.7:/data/app/org.xbmc.kodi-HfvPEEEevgOT7AmH0AQaDw==/base.apk/assets/python2.7/lib/python2.7/site-packages:/data/app/org.xbmc.kodi-HfvPEEEevgOT7AmH0AQaDw==/base.apk/assets/python2.7/lib/python2.7/plat-linux2:/data/app/org.xbmc.kodi-HfvPEEEevgOT7AmH0AQaDw==/base.apk/assets/python2.7/lib/python2.7/lib-tk:/data/app/org.xbmc.kodi-HfvPEEEevgOT7AmH0AQaDw==/base.apk/assets/python2.7/lib/python2.7/lib-old:/data/app/org.xbmc.kodi-HfvPEEEevgOT7AmH0AQaDw==/base.apk/assets/python2.7/lib/python2.7/lib-dynload 2020-04-15 10:09:49.742 T:5973 DEBUG: CPythonInvoker(6, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py): entering source directory /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup 2020-04-15 10:09:49.742 T:5973 DEBUG: CPythonInvoker(6, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py): instantiating addon using automatically obtained id of "script.skin.helper.skinbackup" dependent on version 2.13.0 of the xbmc.python api 2020-04-15 10:09:49.912 T:5973 DEBUG: Skin Helper Backup --> called with parameters: {'action': 'backup'} 2020-04-15 10:09:49.914 T:5973 DEBUG: CAddonSettings[script.skin.helper.skinbackup]: loading setting definitions 2020-04-15 10:09:49.914 T:5973 DEBUG: CAddonSettings[script.skin.helper.skinbackup]: trying to load setting definitions from old format... 2020-04-15 10:09:49.915 T:5973 DEBUG: CAddonSettings[script.skin.helper.skinbackup]: loading setting values 2020-04-15 10:09:52.523 T:5973 DEBUG: CSMBFile::Open - opened smb://192.168.17.204/data2/Movies/Workouts/InsanityWorkout/running.jpg, fd=10000 2020-04-15 10:09:52.583 T:5973 DEBUG: CSMBFile::Close closing fd 10000 2020-04-15 10:09:53.044 T:5973 DEBUG: Skin Helper Backup --> zipping guisettings.txt 2020-04-15 10:09:53.058 T:5973 DEBUG: Skin Helper Backup --> Traceback (most recent call last): File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py", line 30, in __init__ getattr(self, action)() File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py", line 52, in backup backuprestore.backup(filters, backup_file, silent_backup) File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/resources/lib/backuprestore.py", line 58, in backup zip_tofile(temp_path, zip_temp) File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/resources/lib/utils.py", line 134, in zip_tofile zip_file = add_tozip(src, zip_file, abs_src) File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/resources/lib/utils.py", line 123, in add_tozip zip_file.write(absname.encode("utf-8"), arcname.encode("utf-8")) File "/home/jenkins/workspace/Android-ARM-Leia/tools/depends/xbmc-depends/arm-linux-androideabi-21-release/lib/python2.7/zipfile.py", line 1202, in write IOError: [Errno 22] Invalid argument 2020-04-15 10:09:53.059 T:5973 ERROR: Skin Helper Backup --> ERROR in __main__ ! --> [Errno 22] Invalid argument 2020-04-15 10:09:53.060 T:5973 INFO: CPythonInvoker(6, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py): script successfully run 2020-04-15 10:09:53.060 T:5973 DEBUG: onExecutionDone(6, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skin.helper.skinbackup/default.py)