pyconfig.h not found error, while compiling python/kivy via buildozer

447 views
Skip to first unread message

Azim Mirzoev

unread,
Jul 28, 2020, 9:50:46 AM7/28/20
to Kivy users support
I am new to programming and made a simple app.
Trying to get it in apk, but fails every time with a message:
#include pyconfig.h
pyconfig.h not found

I have searched a web for a solution, and have tried a lot but nothing helps.
I have tried:

sudo apt-get install python-dev 
output:
(Note, python2.7-is-dev-python2.7 instead of python-dev (messages occurs all the time))
sudo apt-get install python3.8-dev
sudo apt-get install python3-dev
sudo find / -name pyconfig.h
output:
have pyconfig.h
sudo python2.7-config --includes
output:
-I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/python2.7

Input:
sudo cp /usr/include/python2.7 /usr/include/python2.7/pyconfig.h
output:
-I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/python2.7

Made same with python3.8
sudo python3.8-config --includes
output:
-I/usr/include/python3.8  -I/usr/include/python3.8 

I have been doing everything, but nothing seems to work out.


Please, help me with this issue!

Robert Flatt

unread,
Jul 28, 2020, 1:10:42 PM7/28/20
to Kivy users support
Two issues.
1) You are mixing Python2 (usually refered to as python) and Python3 (refered to as python3). Use Python3.
Installing python3 is not something I can help you with.

2) Once you have a Python3 enviromnent, follow the buildozer install instructions.

Azim Mirzoev

unread,
Jul 28, 2020, 1:39:56 PM7/28/20
to Kivy users support
The thing is that python2 installs by itself as a default, when installing cython. So I do not install python2 manually as I do it for python3

ZenCODE

unread,
Jul 28, 2020, 3:23:11 PM7/28/20
to Kivy users support
Replace the python with python3

    sudo apt-get install python3-dev 

planckp...@gmail.com

unread,
Jul 28, 2020, 8:23:43 PM7/28/20
to Kivy users support
And use Python3's

pip3 install whatever

not Python2's

pip install whatever

Azim Mirzoev

unread,
Jul 29, 2020, 3:35:28 AM7/29/20
to Kivy users support
Thank you sir, the problem was that I had to install all the packages of kivy by my own manually. https://youtu.be/zusbWcWddmA
Whoever faces with this problem and needs a help, follow the link I left.

вторник, 28 июля 2020 г., 17:23:43 UTC-7 пользователь planckp...@gmail.com написал:
Reply all
Reply to author
Forward
0 new messages