tgcrypto icon indicating copy to clipboard operation
tgcrypto copied to clipboard

Wheel building fails on Python 3.12 stable

Open hazy-kun opened this issue 2 years ago • 9 comments

Unable to install on Python 3.12, missing pre-built wheel for this version, Visual Studio 2022 and vcredist are installed on the PC so the problem is on TgCrypto

Collecting TgCrypto
  Using cached TgCrypto-1.2.5.tar.gz (37 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: TgCrypto
  Building wheel for TgCrypto (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for TgCrypto (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-312
      creating build\lib.win-amd64-cpython-312\tests
      copying tests\__init__.py -> build\lib.win-amd64-cpython-312\tests
      creating build\lib.win-amd64-cpython-312\tests\cbc
      copying tests\cbc\test_cbc.py -> build\lib.win-amd64-cpython-312\tests\cbc
      copying tests\cbc\__init__.py -> build\lib.win-amd64-cpython-312\tests\cbc
      creating build\lib.win-amd64-cpython-312\tests\ctr
      copying tests\ctr\test_ctr.py -> build\lib.win-amd64-cpython-312\tests\ctr
      copying tests\ctr\__init__.py -> build\lib.win-amd64-cpython-312\tests\ctr
      creating build\lib.win-amd64-cpython-312\tests\ige
      copying tests\ige\test_ige.py -> build\lib.win-amd64-cpython-312\tests\ige
      copying tests\ige\__init__.py -> build\lib.win-amd64-cpython-312\tests\ige
      running build_ext
      building 'tgcrypto' 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 TgCrypto
Failed to build TgCrypto
ERROR: Could not build wheels for TgCrypto, which is required to install pyproject.toml-based projects

hazy-kun avatar Oct 12 '23 09:10 hazy-kun

same problem on python 12 , 8 versions

Morrigan-Ship avatar Oct 14 '23 00:10 Morrigan-Ship

I am having the same issue, any solutions so far?

reinaldo-br avatar Oct 22 '23 22:10 reinaldo-br

Are you added path to MSVC binaries to PATH environment variable?

landgrafhomyak avatar Oct 22 '23 22:10 landgrafhomyak

With 3.11.6 i no need to add nothin on path so i think it's not environment problem or configuration problem

hazy-kun avatar Oct 30 '23 09:10 hazy-kun

guys, I had the same problem with Python 3.12 and even tried to upgrade the pip version but it didn't work

Then I installed Microsoft C++ Build Tools and it's finally working! (you can find it here: https://visualstudio.microsoft.com/visual-cpp-build-tools/ )

10262 Be sure to add a checkmark to Visual C++ build tools

I hope I could help!

amirzib avatar Jan 06 '24 13:01 amirzib

The above worked for me. Thank you @amirzib ! One thing to note for anyone else - When you go into workloads, I didnt have the exact above selection, but instead had "desktop development with c++" The selections on the right turn out the same though

robertrodrigues avatar Jan 08 '24 02:01 robertrodrigues

If anyone need, I uploaded the wheel for 3.12 in : https://raw.githubusercontent.com/Tapanhaz/My_Builds/main/TgCrypto-1.2.5-cp312-cp312-win_amd64.whl

Tapanhaz avatar Feb 27 '24 17:02 Tapanhaz

If someone want i rebuilt wheel and published under package name mtprotocrypt, install it instead of tgcrypto to support all OS from 3.9.x to 3.12.x

hazy-kun avatar May 05 '24 09:05 hazy-kun

If anyone need, I uploaded the wheel for 3.12 in : https://raw.githubusercontent.com/Tapanhaz/My_Builds/main/TgCrypto-1.2.5-cp312-cp312-win_amd64.whl

wow thanks broooooo! <3 youre save me

njuusx avatar Jun 20 '24 11:06 njuusx