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

buildozer -h complains about NoneType target #849

Closed
nametoolong opened this issue Mar 9, 2019 · 1 comment
Closed

buildozer -h complains about NoneType target #849

nametoolong opened this issue Mar 9, 2019 · 1 comment

Comments

@nametoolong
Copy link

Versions

  • Python: 3.6.7
  • OS: KDE Neon latest (Ubuntu 18.04) amd64
  • Buildozer: 0.39

Description

("nonexistent" is my user name.)

nonexistent@nonexistent:~/project$ buildozer -h android
# 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 "/usr/local/bin/buildozer", line 11, in <module>
    load_entry_point('buildozer==0.39', 'console_scripts', 'buildozer')()
  File "/home/nonexistent/.local/lib/python3.6/site-packages/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/home/nonexistent/.local/lib/python3.6/site-packages/buildozer/__init__.py", line 1011, in run_command
    self.usage()
  File "/home/nonexistent/.local/lib/python3.6/site-packages/buildozer/__init__.py", line 976, in usage
    mt = m.get_target(self)
  File "/home/nonexistent/.local/lib/python3.6/site-packages/buildozer/targets/android.py", line 1228, in get_target
    return TargetAndroid(buildozer)
  File "/home/nonexistent/.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/nonexistent/.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'

We should check on -h and prevent that exception.

@AndreMiras
Copy link
Member

Dup of #812, fixed via #821
I recommend installing from recent master commit via:

pip install --upgrade https://github.com/kivy/buildozer/archive/4c2152b.zip

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

2 participants