Buildozer Problem. I try to make apk file for andr

2019-06-10 08:33发布

问题:

    artur@DESKTOP-SMKQONQ:~/Suka$ ls
    buildozer.spec  main.py
    artur@DESKTOP-SMKQONQ:~/Suka$ buildozer android debug
    Traceback (most recent call last):
      File "/usr/local/bin/buildozer", line 10, in <module>
         sys.exit(main())
      File "/usr/local/lib/python2.7/dist- 
      packages/buildozer/scripts/client.py", line 13, in main
      Buildozer().run_command(sys.argv[1:])
      File "/usr/local/lib/python2.7/dist- 
         packages/buildozer/__init__.py", line 122, in __init__
      self.config.read(filename, "utf-8")
    TypeError: read() takes exactly 2 arguments (3 given)

I dont understand what wrong. I completely install all the packages for kivy and buildozer which are described there https://github.com/kivy/buildozer. Help me please!

回答1:

Thanks to davedwards. I`ve solved this problem by install buildozer version 0.37:

pip install --upgrade 
https://github.com/kivy/buildozer/archive/6b004f9778a312fed6908bceef605e4ef8c1efe9.zip

Actually, it is a bug with new version buildozer.