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

ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects #318

Closed
falcon56321 opened this issue Oct 12, 2023 · 5 comments
Labels
Help / Issue General or specific issues that just require some additional assistance to solve

Comments

@falcon56321
Copy link

  _websocket.c
  aiohttp/_websocket.c(1475): warning C4996: 'Py_OptimizeFlag': deprecated in 3.12
  aiohttp/_websocket.c(3042): error C2039: 'ob_digit': bir '_longobject' \x81yesi degil
  C:\Python312\include\cpython/longintrepr.h(87): note: '_longobject' bildirimine bakin
  aiohttp/_websocket.c(3097): error C2039: 'ob_digit': bir '_longobject' \x81yesi degil
  C:\Python312\include\cpython/longintrepr.h(87): note: '_longobject' bildirimine bakin
  aiohttp/_websocket.c(3238): error C2039: 'ob_digit': bir '_longobject' \x81yesi degil
  C:\Python312\include\cpython/longintrepr.h(87): note: '_longobject' bildirimine bakin
  aiohttp/_websocket.c(3293): error C2039: 'ob_digit': bir '_longobject' \x81yesi degil
  C:\Python312\include\cpython/longintrepr.h(87): note: '_longobject' bildirimine bakin
  aiohttp/_websocket.c(3744): error C2039: 'ob_digit': bir '_longobject' \x81yesi degil
  C:\Python312\include\cpython/longintrepr.h(87): note: '_longobject' bildirimine bakin
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for aiohttp
Failed to build aiohttp
ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects

All done!

@DevilXD
Copy link
Owner

DevilXD commented Oct 13, 2023

Hello. I'm not sure what am I looking at here. aiohttp doesn't need to be built from wheels. What's your operating system / platform you're trying to install this on?

@DevilXD DevilXD added the Help / Issue General or specific issues that just require some additional assistance to solve label Oct 13, 2023
@falcon56321
Copy link
Author

Hello. I'm not sure what am I looking at here. aiohttp doesn't need to be built from wheels. What's your operating system / platform you're trying to install this on?

I'm trying to install it on Windows operating system and Ghost Specter is Windows 10 22h2 version on my own computer. I was using Windows Atlas before the format, it was fine, but now it gives this error.

@DevilXD
Copy link
Owner

DevilXD commented Oct 14, 2023

This bug might be beyond my influence, as it refers to a dependency I don't maintain. If a simple pip install aiohttp<4.0 results in that error, please file an issue under the https://github.com/aio-libs/aiohttp/ project instead.

@JustArtiom
Copy link

JustArtiom commented Oct 15, 2023

Visual Studio C++ Build tools are missing, you need to download them!

AioHTTP isnt supported for python 3.12

@DevilXD
Copy link
Owner

DevilXD commented Oct 15, 2023

According to aio-libs/aiohttp#7229, Python 3.12 is supported, but not in the latest PyPi version of the library. The support only exists in the latest development build. This gives you two options:

  • Install that build instead - see the comments under the linked issue.
  • Use Python 3.11.

Besides this, as I said, this is an "outside issue" that I cannot help more with, other than what the above says.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help / Issue General or specific issues that just require some additional assistance to solve
Projects
None yet
Development

No branches or pull requests

3 participants