from pwn import * # pip install pwntools
import json
===> BUG
ImportError: cannot import name '_psutil_osx' from partially initialized module 'psutil' (most likely due to a circular import) (/usr/local/lib/python3.9/site-packages/psutil/__init__.py)
SOLUTION???
$ls /usr/local/lib/python3.9/site-packages/psutil/
__init__.py _psaix.py _psposix.py _pswindows.py
__pycache__ _psbsd.py _pssunos.py tests
_common.py _pslinux.py _psutil_osx.cpython-39-darwin.so
_compat.py _psosx.py _psutil_posix.cpython-39-darwin.so
$cp _psutil_osx.cpython-39-darwin.so _psutil_osx.so
$cp _psutil_posix.cpython-39-darwin.so _psutil_posix.so
Worked smoothly, dont know why ....
Không có nhận xét nào:
Đăng nhận xét