-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
buildozer rjnius/jnius.c:196:12: fatal error: 'longintrepr.h' file not found #2977
Comments
I got the same error message and I am using Python version 3.12.2. For me, Pygame can't be compiled because it doesn't find longintrepr.h. |
Moved to @Sytse45 @Blobinius this is not happening on our CI and my side, can you please confirm that Can you please also confirm your Cython version and if you're running |
I have the same issue with python 3.8, jnius cannot compile. |
Hi, did anyone manage to solve it? because I believe I have the same problem |
Found a temporary solution OR Install buildozer not with pipy repository but |
hello, i think i have the same problem, i tried executing the commands (in google colab) but got no results, has anyone got another solution? thanks |
Make sure that you are using latest Buildozer, currently 1.5.0. To check: If not please update Buildozer and dependencies:
|
hello, i found a solution in google colab: i wasn't doing the export path thing, here's a way without it: instead of doing "buildozer init" or "buildozer android debug", do: /root/.local/bin/buildozer init i didn't do the export path cause im a bit newbie sorry, that is a solution to not do the export path |
I'm having the same issue with the "longintrepr.h", but mine is caused by SDL2. |
I was able to address the "longintrepr.h" issue and build PyGame by changing the requirements to python3==3.10.12,kivy==2.3.0,hostpython3==3.10.12,pyjnius==1.5.0 Thanks! |
just gonna comment, this works for me as well. HOWEVER I had to pygamebuilt.mp4reference video: https://www.youtube.com/watch?v=L6XOqakZOeA |
Still suffer from this problem (including temporary solution). Any alternative solution? |
update video to show you how I did it https://www.youtube.com/watch?v=76ZGpuMocNs |
Make sure you have the needed packages. Can be found here. |
Thank you, kuzeyron. Buildozer doesn't complain anymore about a missing longintrepr.h file. |
Awesome! Closing this ticket as completed. |
Software Versions
~/.local/lib/python3.9/site-packages/kivy/__init__.py
Describe the bug
After buildozer failed in updating my PyQRS program (in contrast to one month ago), I narrowed the problem down to the following:
buildozer -v android debug
fails to produce an.apk
file from the simple kivy app 'pong' and with the defaultbuildozer.spec
file (from buildozer version 1.5.0).Expected behavior
I expect to find an .apk file as a result.
To Reproduce
A simple kivy app (Pong, see next section) runs ok when issuing the command
python3 main.py
, but buildozer fails with the fatal error:jnius/jnius.c:196:12: fatal error: 'longintrepr.h' file not found
.In the
buildozer.spec
file, generated by buildozer 1.5.0, I only changed the first two uncommented lines intotitle = Pong
andpackage.name = pong
.Code and Logs and screenshots
The file
main.py
for the kivy app 'Pong' (without apong.kv
file):The last relevant output lines:
Last part of the log file:
Additional context
Searching on internet brought me to https://stackoverflow.com/questions/74979674/gensim-install-in-python-3-11-fails-because-of-missing-longintrepr-h-file, where a missing
longintrepr.h
file was attributed to the use of python 3.11.The text was updated successfully, but these errors were encountered: