gatapia/py_ml_utils

psutil error in introspect_sklearn.py

Opened this issue · 0 comments

Maybe you should try the function - process_iter()
https://stackoverflow.com/questions/31216835/python-psutil-psutil-get-process-list-error
and
https://github.com/giampaolo/psutil/blob/master/HISTORY.rst#050---2012-06-27
2012-06-27

Enhancements
73: psutil.get_process_list() is deprecated.

File "e:\Auto ML\code\py_ml_utils_master_changed_2\py_ml_utils_master_changed\pml\introspect_sklearn.py", line 181, in <module>
  try_all_classifiers(X, y)
File "e:\Auto ML\code\py_ml_utils_master_changed_2\py_ml_utils_master_changed\pml\introspect_sklearn.py", line 70, in try_all_classifiers
  classifiers = get_classifiers(sklearn)
File "e:\Auto ML\code\py_ml_utils_master_changed_2\py_ml_utils_master_changed\pml\introspect_sklearn.py", line 37, in get_classifiers
  classifiers += get_classifiers(cls, done)
File "e:\Auto ML\code\py_ml_utils_master_changed_2\py_ml_utils_master_changed\pml\introspect_sklearn.py", line 45, in get_classifiers
  pre_processes_length = get_python_processes()
File "e:\Auto ML\code\py_ml_utils_master_changed_2\py_ml_utils_master_changed\pml\introspect_sklearn.py", line 19, in get_python_processes
  return len([p for p in psutil.get_process_list() if is_python_process])

builtins.AttributeError: module 'psutil' has no attribute 'get_process_list'