Code:
import os
f = os.popen('ls')
output = f.read()
rc = f.close()
print outputThe script will run fine if invoked as a stand alone python script but when invoked inside xbmc I get the below error message.
Code:
23:40:27 T:3013217136 INFO: -->Python script returned the following error<--
23:40:27 T:3013217136 ERROR: Error Type: <type 'exceptions.IOError'>
23:40:27 T:3013217136 ERROR: Error Contents: (10, 'No child processes')
23:40:27 T:3013217136 ERROR: Traceback (most recent call last):
File "/home/martin/.xbmc/addons/deluge.xbmc.client/default.py", line 5, in <module>
rc = f.close()
IOError: (10, 'No child processes')
23:40:27 T:3013217136 INFO: -->End of Python script error report<--Since I'm calling a library that is doing a popen I can't just replace popen with something else. Is there any thing else I can do to avoid the above error when invoking the deluge python lib from within xbmc?

Search
Help