Hello,
I'm running the most up to date kodi on an amazon tv stick.
The problem I have is backing up to gdrive. I have followed the instructions precisely and it appears to be generating the zip file for backup transfer when it suddenly crashes kodi.
Log file details below (user specific details redacted from the copy and paste)
I only got as far as noticing the call to 'none type' but I'm not sure how to proceed with that or if that's the right place to start.
13:09:12 T:1663920824 NOTICE: Thread TCPServer start, auto delete: false
13:09:12 T:1656046728 NOTICE: -->Python Interpreter Initialized<--
13:09:12 T:1659040480 NOTICE: Previous line repeats 2 times.
13:09:12 T:1659040480 NOTICE: Thread JobWorker start, auto delete: true
13:09:12 T:1681990088 NOTICE: Thread LanguageInvoker start, auto delete: false
13:09:13 T:1651304200 NOTICE: -->Python Interpreter Initialized<--
13:09:13 T:1651303128 NOTICE: Previous line repeats 1 times.
13:09:13 T:1651303128 NOTICE: script.grab.fanart: Grab Fanart Service Started
13:09:15 T:1658838120 NOTICE: StorageServer Module loaded RUN
13:09:15 T:1658838120 NOTICE: StorageClient-2.5.4 Starting server
13:09:18 T:1661864744 NOTICE: -->Python Interpreter Initialized<--
13:09:19 T:1713042312 NOTICE: Previous line repeats 1 times.
13:09:19 T:1713042312 NOTICE: Thread BackgroundLoader start, auto delete: false
13:09:19 T:1711891248 NOTICE: Thread JobWorker start, auto delete: true
13:09:23 T:1712952720 NOTICE: Thread LanguageInvoker start, auto delete: false
13:09:23 T:1712952720 NOTICE: -->Python Interpreter Initialized<--
13:09:29 T:1712952720 ERROR: WARNING:root:[Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.googleapi/lib/apiclient/discovery_cache/init.py", line 38, in autodetect
from . import file_cache
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.googleapi/lib/apiclient/discovery_cache/file_cache.py", line 132, in
cache = Cache(max_age=DISCOVERY_DOC_MAX_AGE)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.googleapi/lib/apiclient/discovery_cache/file_cache.py", line 78, in init
self._file = os.path.join(tempfile.gettempdir(), FILENAME)
File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-17/lib/python2.6/tempfile.py", line 254, in gettempdir
File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-17/lib/python2.6/tempfile.py", line 201, in _get_default_tempdir
IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
13:09:29 T:1712952720 NOTICE: .
13:09:31 T:1712952720 NOTICE: GoogleDriveFile({u'mimeType': u'application/vnd.google-apps.folder', u'version': u'78097', u'appDataContents': False, u'labels': {u'restricted': False, u'starred': False, u'viewed': True, u'hidden': False, u'trashed': False}, u'explicitlyTrashed': False, u'etag': u'"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"', u'lastModifyingUserName': u'XXXXXXXX', u'writersCanShare': True, u'owners': [{u'emailAddress': u'XXXXXXXXXXXXXXXX', u'kind': u'drive#user', u'isAuthenticatedUser': True, u'displayName': u'XXXXXXXXXXXX', u'permissionId': u'XXXXXXXXXXXXXXXX'}], u'id': u'XXXXXXXXXXXXXXXX', u'lastModifyingUser': {u'emailAddress': u'XXXXXXXXXXXXXXXXXXXXXXXX', u'kind': u'drive#user', u'isAuthenticatedUser': True, u'displayName': u'Stephen Carey', u'permissionId': u'XXXXXXXXXXXXXXXXXXXXX'}, u'copyable': False, u'ownerNames': [u'Stephen Carey'], u'lastViewedByMeDate': u'2015-12-24T13:08:25.760Z', u'parents': [{u'isRoot': True, u'kind': u'drive#parentReference', u'id': u'XXXXXXXXXXXXXXXXX', u'selfLink': u'https://XXXXXXXXXXXXXXXXXXXXX', u'parentLink': u'https://www.XXXXXXXXXXXXXXXX'}], u'shared': False, u'editable': True, u'markedViewedByMeDate': u'1970-01-01T00:00:00.000Z', u'modifiedDate': u'2015-12-24T12:54:39.499Z', u'createdDate': u'2015-12-24T12:54:39.499Z', u'iconLink': u'https://ssl.gstatic.com/docs/doclist/images/icon_11_collection_list_1.png', u'kind': u'drive#file', u'alternateLink': u'https://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', u'title': u'Kodi Backup', u'modifiedByMeDate': u'2015-12-24T12:54:39.499Z', u'userPermission': {u'kind': u'drive#permission', u'etag': u'"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"', u'role': u'owner', u'type': u'user', u'id': u'me', u'selfLink': u'https://www.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'}, u'spaces': [u'drive'], u'quotaBytesUsed': u'0', u'selfLink': u'https://www.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'})
13:09:31 T:1712952720 NOTICE: script.xbmcbackup-1.0.6: Starting
13:10:54 T:1718633720 NOTICE: Thread LanguageInvoker start, auto delete: false
13:10:54 T:1718633720 NOTICE: -->Python Interpreter Initialized<--
13:10:59 T:1718633720 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: attribute of type 'NoneType' 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 37, in
backup = XbmcBackup()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/backup.py", line 46, in init
self.configureRemote()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/backup.py", line 62, in configureRemote
self.remote_vfs = GoogleDriveFilesystem('/Kodi Backup/')
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/vfs.py", line 292, in init
self.setup()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/vfs.py", line 312, in setup
gauth.LoadCredentialsFile(xbmc.validatePath(xbmc.translatePath(utils.data_dir() + 'google_drive.dat')))
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/pydrive/auth.py", line 236, in LoadCredentialsFile
self.credentials = storage.get()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.oauth2client/lib/oauth2client/client.py", line 372, in get
return self.locked_get()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.oauth2client/lib/oauth2client/file.py", line 79, in locked_get
credentials = Credentials.new_from_json(content)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.oauth2client/lib/oauth2client/client.py", line 290, in new_from_json
return from_json(s)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.oauth2client/lib/oauth2client/client.py", line 622, in from_json
data['token_expiry'], EXPIRY_FORMAT)
TypeError: attribute of type 'NoneType' is not callable
-->End of Python script error report<--
13:14:06 T:1568347816 NOTICE: GL_VENDOR = Broadcom
13:14:06 T:1568347816 NOTICE: GL_RENDERER = VideoCore IV HW
13:14:06 T:1568347816 NOTICE: GL_VERSION = OpenGL ES 2.0
13:14:06 T:1568347816 NOTICE: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 1.00
13:14:06 T:1568347816 NOTICE: GL_EXTENSIONS = GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_texture_npot GL_OES_depth24 GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_EGL_image_external GL_EXT_discard_framebuffer GL_OES_rgb8_rgba8 GL_OES_depth32 GL_OES_packed_depth_stencil GL_EXT_texture_format_BGRA8888 GL_EXT_debug_marker