Solved "ImportError: No module named wmi"
#1
hi, i get this error, when I try to run a python script which is using WMI.

Code:
"ImportError: No module named wmi"

Os: Windows 10 64 bit.
Python installed (32 bit) with pywin32 extension.

In Python, the script runs as desired. But not in Kodi.

How can I fix this?
Thanks a lot!
Reply
#2
(2019-08-19, 02:34)3000 Wrote: hi, i get this error, when I try to run a python script which is using WMI.

Code:
"ImportError: No module named wmi"

Os: Windows 10 64 bit.
Python installed (32 bit) with pywin32 extension.

In Python, the script runs as desired. But not in Kodi.

How can I fix this?
Thanks a lot!
Kodi uses it's own Python environment, so you would have to either repackage WMI as a Kodi script module (and any dependencies WMI has) or somehow include WMI (again, and all the dependencies) in your addon.  Here's a post with some suggestions on how to repackage a python module as a Kodi script module:

https://forum.kodi.tv/showthread.php?tid...pid2670947
Reply
#3
I just want to say "thank you". Your reply didn't help at all, I tried everything proposed. 

But at least you had something to say. This is by far the worst forum I know of.

I was working on a service add-on but that's not going to happen now.

Fine. 

I'm out.
Reply
#4
Thread marked solved.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
Yes. I marked it as solved because it doesn't matter any more. I deleted all files.

No more add-on.
Reply
#6
please take your frustrations elsewhere. we're not interested.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#7
You don't have to tell me that you are NOT interested. I already know that. ...

And please don't spam my thread just to get your posting number up. I know you lot. If you were interested in helping you could have done so by now but you chose not to.

I am not AT ALL surprised you all of a sudden had something to say. TWICE even. Did it lead anywhere though?

Of course not.
Reply

Logout Mark Read Team Forum Stats Members Help
"ImportError: No module named wmi"0