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

Running buildozer help crashes #813

Closed
AndreMiras opened this issue Feb 4, 2019 · 0 comments
Closed

Running buildozer help crashes #813

AndreMiras opened this issue Feb 4, 2019 · 0 comments
Assignees

Comments

@AndreMiras
Copy link
Member

Versions

  • Python: python3
  • OS: Ubuntu 18.04
  • Kivy: N/A
  • Cython: N/A
  • buildozer master e0d29f9

Description

Running buildozer help command crashes.
I suspect it's a bug introduced in our recent refactoring #806
Buildozer was installed with:

pip3 install --upgrade https://github.com/kivy/buildozer/archive/e0d29f9.zip

The error is:

TypeError: join() argument must be str or bytes, not 'NoneType'

See detailed log and trace below.

buildozer.spec

Command:

buildozer help

Spec file:
N/A

Logs

$ buildozer help
# Check configuration tokens
Usage:
    buildozer [--profile <name>] [--verbose] [target] <command>...
    buildozer --version

Available targets:
  android            Android target, based on python-for-android project (old toolchain)

Global commands (without target):
  distclean          Clean the whole Buildozer environment.
  help               Show the Buildozer help.
  init               Create a initial buildozer.spec in the current directory
  serve              Serve the bin directory via SimpleHTTPServer
  setdefault         Set the default command to run when no arguments are given
  version            Show the Buildozer version

Target commands:
  clean      Clean the target environment
  update     Update the target dependencies
  debug      Build the application in debug mode
  release    Build the application in release mode
  deploy     Deploy the application on the device
  run        Run the application on the device
  serve      Serve the bin directory via SimpleHTTPServer
Traceback (most recent call last):
  File "/home/andre/.local/bin/buildozer", line 11, in <module>
    load_entry_point('buildozer==0.38.dev0', 'console_scripts', 'buildozer')()
  File "/home/andre/.local/lib/python3.6/site-packages/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/home/andre/.local/lib/python3.6/site-packages/buildozer/__init__.py", line 1034, in run_command
    getattr(self, cmd)(*args)
  File "/home/andre/.local/lib/python3.6/site-packages/buildozer/__init__.py", line 1095, in cmd_help
    self.usage()
  File "/home/andre/.local/lib/python3.6/site-packages/buildozer/__init__.py", line 976, in usage
    mt = m.get_target(self)
  File "/home/andre/.local/lib/python3.6/site-packages/buildozer/targets/android.py", line 1231, in get_target
    return TargetAndroid(buildozer)
  File "/home/andre/.local/lib/python3.6/site-packages/buildozer/targets/android.py", line 59, in __init__
    self._build_dir = join(self.buildozer.platform_dir, 'build')
  File "/home/andre/.local/lib/python3.6/site-packages/buildozer/__init__.py", line 878, in platform_dir
    return join(self.buildozer_dir, self.targetname, 'platform')
  File "/usr/lib/python3.6/posixpath.py", line 94, in join
    genericpath._check_arg_types('join', a, *p)
  File "/usr/lib/python3.6/genericpath.py", line 149, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'NoneType'
@AndreMiras AndreMiras self-assigned this Feb 8, 2019
AndreMiras added a commit to AndreMiras/buildozer that referenced this issue Feb 8, 2019
This test should fail due to kivy#813. Next commit will fix it.
AndreMiras added a commit to AndreMiras/buildozer that referenced this issue Feb 8, 2019
This test should fail due to kivy#813. Next commit will fix it.
inclement added a commit that referenced this issue Feb 8, 2019
…elp_crashes

Unit tests buildozer --help command, refs #813
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

1 participant