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

None is not allowed for bootstrap #2201

Open
RobertFlatt opened this issue May 16, 2020 · 2 comments
Open

None is not allowed for bootstrap #2201

RobertFlatt opened this issue May 16, 2020 · 2 comments
Labels

Comments

@RobertFlatt
Copy link
Contributor

Versions

  • Python: 3.8.2
  • OS: Windows 10/WSL
  • Kivy: 2.0.0c2
  • Cython: 0.29.17

Description

Using p4a master 5/15/2020 and python-for-android==2020.4.29 neither from Buildozer

[INFO]:    # Your distribution was created successfully, exiting.
[INFO]:    Dist can be found at (for now) /home/bobf/.local/share/python-for-android/dists/fl__arm64-v8a
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:         fl: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, six, pyjnius, android, kivy, certifi), built for archs (arm64-v8a)
[INFO]:    fl has compatible recipes, using this one
Traceback (most recent call last):
  File "/home/bobf/.local/bin/p4a", line 8, in <module>
    sys.exit(main())
  File "/home/bobf/.local/lib/python3.8/site-packages/pythonforandroid/entrypoints.py", line 18, in main
    ToolchainCL()
  File "/home/bobf/.local/lib/python3.8/site-packages/pythonforandroid/toolchain.py", line 692, in __init__
    getattr(self, command)(args)
  File "/home/bobf/.local/lib/python3.8/site-packages/pythonforandroid/toolchain.py", line 155, in wrapper_func
    func(self, args, **kw)
  File "/home/bobf/.local/lib/python3.8/site-packages/pythonforandroid/toolchain.py", line 1111, in apk
    output, build_args = self._build_package(args, package_type='apk')
  File "/home/bobf/.local/lib/python3.8/site-packages/pythonforandroid/toolchain.py", line 1004, in _build_package
    ctx.prepare_bootstrap(bs)
  File "/home/bobf/.local/lib/python3.8/site-packages/pythonforandroid/build.py", line 480, in prepare_bootstrap
    raise TypeError("None is not allowed for bootstrap")
TypeError: None is not allowed for bootstrap

Worakaround is the long unrequired .p4a option:
--bootstrap=sdl2

buildozer.spec

Command:

// REPLACE ME: buildozer command ran? e.g. buildozer android debug

Spec file:

// REPLACE ME: Paste your buildozer.spec file here

Logs

// REPLACE ME: Paste the build ouput containing the error
@mnba
Copy link

mnba commented Aug 9, 2020

Not enough input provided, particularly bulldozer.spec is empty, particularly interesting in this regard is the value of bootstrap: it should be either 'kivy' or 'webview'. Probably you provided nothing which become None

@RobertFlatt
Copy link
Contributor Author

Using from p4a not from Buildozer ("Using p4a master 5/15/2020 and python-for-android==2020.4.29 neither from Buildozer")

Probably you provided nothing which become None

Exactly

Providing nothing was functional behavior until this release. Obviously the workaround is trivial, but the behavior did change.

@Julian-O Julian-O added the bug label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants