-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeDecodeError psutil.win_service_iter() #866
Comments
Does the error occur on |
I'm not sure I'm doing right but I tried this:
I simply added repr() to each item that I want to display but I get the same error as above. |
If you remove the |
I tried again with the following code:
I get the same error:
I'm testing this code on Windows 10 with python 3.5.2 . I tried to run the script from the IDE (I'm using PyCharm anyway it shouldn't be important mentioning that) and also using the Python Console. The same error is displayed. |
OK, then it's a psutil problem. |
OK I should have fixed it. Can you please compile from sources and verify it is fixed? If not I can attach a .exe pre-compiled version for you to test (Python version? 32 or 64 bit?). |
I have this function for retrieving and displaying info about all the Windows services.
I get an error at line 342 of psutil_pswindows.py, in win_service_iter
for name, display_name in cext.winservice_enumerate():
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe0 in position 7: invalid continuation byte
It seems that one or more values aren't encoded in utf-8 so it throws an error.
Is it a known issue? Can it be fixed?
The text was updated successfully, but these errors were encountered: