You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import psutil
for each_process in psutil.pids():
p = psutil.Process(each_process)
print(p.as_dict()['name'])`
Error:
`fdlauncher.exe
SearchIndexer.exe
fdhost.exe
conhost.exe
svchost.exe
WUDFHost.exe
wmpnetwk.exe
QQProtect.exe
Traceback (most recent call last):
File "E:/Server_Info/test.py", line 8, in <module>
print(p.as_dict()['name'])
File "D:\python35\lib\site-packages\psutil\__init__.py", line 563, in as_dict
ret = meth()
File "D:\python35\lib\site-packages\psutil\__init__.py", line 1178, in memory_maps
for tupl in it:
File "D:\python35\lib\site-packages\psutil\_pswindows.py", line 746, in memory_maps
raw = cext.proc_memory_maps(self.pid)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 34: invalid continuation byte
My operating environment is win7 , python 3.5, psutil 5.2.
The text was updated successfully, but these errors were encountered:
Hi.I met a problem.
Error:
My operating environment is win7 , python 3.5, psutil 5.2.
The text was updated successfully, but these errors were encountered: