xbmcbackup
xbmcbackup copied to clipboard
Dropbox - TypeError: 'NoneType' object is not callable
Can't start backup while Dropbox as a remote location is enabled, because an exception is thrown:
2024-10-08 15:54:49.502 T:5753 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: 'NoneType' object is not callable
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/default.py", line 102, in <module>
backup = XbmcBackup()
^^^^^^^^^^^^
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/backup.py", line 55, in __init__
self.configureRemote()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/backup.py", line 65, in configureRemote
self.remote_vfs = DropboxFileSystem("/")
^^^^^^^^^^^^^^^^^^^^^^
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/vfs.py", line 144, in __init__
if(authorizer.isAuthorized()):
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/authorizers.py", line 62, in isAuthorized
user_token = self._getToken()
^^^^^^^^^^^^^^^^
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/authorizers.py", line 148, in _getToken
result['expiration'] = datetime.strptime(result['expiration'], "%Y-%m-%d %H:%M:%S.%f")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not callable
-->End of Python script error report<--
Usually one of two things is happening with this type of error.
- You haven't authorized the Dropbox service, so no token file exists. Take a look at the instructions if you think this is the issue.
- The file is missing or corrupt for some other reason. Try deleting the tokens.json file and re-authorizing.
Hi.
I have the exact same issue. I created a dropbox app. Used api key in XbmcBackup, authorized (a message confirmed it was authorized). Then I try to backup and I have the same error. I then removed tokens.json, set the api key/secret and re-authorized but it didn't work better.