Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Install Error] In Python 3.13, it will be failed. #283

Open
qaqFei opened this issue Nov 10, 2024 · 3 comments
Open

[Install Error] In Python 3.13, it will be failed. #283

qaqFei opened this issue Nov 10, 2024 · 3 comments

Comments

@qaqFei
Copy link

qaqFei commented Nov 10, 2024

Looking in indexes: https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
Collecting UnityPy
  Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/18/cb/a20418b6bcc5e92ddedc1a62864cd1390d72687fc385ed98831b4ef22e9a/UnityPy-1.20.12-cp313-cp313-win_amd64.whl (2.0 MB)
Collecting lz4 (from UnityPy)
  Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/a4/31/ec1259ca8ad11568abaf090a7da719616ca96b60d097ccc5799cd0ff599c/lz4-4.3.3.tar.gz (171 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting brotli (from UnityPy)
  Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/7e/c1/ec214e9c94000d1c1974ec67ced1c970c148aa6b8d8373066123fc3dbf06/Brotli-1.1.0-cp313-cp313-win_amd64.whl (358 kB)
Collecting Pillow (from UnityPy)
  Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/fb/01/3755ba287dac715e6afdb333cb1f6d69740a7475220b4637b5ce3d78cec2/pillow-11.0.0-cp313-cp313-win_amd64.whl (2.6 MB)
Collecting texture2ddecoder (from UnityPy)
  Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/e2/dc/0ea3c5f8555677d69dd7c5aacfa119ff36506f05dc2af385a8556af5539d/texture2ddecoder-1.0.4.tar.gz (101 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting etcpak (from UnityPy)
  Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/23/aa/84767f163781d34cbc7d27840cd3a0633e7c26aa07e8f5d90ee1c3fbf2cc/etcpak-0.9.12-cp313-cp313-win_amd64.whl (854 kB)
Collecting astc-encoder-py>=0.1.8 (from UnityPy)
  Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/2b/14/f88509c5c43028df305a200bc7e2523e0fc550d41ddb13a7faa87db7a1a3/astc_encoder_py-0.1.9-cp37-abi3-win_amd64.whl (2.8 MB)
Collecting pyfmodex>=0.7.1 (from UnityPy)
  Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/2c/7b/f7fdcdf6a6e8fd951c41e91baae8c1cecfffc2ed3199157afd6ab5728716/pyfmodex-0.7.2-py3-none-any.whl (126 kB)
Collecting fsspec (from UnityPy)
  Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/c6/b2/454d6e7f0158951d8a78c2e1eb4f69ae81beb8dca5fee9809c6c99e9d0d0/fsspec-2024.10.0-py3-none-any.whl (179 kB)
Collecting attrs (from UnityPy)
  Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/6a/21/5b6702a7f963e95456c0de2d495f67bf5fd62840ac655dc451586d23d39a/attrs-24.2.0-py3-none-any.whl (63 kB)
Collecting archspec>=0.2 (from astc-encoder-py>=0.1.8->UnityPy)
  Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/d2/8d/2733707a9daf4df14cb6ae251691cfc49fcce888234ec6484364d8319b46/archspec-0.2.5-py3-none-any.whl (76 kB)
Building wheels for collected packages: lz4, texture2ddecoder
  Building wheel for lz4 (pyproject.toml): started
  Building wheel for lz4 (pyproject.toml): finished with status 'error'
  Building wheel for texture2ddecoder (pyproject.toml): started
  Building wheel for texture2ddecoder (pyproject.toml): finished with status 'error'
Failed to build lz4 texture2ddecoder

  error: subprocess-exited-with-error

  × Building wheel for lz4 (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [15 lines of output]
      C:\Users\QAQ\AppData\Local\Temp\pip-build-env-tjzg2o10\overlay\Lib\site-packages\setuptools\_distutils\dist.py:261: UserWarning: Unknown distribution option: 'tests_require'  
        warnings.warn(msg)
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-313\lz4
      copying lz4\version.py -> build\lib.win-amd64-cpython-313\lz4
      copying lz4\__init__.py -> build\lib.win-amd64-cpython-313\lz4
      creating build\lib.win-amd64-cpython-313\lz4\block
      copying lz4\block\__init__.py -> build\lib.win-amd64-cpython-313\lz4\block
      creating build\lib.win-amd64-cpython-313\lz4\frame
      copying lz4\frame\__init__.py -> build\lib.win-amd64-cpython-313\lz4\frame
      running build_ext
      building 'lz4._version' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for lz4
  error: subprocess-exited-with-error

  × Building wheel for texture2ddecoder (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'texture2ddecoder' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for texture2ddecoder
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (lz4, texture2ddecoder)
@qaqFei qaqFei added the bug Something isn't working label Nov 10, 2024
@martinwang2002
Copy link
Contributor

python3.13 is not included in the built wheels, you have to build it by yourself. In other words, install C++

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

@qaqFei
Copy link
Author

qaqFei commented Nov 10, 2024

thanks

@K0lb3 K0lb3 added dependency-without-wheels and removed bug Something isn't working labels Nov 13, 2024
@K0lb3
Copy link
Owner

K0lb3 commented Nov 13, 2024

This isn't actually a bug related to UnityPy itself,
it's just that there are no prebuild wheels for two dependencies for your python version (3.13).
This is quite often the case for new python releases.

While texture2ddecoder is in my hand and can be updated by me to have 3.13 wheels,
this is not the case for lz4.

As martinwang2002 said, in those cases one has to install a build kit to compile the dependencies oneself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants