Error when trying to import subprocess
#1
Hi all,

Anyone has an idea why from the following code:

import home
import subprocess

window_home = home.WindowHome()
window_home.doModal()
del window_home
window_home = None



I get this error ...:



12:39:00.610 T:15460 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: cannot import name deque
Traceback (most recent call last):
File "C:\Users\yohay\AppData\Roaming\Kodi\addons\script.media.mosaic\addon.py", line 2, in <module>
import subprocess
File "C:\Program Files (x86)\Kodi\system\python\Lib\subprocess.py", line 415, in <module>
import threading
File "C:\Program Files (x86)\Kodi\system\python\Lib\threading.py", line 13, in <module>
from collections import deque as _deque
ImportError: cannot import name deque
-->End of Python script error report<--
Reply
#2
Thread moved to addon development
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#3
Try deleting all of your .pyc files and testing again.
Reply

Logout Mark Read Team Forum Stats Members Help
Error when trying to import subprocess0