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

[ bug reports ]tgcrypto not working on Python 3.12.7 #149

Open
3 tasks
MesterPerfect opened this issue Jan 3, 2025 · 2 comments
Open
3 tasks

[ bug reports ]tgcrypto not working on Python 3.12.7 #149

MesterPerfect opened this issue Jan 3, 2025 · 2 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested

Comments

@MesterPerfect
Copy link

Checklist

  • I added a descriptive title
  • I searched for other issues and couldn't find a solution or duplication
  • I already searched in Google and didn't find any good information or help

Describe the bug


(env) C:\Users\MesterPerfect\Desktop\All-Url-Uploader-main>pip install 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]
      C:\Users\MesterPerfect\AppData\Local\Temp\pip-build-env-7kmaubg8\overlay\Lib\site-packages\setuptools\_distutils\dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
        warnings.warn(msg)
      running bdist_wheel
      running build
      running build_py
      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: ERROR: Failed to build installable wheels for some pyproject.toml based projects (tgcrypto)

(env) C:\Users\MesterPerfect\Desktop\All-Url-Uploader-main>

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. windows 10 x64]
  • Deploy In [locally]
  • Version [v.2.0.0]

Additional context
Add any other context about the problem here.

@MesterPerfect MesterPerfect added bug Something isn't working help wanted Extra attention is needed question Further information is requested labels Jan 3, 2025
@satyanandatripathi
Copy link
Contributor

Kindly run it on python 3.10 or 11

@kalanakt
Copy link
Owner

The main issue is that you're missing Microsoft Visual C++ 14.0 or greater, which is required to build the TgCrypto package on Windows. Here's how to fix it:

  1. Install Visual C++ Build Tools:

  2. After installation, you have two options:

    Option 1 - Try installing TgCrypto again:

    pip install tgcrypto

    Option 2 - If you're still having issues, you can try installing a pre-compiled wheel:

    pip install --only-binary :all: tgcrypto
  3. If you're still experiencing issues, you can try:

    pip install --upgrade pip
    pip install --upgrade setuptools wheel
    pip install tgcrypto

Important Notes:

  • After installing Visual C++ Build Tools, you may need to restart your command prompt or computer
  • Make sure you're using the correct Python version for your system (32-bit or 64-bit)
  • If you're using a virtual environment, ensure it's activated before running the pip commands

If you continue to have issues after trying these steps, please let me know and I can help you troubleshoot further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants