Closed michal-jar closed 1 year ago
I'm sorry, but I can't reproduce this behavior at all. All versions of UnityPy have to pass tests before being published, which includes an installation via pip.
Seeing that you use a pretty dated version of pip, upgrade it and try again.
If it still doesn't work, please share your python version, os, and CPU architecture (x64, x86, arm, ..).
This is the latest pip version that is available for python 3.6, any newer pip requires python 3.7. Maybe that is the issue that UnityPy does not support python 3.6 despite stating it does?
My machine with Intel CPU:
$python --version
Python 3.6.9
$pip --version
pip 21.3.1
$hostnamectl
Operating System: Linux Mint 19.1
Kernel: Linux 4.15.0-208-generic
Architecture: x86-64
I think the problem comes from setuptools. pyproject.toml support was added to setuptools 61.0.0 but the latest version of setuptools that supports 3.6 is 59.6.0. Since there's only partial metadata in setup.py
, setuptools couldn't find the package name and used UNKNOWN-0.0.0
.
3.6 is also not tested in github actions. To support 3.6, all metadata probably would need to be moved to setup.py
. Considering python 3.6 security support ended 1 year ago and ubuntu 18.04 will enter EOL soon, it's probably time to retire 3.6 support.
I guess officially retiring 3.6 support is the most sound solution, as even just testing it isn't directly possible via github actions anymore.
Unable to install UnityPy using pip.
pip --version
pip install UnityPy
Also installation from source code does not work.
python -m pip install .