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

Building on Python 3.11 #15

Closed
SnakeCharmed opened this issue Feb 16, 2023 · 4 comments
Closed

Building on Python 3.11 #15

SnakeCharmed opened this issue Feb 16, 2023 · 4 comments

Comments

@SnakeCharmed
Copy link

pip install git+https://github.com/dengwirda/inpoly-python.git errors out with:
inpoly\inpoly_.c(215): fatal error C1083: Cannot open include file: 'longintrepr.h': No such file or directory

Apparently this is well known, e.g.:
cython/cython#4461
and involves longintrepr.h moving from Include/longintrepr.h to Include/cpython/longintrepr.h.

Beyond this, I don't know what I'm doing, but I tried:

  • Changing the line in inpoly_.c:
    #include "longintrepr.h"
    to
    #include "cpython/longintrepr.h"

  • Rebuilding things completely with:
    python setup.py build_ext --inplace

... and neither worked, and I'm already beyond what I really understand.

@jreniel
Copy link

jreniel commented Apr 25, 2023

I also got this error once, but I think doing pip install cython fixed it. Could you try that?
Thanks!

@krober10nd
Copy link
Collaborator

thanks Jaime, yes that worked for me too.

@dengwirda
Copy link
Owner

Resolved by @jreniel.

@jreniel
Copy link

jreniel commented Dec 27, 2023

One small comment, a more thorough solution is to switch the build system to poetry as in #17

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