I am developing a plugin and inserted in sys path the Locations, which appear also on the Sublime Console. if I do psutil.process_iter()
i get error AttributeError: module 'psutil' has no attribute 'process_iter'
. Psutil version 5.8.0 that works fine in python console. Now what am I missing.
SUBLIME CONSOLE
>>> import sys;sys.path
['C:\\Users\\Ady\\AppData\\Roaming\\Sublime Text 3\\Packages\\2-AutomateBrowser', 'E:\\Anaconda3\\envs\\SublimeText\\Lib\\site-packages', 'E:\\Anaconda3\\envs\\SublimeText\\Scripts', 'C:\\WINDOWS\\system32', 'C:\\Program Files\\Sublime Text 3\\Lib\\python3.8.zip', 'E:\\Anaconda3\\envs\\SublimeText\\Lib\\site-packages\\win32\\lib', 'E:\\Anaconda3\\envs\\SublimeText\\Lib\\site-packages\\win32\\libs', 'E:\\Anaconda3\\envs\\SublimeText\\Lib\\site-packages\\win32', 'E:\\Anaconda3\\envs\\SublimeText\\Lib\\site-packages\\numpy\\core', 'E:\\Anaconda3\\envs\\SublimeText\\Lib\\site-packages\\numpy\\core\\lib', 'E:\\Anaconda3\\envs\\SublimeText\\Lib\\site-packages\\numpy\\lib', 'E:\\Anaconda3\\envs\\SublimeText\\Lib\\site-packages\\pythonwin\\pywin', 'E:\\Anaconda3\\envs\\SublimeText\\Lib\\site-packages\\win32com\\libs', 'E:\\Anaconda3\\envs\\SublimeText\\Lib\\site-packages\\win32com', 'E:\\Anaconda3\\envs\\SublimeText\\Lib\\site-packages\\win32comext', 'E:\\Anaconda3\\envs\\SublimeText\\Lib\\site-packages\\pythonwin', 'E:\\Anaconda3\\envs\\SublimeText\\Lib\\site-packages\\psutil', 'E:\\Anaconda3\\envs\\SublimeText\\Lib\\site-packages\\pyperclip', 'C:\\Program Files\\Sublime Text 3\\Lib\\python38', 'C:\\Program Files\\Sublime Text 3\\Lib\\python3', 'C:\\Users\\Ady\\AppData\\Roaming\\Sublime Text 3\\Lib\\python38', 'C:\\Program Files\\Sublime Text 3\\Packages', 'C:\\Users\\Ady\\AppData\\Roaming\\Sublime Text 3\\Packages']
>>> import psutil
>>> psutil.process_iter()
Traceback (most recent call last):
File "__main__", line 1, in <module>
AttributeError: module 'psutil' has no attribute 'process_iter'
PYTHON CONSOLE
(SublimeText) C:\WINDOWS\system32>python
Python 3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil
>>> psutil.process_iter()
<generator object process_iter at 0x0000017EF10FBE40>
>>>