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

Failed building wheel on Python 3.11 - "longintrepr.h”: No such file or directory #413

Open
zy-zhou opened this issue Jul 17, 2023 · 3 comments

Comments

@zy-zhou
Copy link

zy-zhou commented Jul 17, 2023

Description

Failed building wheel for learn2learn using pip install learn2learn on Python 3.11. On Python 3.10 there is no problem. This seems to be caused by a Cython update cython/cython#4428.
Similar issues: aio-libs/aiohttp#6600, ParallelSSH/ssh2-python#174

Environment

OS: Windows 10
Python: 3.11.4

Logs

      building 'learn2learn.data.meta_dataset' extension
      creating build\temp.win-amd64-cpython-311
      creating build\temp.win-amd64-cpython-311\Release
      creating build\temp.win-amd64-cpython-311\Release\learn2learn
      creating build\temp.win-amd64-cpython-311\Release\learn2learn\data
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\Anaconda\envs\ai4science\include -ID:\Anaconda\envs\ai4science\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" /Tclearn2learn/data/meta_dataset.c /Fobuild\temp.win-amd64-cpython-311\Release\learn2learn/data/meta_dataset.obj
      meta_dataset.c
      learn2learn/data/meta_dataset.c(210): fatal error C1083: 无法打开包括文件: “longintrepr.h”: No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\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 learn2learn
@artths
Copy link

artths commented Aug 29, 2023

Same with Windows 11.

@seitolor
Copy link

Did host fix it ?

@pbsds
Copy link

pbsds commented Oct 11, 2023

Same on linux. Repro:

podman run -it --rm docker.io/library/python:3.11 /bin/bash -c "pip wheel learn2learn"

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

No branches or pull requests

4 participants