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

problem #1031

Closed
leonidussaks opened this issue Mar 4, 2020 · 3 comments
Closed

problem #1031

leonidussaks opened this issue Mar 4, 2020 · 3 comments

Comments

@leonidussaks
Copy link

Versions

  • Python: 3.8.1
  • OS: Manjaro (Arch based)
  • Buildozer: 1.0

Description

I launched:
and got an error

buildozer.spec

Command:

buildozer android debug deploy run

Spec file:

[app]

title = alarmclock
package.name = alarmclock
package.domain = org.alarmclock
source.dir = .
version = 0.1
requirements = python3,kivy

Logs

/home/leonidussaks/Документы/python/kivy/alarm_clock/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3-libffi-openssl-sqlite3/armeabi-v7a__ndk_target_21/python3/Include/Python.h:8:10: fatal error: 
      'pyconfig.h' file not found
#include "pyconfig.h"
         ^~~~~~~~~~~~
1 error generated.
make: *** [/home/leonidussaks/Документы/python/kivy/alarm_clock/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2-python3/obj/local/armeabi-v7a/objs/main/start.o] Error 1

@kengsley1993
Copy link

kengsley1993 commented Mar 18, 2020

2020-03-19

same error i got
have you solve it?

2020-03-20

I have solution in my case, but not sure is that working for you.
If you are using virtualenv mode to buildozer, do not use.
First of all, install python3-dev (or python3.x-dev), for ubuntu:
sudo apt-get python3.x-dev
If not working, use command to find all pyconfig.h in your computer:
sudo find / -name pyconfig.h
and you will get some of the path of 'pyconfig.h', such as:
/usr/include/python3.6m /usr/include/python3.7m /usr/include/python3m ...
Then, use nano ~/.bashrc and add the path in that file:
export PATH="$PATH:/the/path/of/python3.xm"

@hvitis
Copy link

hvitis commented Mar 25, 2020

python.h is a part of python-dev versions so..
You could use venv with buildozer but you need to have python-dev inside it.
You can create it with:

virtualenv --python=/usr/bin/python3.6-dev <path>

( assuming that this is the python version you have. Check for the one you have and install if necessary )

@AndreMiras
Copy link
Member

Thanks for the report. The title and body are so poorly formatted. We cannot make a bug report with a title saying "problem"...
We may still have issues running buildozer in a venv, but I can't judge without having a complete log.
Please feel free to re-open with more logs (and proper title)

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