[Release] Backup (formally XBMC Backup)

  Thread Rating:
  • 5 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
robweber Offline
Posting Freak
Posts: 977
Joined: Sep 2009
Reputation: 29
Post: #871
If you look a little farther down though it says "request token not properly authorized by user". Something is not lining up between you and the Dropbox site. Make sure you authorize the app before you hit OK in the dialog.
find quote
Oath Offline
Member
Posts: 79
Joined: Dec 2014
Reputation: 0
Post: #872
(2015-02-14 16:49)robweber Wrote:  If you look a little farther down though it says "request token not properly authorized by user". Something is not lining up between you and the Dropbox site. Make sure you authorize the app before you hit OK in the dialog.

Hi thank you for your development of this script. would love to get it working but I keep getting scrip failed when i launch it to backup. here is the error log.

Code:
08:41:48 T:18446744073617772808  NOTICE: Thread LanguageInvoker start, auto delete: false
08:41:48 T:18446744073617772808  NOTICE: -->Python Interpreter Initialized<--
08:41:50 T:18446744073617772808  NOTICE: script.xbmcbackup-1.0.3: Starting
08:41:50 T:18446744073617772808  NOTICE: script.xbmcbackup-1.0.3: Local Dir: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/
08:41:50 T:18446744073617772808  NOTICE: script.xbmcbackup-1.0.3: Remote Dir: 201502160841/
08:41:50 T:18446744073617772808  NOTICE: script.xbmcbackup-1.0.3: Mode - Backup
08:41:50 T:18446744073617772808   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: writestr() got an unexpected keyword argument 'compress_type'
                                            Traceback (most recent call last):
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/xbmcbackup-master/default.py", line 69, in <module>
                                                backup.run(mode)
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/xbmcbackup-master/resources/lib/backup.py", line 157, in run
                                                writeCheck = self._createValidationFile()
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/xbmcbackup-master/resources/lib/backup.py", line 521, in _createValidationFile
                                                success = self.remote_vfs.put(xbmc.translatePath(utils.data_dir() + "xbmcbackup.val"),self.remote_vfs.root_path + "xbmcbackup.val")
                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/xbmcbackup-master/resources/lib/vfs.py", line 100, in put
                                                self.zip.writestr(utils.encode(dest),aFile.read(),compress_type=zipfile.ZIP​_DEFLATED)
                                            TypeError: writestr() got an unexpected keyword argument 'compress_type'
                                            -->End of Python script error report<--

Thanks!
find quote
robweber Offline
Posting Freak
Posts: 977
Joined: Sep 2009
Reputation: 29
Post: #873
I would uncheck the "compress backups" option. I see you are running on an Android platform. It appears whatever version of Python that is on that box does not like the "compress_type" option being set on the zip archive. I did some searching an it appears that the 2.6 version of Python did not include this as a valid argument while the 2.7.9 version does. Kodi has 2.6 or higher "depending on platform" so Android must be at the tail end of this. Every platform I've tested up until now has always had this flag available. Disabling compression will work until I can find a work around.
find quote
Oath Offline
Member
Posts: 79
Joined: Dec 2014
Reputation: 0
Post: #874
(2015-02-17 16:01)robweber Wrote:  I would uncheck the "compress backups" option. I see you are running on an Android platform. It appears whatever version of Python that is on that box does not like the "compress_type" option being set on the zip archive. I did some searching an it appears that the 2.6 version of Python did not include this as a valid argument while the 2.7.9 version does. Kodi has 2.6 or higher "depending on platform" so Android must be at the tail end of this. Every platform I've tested up until now has always had this flag available. Disabling compression will work until I can find a work around.

Thank you very much for the reply :] That seems to have done the trick!
find quote
Post Reply