XBMC Ubuntu via apt-get install xbmc -> file.open('file', 'a') does not create file - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: XBMC Ubuntu via apt-get install xbmc -> file.open('file', 'a') does not create file (/showthread.php?tid=36316) |
XBMC Ubuntu via apt-get install xbmc -> file.open('file', 'a') does not create file - Basje - 2008-08-24 Hi there, today I downloaded XBMC Linux (Ubuntu) via the "apt-get install xbmc". XBMC installed fine and ran OK. But my scripts didn't. Here is the thing: I write a custom logfile to my script folder (/home/user/.xbmc/scripts/scriptname/logfile.log) but now the logging fails. - On every start of the script the current file is renamed: logfile.log -> logfile.old.log. - Then I call file.open('logfile.log', 'a+') to create a new file and open it for append (could also use 'w+' but that won't work either). Here is where I get an error in the xbmc.log file: IOError: [Errno 2] No such file or directory: '/home/user/.xbmc/scripts/scriptname/logfile.log'. Eventhough the file.open command should create it. Is this a bug, or am I missing a Linux related thing? - analogue - 2008-08-24 same deal. hacked script not to log output...not ideal. - Basje - 2008-08-25 analogue Wrote:same deal. hacked script not to log output...not ideal. good to hear that I am not alone in this matter. Is there perhaps a more Linux minded python scripter that could help us out? Or should I post a bug report? - Basje - 2008-08-28 I installed the lateste PPA version, but it still doesn't work. Anyone got a solution to my problem? - oliv - 2008-10-18 Hi, I have the same problem with OSX and XBMC beta 1 and 2... Is it reported as a bug? Best regards Oliv |