Closed bradley-evans closed 7 months ago
Okay. I found a "workaround" -- delete setup.py
from the root project directory. But how might I get buildozer
to play nicely with setup.py
?
Solved issue by replacing setup.py
in project with an analogous pyproject.toml
and correctly restructuring the project as an application rather than as a library.
Versions
Description
I have made a basic project skeleton
myapp
that replicates the general structure of my usual Python development flow, but adds Buildozer in for android targets. It looks like this.It's pretty simple. I have a
main.py
that just calls a function ingui/gui.py
(imported correctly up intogui/__init__.py
. Themain.py
looks like this:And
gui.py
:Logging is a boilerplate logger.
I am trying to compile this over into an
.apk
, and it does that successfully, but when run on the device or emulator (tried both), I get aModule not found: myapp
error. Inspecting the.apk
that gets generated, theassets/private.tar
folder only containsmain.py
(and no subfolders).buildozer.spec
Command:
Spec file:
Logs
The build output does not contain any problems. It builds successfully, it just doesn't have anything except
main.py
inassets/private.tar
. I will then get this output on run:Here's some (not after
clean
) build output, though.I'm particularly drawn to the line
I'm not sure that it's getting the
site-packages
correctly?