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

Wheel building fails on Python 3.12 stable #37

Open
hazy-kun opened this issue Oct 12, 2023 · 8 comments
Open

Wheel building fails on Python 3.12 stable #37

hazy-kun opened this issue Oct 12, 2023 · 8 comments

Comments

@hazy-kun
Copy link

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
@Morrigan-Ship
Copy link

same problem on python 12 , 8 versions

@reinaldo-br
Copy link

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

@landgrafhomyak
Copy link

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

@hazy-kun
Copy link
Author

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

@amirzib
Copy link

amirzib commented Jan 6, 2024

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!

@robertrodrigues
Copy link

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

@Tapanhaz
Copy link

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

@hazy-kun
Copy link
Author

hazy-kun commented May 5, 2024

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

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

No branches or pull requests

7 participants