#17889 assigned Bugs

Python shutil.move() error on Xbox One

Reported by: Leopold Owned by: afedchin
Priority: 4 - Normal
Component: Python Code and/or Scripts Version: 18.0 "Leia" Alpha1
Severity: Normal Keywords:
Cc: Blocked By:
Blocking: Platform: UWP

Description

File "U:\Users\UserMgr0\AppData\Local\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalState\addons\script.module.kodiswift\lib\kodiswift\storage.py", line 123, in sync
shutil.move(temp_file, self.file_path)
File "S:\Program Files\WindowsApps\XBMCFoundation.Kodi_17.9.114.70_x64__4n2hpmxwrvr6p\system\python\Lib\shutil.py", line 302, in move
copy2(src, real_dst)
File "S:\Program Files\WindowsApps\XBMCFoundation.Kodi_17.9.114.70_x64__4n2hpmxwrvr6p\system\python\Lib\shutil.py", line 131, in copy2
copystat(src, dst)
File "S:\Program Files\WindowsApps\XBMCFoundation.Kodi_17.9.114.70_x64__4n2hpmxwrvr6p\system\python\Lib\shutil.py", line 98, in copystat
os.utime(dst, (st.st_atime, st.st_mtime))
TypeError: utime() arg 2 must be a tuple (atime, mtime)

The version is 20180401-e610dd2f25. I have seen thousands of these exceptions appearing on Rollbar for my BT Sports plugin, enough to disable my free account for the rest of the month.

I don't have an Xbox One to test it myself but I assume it can be reproduced by calling shutil.move() from any addon.

Change History (2)

comment:1 Changed at 2018-05-26T21:57:39+01:00 by afedchin

  • Owner changed from jfcarroll to afedchin
  • Status changed from new to assigned

please attach full debug log.

comment:2 Changed at 2018-05-26T22:02:13+01:00 by Leopold

I don't have one. I only have hundreds of exceptions on Rollbar from Xbox One users, one of which is included in the original description.

Note: See TracTickets for help on using tickets.