2013-08-09, 04:00
Have there been any changes to VFSExists for Gotham...? I have some simple code and it's working on Alpha6 on my Windows boxes but a user in linux is reporting an issue. Code is really simply, and there are slashes at the end of the paths as I believe is required.
Basically it is this:
Gives an error:
...but has een working for years fine on all platforms before this. .exists() is returning false but then the file exists, so it raises en exception. Obiviously I can try in a try/except but I think there might e a bug here?
Anyone else having any issues with Gotham Alpha 6??
Basically it is this:
Code:
#strings to store the paths we will use
RADAR_BACKGROUNDS_PATH = xbmc.translatePath("special://profile/addon_data/weather.ozweather/radarbackgrounds/" + radarCode + "/");
LOOP_IMAGES_PATH = xbmc.translatePath("special://profile/addon_data/weather.ozweather/currentloop/" + radarCode + "/");
#we need make the directories to store stuff if they don't exist
if not xbmcvfs.exists( RADAR_BACKGROUNDS_PATH ):
os.makedirs( RADAR_BACKGROUNDS_PATH )
if not xbmcvfs.exists( LOOP_IMAGES_PATH ):
os.makedirs( LOOP_IMAGES_PATH )
Gives an error:
Code:
20:59:58 T:139959354103552 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.OSError'>
Error Contents: (17, 'File exists', '/home/xbmc/.xbmc/userdata/addon_data/weather.ozweather/currentloop/IDR021/')
Traceback (most recent call last):
File "/home/xbmc/.xbmc/addons/weather.ozweather/default.py", line 578, in <module>
forecast(location, radar)
File "/home/xbmc/.xbmc/addons/weather.ozweather/default.py", line 167, in forecast
buildImages(radarCode)
File "/home/xbmc/.xbmc/addons/weather.ozweather/default.py", line 289, in buildImages
os.makedirs( LOOP_IMAGES_PATH )
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: (17, 'File exists', '/home/xbmc/.xbmc/userdata/addon_data/weather.ozweather/currentloop/IDR021/')
...but has een working for years fine on all platforms before this. .exists() is returning false but then the file exists, so it raises en exception. Obiviously I can try in a try/except but I think there might e a bug here?
Anyone else having any issues with Gotham Alpha 6??