https://bugs.winehq.org/show_bug.cgi?id=52378
Bug ID: 52378 Summary: Python WMI: AttributeError: wbemErrInvalidQuery Product: Wine Version: 7.0-rc5 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: danielsuarez369@protonmail.com Distribution: ---
Created attachment 71591 --> https://bugs.winehq.org/attachment.cgi?id=71591 Full output when importing wmi in Python.
When attempting to import the "wmi" module in Python it returns an AttributeError: wbemErrInvalidQuery.
Steps to reproduce are: 1. Install Python (`wget https://www.python.org/ftp/python/3.10.1/python-3.10.1-amd64.exe" && wine python-3.10.1-amd64.exe`) 2. Install the WMI module (`wine python -m pip install WMI`) 3. Try to import the module (`wine python -c "import wmi"`)
This is also reproducible with Pyinstaller executables that import it.
https://bugs.winehq.org/show_bug.cgi?id=52378
Daniel Suarez danielsuarez369@protonmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Python WMI: AttributeError: |Python WMI module: |wbemErrInvalidQuery |AttributeError: | |wbemErrInvalidQuery
https://bugs.winehq.org/show_bug.cgi?id=52378
Daniel Suarez danielsuarez369@protonmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |ArchLinux
https://bugs.winehq.org/show_bug.cgi?id=52378
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 71595 --> https://bugs.winehq.org/attachment.cgi?id=71595 patch
It simply fails to bind to error code symbols that are missing from the typelib at the moment. Does this patch work for you?
https://bugs.winehq.org/show_bug.cgi?id=52378
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |wmi&wbemprox
https://bugs.winehq.org/show_bug.cgi?id=52378
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- Confirming.
https://bugs.winehq.org/show_bug.cgi?id=52378
--- Comment #3 from Daniel Suarez danielsuarez369@protonmail.com --- I can confirm that patch works wonderfully!
https://bugs.winehq.org/show_bug.cgi?id=52378
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |9dd1654c84adfe3344419243ee6 | |955248b14e797 Status|NEW |RESOLVED
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com --- This is fixed now, 9dd1654c84adfe3344419243ee6955248b14e797.
https://bugs.winehq.org/show_bug.cgi?id=52378
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.0-rc6.
https://bugs.winehq.org/show_bug.cgi?id=52378
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |6.0.x
https://bugs.winehq.org/show_bug.cgi?id=52378
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|6.0.x |---
--- Comment #6 from Michael Stefaniuc mstefani@winehq.org --- Removing the 6.0.x milestone from bug fixes included in 6.0.4.