Release Execute user tasks for Kodi events (callbacks ver2)
#46
Hi I think I found a bug on a windows installation I am using Kodi v16 RC3 and when I go to run "Test Add-on Native Tasks" I get the following error:

Seems like the path may not be set right for a file? Let me know if you need more info and I am using the latest zip file from Github.

Code:
16:27:32 T:5060   ERROR: $$$ [kodi.callbacks] - testHttp returned with an error: Requests Connection Error
16:27:32 T:7740  NOTICE: Log level changed to "LOG_LEVEL_DEBUG_FREEMEM"
16:27:32 T:7740  NOTICE: Enabled debug logging due to GUI setting. Level 2.
16:27:32 T:7740  NOTICE: Log level changed to "LOG_LEVEL_DEBUG_FREEMEM"
16:27:32 T:7740  NOTICE: Enabled debug logging due to GUI setting. Level 2.
16:27:32 T:7740   DEBUG: ------ Window Init () ------
16:27:33 T:7740   DEBUG: Keyboard: scancode: 0x4d, sym: 0x0113, unicode: 0x0000, modifier: 0x0
16:27:33 T:7740   DEBUG: CInputManager::OnKey: right (0xf083) pressed, action is Right
16:27:33 T:9148   DEBUG: webserver: request received for /jsonrpc
16:27:33 T:7740   DEBUG: Keyboard: scancode: 0x4d, sym: 0x0113, unicode: 0x0000, modifier: 0x0
16:27:33 T:7740   DEBUG: CInputManager::OnKey: right (0xf083) pressed, action is Right
16:27:33 T:5060   DEBUG: POParser: loaded 183 strings from file C:\Users\shokouhi\AppData\Roaming\Kodi\addons\script.service.kodi.callbacks\resources\language\English\strings.po
16:27:33 T:5060   DEBUG: Previous line repeats 1 times.
16:27:33 T:5060   DEBUG: $$$ [kodi.callbacks] - Error: Builtin test failed
16:27:33 T:7740  NOTICE: Disabled debug logging due to GUI setting. Level 0.
16:27:33 T:7740  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
16:27:33 T:7740  NOTICE: Disabled debug logging due to GUI setting. Level 0.
16:27:33 T:7740  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
16:27:33 T:5060   ERROR: $$$ [kodi.callbacks] - testScriptNoShell returned with an error: Requests Connection Error
16:27:33 T:5060   ERROR: $$$ [kodi.callbacks] - Error testing testScriptNoShell
                                            <attribute 'message' of 'exceptions.BaseException' objects>
                                            Traceback (most recent call last):
                                              File "C:\Users\shokouhi\AppData\Roaming\Kodi\addons\script.service.kodi.callbacks\resources\lib\tests\testTasks.py", line 226, in runTests
                                                test()
                                              File "C:\Users\shokouhi\AppData\Roaming\Kodi\addons\script.service.kodi.callbacks\resources\lib\tests\testTasks.py", line 124, in testScriptNoShell
                                                with open(outfile, 'r') as f:
                                            IOError: [Errno 2] No such file or directory: 'C:\\Users\\shokouhi\\AppData\\Roaming\\Kodi\\addons\\script.service.kodi.callbacks\\resources\\lib\\tests\\scriptoutput.txt'
16:27:33 T:5060   ERROR: $$$ [kodi.callbacks] - testScriptShell returned with an error: <attribute 'message' of 'exceptions.BaseException' objects>
                                            Traceback (most recent call last):
                                              File "C:\Users\shokouhi\AppData\Roaming\Kodi\addons\script.service.kodi.callbacks\resources\lib\tasks\taskScript.py", line 120, in run
                                                p = subprocess.Popen(args, stdout=subprocess.PIPE, shell=needs_shell, stderr=subprocess.STDOUT)
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\subprocess.py", line 710, in __init__
                                                errread, errwrite)
                                              File "C:\Program Files (x86)\Kodi\system\python\Lib\subprocess.py", line 958, in _execute_child
                                                startupinfo)
                                            WindowsError: [Error 2] The system cannot find the file specified
Reply


Messages In This Thread
RE: Execute user tasks for Kodi events (callbacks ver2) - by shakuyi - 2016-02-06, 02:39
Callback Addon - Matrix - by Zygon - 2021-08-14, 21:03
Logout Mark Read Team Forum Stats Members Help
Execute user tasks for Kodi events (callbacks ver2)3