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

Building from buildozer resultes in TypeError: can only concatenate str (not "bytes") to str #37

Open
guysoft opened this issue Aug 15, 2020 · 3 comments

Comments

@guysoft
Copy link

guysoft commented Aug 15, 2020

Describe the bug
I am building the basic mapview example from the repo, I added

# (list) Garden requirements
garden_requirements = mapview

But when I build I get a build error.

Downloading http://github.com/kivy-garden/garden.mapview/archive/master.zip ...
Traceback (most recent call last):
  File "/home/guy/workspace/recycle_page/app/.buildozer/venv/bin/garden", line 189, in <module>
    GardenTool().main(sys.argv[1:])
  File "/home/guy/workspace/recycle_page/app/.buildozer/venv/bin/garden", line 71, in main
    options.func()
  File "/home/guy/workspace/recycle_page/app/.buildozer/venv/bin/garden", line 109, in cmd_install
    fd = self.download(opts.package)
  File "/home/guy/workspace/recycle_page/app/.buildozer/venv/bin/garden", line 170, in download
    data += buf
TypeError: can only concatenate str (not "bytes") to str

To Reproduce

main.py

from kivy_garden.mapview import MapView, MapMarker
from kivy_garden.mapview.clustered_marker_layer import ClusteredMarkerLayer
from kivy.app import App

class MapViewApp(App):
    def build(self):
        layer = ClusteredMarkerLayer()
        
        a = MapMarker()
        # mapview.add_marker(, cls=MapMarker)
        layer.add_marker(lon=32.092, lat=34.807, cls=MapMarker)
        
        mapview = MapView(zoom=11, lat=32.092, lon=34.807)
        mapview.add_widget(layer)
        return mapview

MapViewApp().run()

Buildozer add:

garden_requirements = mapview

You can also run the command explicitly:

garden install --app mapview

run

buildozer -v android debug deploy run

Expected behavior
Should build.

Logs/output

Downloading http://github.com/kivy-garden/garden.mapview/archive/master.zip ...
Traceback (most recent call last):
  File "/home/guy/workspace/recycle_page/app/.buildozer/venv/bin/garden", line 189, in <module>
    GardenTool().main(sys.argv[1:])
  File "/home/guy/workspace/recycle_page/app/.buildozer/venv/bin/garden", line 71, in main
    options.func()
  File "/home/guy/workspace/recycle_page/app/.buildozer/venv/bin/garden", line 109, in cmd_install
    fd = self.download(opts.package)
  File "/home/guy/workspace/recycle_page/app/.buildozer/venv/bin/garden", line 170, in download
    data += buf
TypeError: can only concatenate str (not "bytes") to str

Platform (please complete the following information):

  • OS: Ubuntu 20.04
  • Python version 3.8
  • master

Additional context
Latest kivy

@AndreMiras
Copy link
Contributor

Thanks for the bug report, but using this as a garden_requirements is no longer required.
Use it as normal requirements instead and make sure your buildozer version is up to date

@guysoft
Copy link
Author

guysoft commented Aug 17, 2020

Thanks used that as a workaround. version 1.2.0 .

@guysoft guysoft closed this as completed Aug 17, 2020
@guysoft guysoft reopened this Aug 17, 2020
@guysoft
Copy link
Author

guysoft commented Aug 17, 2020

Perhaps the buildozer init should not include garden_requirements field?

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