v18 [64-bit] subprocess.Popen raises error - 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: v18 [64-bit] subprocess.Popen raises error (/showthread.php?tid=316826) |
[64-bit] subprocess.Popen raises error - iwis - 2017-06-18 Hi! I was testing my addon on the latest Kodi 18 alpha. It works with Kodi 32-bit, but I have a problem with 64-bit version when I want to run an external program using subprocess.Popen (tested on 64-bit Windows 8). In default.py file in the 35th line subprocess.Popen('ping google.com', shell=True, stdout=subprocess.PIPE) raises an error. I have narrowed the code to the following small default.py: Code: # -*- coding: utf-8 -*- that raises this error when Kodi is run by a normal user: Code: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- or this error when Kodi is run by an administrator: Code: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- what is wrong with subprocess.Popen in 64-bit Kodi? addon.xml: Code: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> RE: [64-bit] subprocess.Popen raises error - _Andy_ - 2017-06-23 I have the same issue https://forum.kodi.tv/showthread.php?tid=315122 I have tried to solve this in many different ways but no luck. RE: [64-bit] subprocess.Popen raises error - User 224999 - 2017-07-25 I just ran into the same issue. Most likely not a Kodi issue but in the underlying implementation of python's subprocess. It's related to the stdout part, leave the pipe out and it's working fine. |