-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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]: Missing 'longintrepr.h' python 3.11 header file #13327
Comments
Try setting |
Ok. Thanks. # ...
/data/data/com.termux/files/usr/include/python3.11/cpython/modsupport.h:2:4: error: "this header file must not be included directly"
# error "this header file must not be included directly"
# ... |
This header is private and normally shouldn't be used by third party modules. I guess earlier longintrepr.h was included by one or more "public" Python headers and no CFLAGS tweaking was required. Python 3.11 release become stricter regarding this. |
Yep, probably. I'm surprised it even worked with 3.10 in my old venv. According to https://www.pycrypto.org/ it is long obsolete. The replacement PyCryptodome now works fine. |
Problem description
It seems as if some python header files are missing for the new python3.11. In particular:
longintrepr.h
. I did not find a python-dev or lib* package which might contain these.And I was unable to install the previous 3.10 version of python since it was not listed anymore, e.g. in
apt-cache madison python
. So, my previous virtual environment with dependencies currently is broken and can't really be reinstalled.Related: cython/cython#4461 ?
What steps will reproduce the bug?
Commands:
python3.11 -m venv venv source venv/bin/activate pip install pycrypto
Result:
Full Output
What is the expected behavior?
Working installation. Package with header files to install.
System information
termux-info:
Python version:
3.11.0
.The text was updated successfully, but these errors were encountered: