Open cyberkarim opened 2 years ago
A few people have reported this issue, we weren't able to reproduce it yet, one user was able to work around it by resetting their environment (WSL) and reinstalling buildozer again following the documentation.
I reset WSL, installed buildozer and dependencies, created kivy example as a project without venv. SUCCESS! I DID NOT update setuptools. I also added ~/.local/bin at the beginning of PATH.
A setuptools update is suspected to be the issue, but hasn't been confirmed yet.
We are looking for clues to replicate the issue, could you please
1) Share the result of
pip3 list | grep setuptools
2) appclean and rebuild after changing requirements to remove the version pinning (it is one minor release ahead of the default which is the max)
requirements = python3,kivy
This is about helping us find a place to look, rather than fixing your issue. Thanks.
We are looking for clues to replicate the issue, could you please
1. Share the result of `pip3 list | grep setuptools` 2. appclean and rebuild after changing requirements to remove the version pinning (it is one minor release ahead of the default which is the max) `requirements = python3,kivy`
This is about helping us find a place to look, rather than fixing your issue. Thanks.
Yes sure 1 - setuptools 60.1.0 2 - same errors about _posixsubprocess module not found
A few people have reported this issue, we weren't able to reproduce it yet, one user was able to work around it by resetting their environment (WSL) and reinstalling buildozer again following the documentation.
I reset WSL, installed buildozer and dependencies, created kivy example as a project without venv. SUCCESS! I DID NOT update setuptools. I also added ~/.local/bin at the beginning of PATH.
A setuptools update is suspected to be the issue, but hasn't been confirmed yet.
I'm not using WSL, I have ubuntu distro installed seperately from windows via dual booting. I added the line : export PATH=$PATH:~/.local/bin/ at the end of my ~/.bashrc file and still having the same issue .
Two things to try:
1) This worked for somebody on Discord (but I don't understand why) pinning hostpython3==3.9.9 and python3==3.9.9
2) uninstall setuptools and install an older version, say 58.0.0
For each, clean then build. Please let me know what happens.
It turns out "worked" means built. It is possible step 1 will give a runtime error: ModuleNotFoundError: No module named 'kivy._clock
Two things to try:
1. This worked for somebody on Discord (but I don't understand why) pinning hostpython3==3.9.9 and python3==3.9.9 2. uninstall setuptools and install an older version, say 58.0.0
For each, clean then build. Please let me know what happens.
Your second suggestion helped a lot, and the modulenotfound error disappeared. I was able to generate .apk file and deployed the app on my device. Thank you for giving me the hint. Downgrading setupstools to 58.0.0 was the answer.
Thank you for testing. Another tester on Discord got the same result so I think we can be confident in this.
For somebody else reading this, I didn't yet figure out the critical version, it is probably higher than 58. That was just my be safe guess.
Thanks again.
Reinstalling older setuptool (58.0.0) worked for me as well.
Reinstalling an older version of setuptools worked for me too.
Just a tip: after downgrading setuptools, be sure that you really installed an older version. In my case, even after setting version 58.0.0 to be installed, it was installing 60.X.
First: pip3 uninstall setuptools && pip3 install setuptools=58.0.0
Second: pip3 list | grep setuptools
to check if 58.0.0 is really installed.
just you need to add the module before sdl2_ttf == 2.0.15, pillow if you put the modules after that it not working, I don't now why
example requirements = hostpython3==3.9.9,python3==3.9.9, requests, idna, chardet, charset_normalizer, urllib3, gcloud, oauth2client, requests-toolbelt,pyrebase, kivy==2.1.0, kivymd==1.1.1, sdl2_ttf == 2.0.15, pillow,
Versions
Description
I wasn't able to generate APK file for a very simple kivy app that doesn't import any external packages. It's a basic kivy GUI. i actually followed all the installation steps including dependencies, plugged in my android device with the developer mode turned on while the command "buildozer android debug deploy run" is running. It always mentions "ModuleNotFoundError: No module named '_posixsubprocess'. I actually tried installing subprocess32 on my system, added it in the requirement line in buildozer.spec. The error just keeps popping everytime
Command:
buildozer android debug deploy run
Spec file:
spec.txt