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 Fails to Install garden packages #1150

Closed
qodzero opened this issue Jun 11, 2020 · 5 comments
Closed

Buildozer Fails to Install garden packages #1150

qodzero opened this issue Jun 11, 2020 · 5 comments

Comments

@qodzero
Copy link

qodzero commented Jun 11, 2020

Versions

  • Python: 3.7.6
  • OS: Kubuntu 18.04
  • Buildozer: 1.2.0

Description

No matter which app i run, even a simple example app. The moment I add a garden package as a requirement, buildozer crashes. with

Traceback (most recent call last):
  File "/home/albi/CUCINA/.buildozer/venv/bin/garden", line 189, in <module>
    GardenTool().main(sys.argv[1:])
  File "/home/albi/CUCINA/.buildozer/venv/bin/garden", line 71, in main
    options.func()
  File "/home/albi/CUCINA/.buildozer/venv/bin/garden", line 109, in cmd_install
    fd = self.download(opts.package)
  File "/home/albi/CUCINA/.buildozer/venv/bin/garden", line 170, in download
    data += buf
TypeError: can only concatenate str (not "bytes") to str


Going through the error log, I noticed that this is because, by default buildozer install Kivy-Garden==0.1.1 which for some reason simply doesn't work. I downgraded my Kivy-Garden to 0.1.1 and ran a simple garden install navigationdrawer. and the above error is the result so now I know for sure that the error is due to buildozer downloading the wrong version of Kivy-Garden because if I use Kivy-Garden==0.1.4, which is what Kivy requires, I can download my garden flowers. Ofcourse when I run buildozer android debug. Buildozer goes and downloads Kivy-Garden==0.1.1 again and this error comes back.

Solution

Please, could you make buildozer download the correct Kivy-Garden, i.e version 1.4.0 as 0.1.1 simply doesn't work?

buildozer.spec

Command:

buildozer android debug

Spec file:

The default spec file is fine, simply add any garden requirement

Logs

Traceback (most recent call last):
  File "/home/albi/CUCINA/.buildozer/venv/bin/garden", line 189, in <module>
    GardenTool().main(sys.argv[1:])
  File "/home/albi/CUCINA/.buildozer/venv/bin/garden", line 71, in main
    options.func()
  File "/home/albi/CUCINA/.buildozer/venv/bin/garden", line 109, in cmd_install
    fd = self.download(opts.package)
  File "/home/albi/CUCINA/.buildozer/venv/bin/garden", line 170, in download
    data += buf
TypeError: can only concatenate str (not "bytes") to str
@AndreMiras
Copy link
Member

Garden is deprecated, now garden packages install like any other Python packages using the requirements list, refs #1142
Feel free to join Discord for support doing so if needed

@qodzero
Copy link
Author

qodzero commented Jun 23, 2020

Two questions then:

  1. What if the target garden flower hasn't been migrated yet?Things start to get confusing real quick (of course i could just install it to my app with the --app flag, but what about newbies)
  2. Why then does the garden.requirements spec option still exists when buildozer won't/can't use it? doesn't that confuse people even more?, naturally if someone sees that spec option they are likely to put their flower requirements there than on the actual pip requirements

@AndreMiras
Copy link
Member

Yes it's all valid points, the very few unpaid core dev that we're do the best to spend time on the most important things. This comes with a cost of taking some shortcuts like this one.

  1. yes theses flowers need to be migrated then
  2. the option no longer exists in (unreleased) master https://github.com/kivy/buildozer/pull/1142/files#diff-0b68bfd12f75175020450064eae77a55L47

@qodzero
Copy link
Author

qodzero commented Jun 23, 2020

understood..thanks for clearing that out

@CoutinhoElias
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants