Closed asm201 closed 4 years ago
Hi @asm201, thanks for the bug report!
Ideally you should make a more minimalist example.
More specifically I'd like you to make this part more clear so we don't have to guess what you passed in your sys.argv
:
if len(sys.argv) > 1:
source = sys.argv[1]
else:
source = "https://storage.googleapis.com/maps-devrel/google.json"
Also since this is already crashing on this line:
layer = GeoJsonMapLayer(source=source)
Please cut the rest to provide the most minimalist and deterministic example so we can help debugging. Deterministic would also mean not relying on a remote location content that could change any time, hence please share (attach) the actual JSON file content you've tried with rather than the potential URL of it (https://storage.googleapis.com/maps-devrel/google.json). I hope that makes sense
sorry i forgot to mention that this code is from exemple folder that comes with the garden.mapview, i also don't know what passed in sys.argv
Clear thank you. This repo needs some love anyway. I'll try to look over the weekend
After all the migration to the new repo, I could eventually play with it.
And I found/fixed an issue d62fd928b3c84f5c916279bef14e07151da5e8c2, but not the one you reported.
So to follow up on your issue, it sounds as if the json you were trying to use was corrupted.
So what I suspect is probably your IP is getting a capacha or something on this file.
If the issue is still present on your side I'll recommend you to try to access that file and see if the content is indeed a json. And if it is and you still have the issue, we can go through a more deep debugging session together
Edit:
Before you try again, you need to completely remove the old mapview you had and install thew new one using pip install mapview
Strange, i tried to run again the aplication and now i receive a new error not releated to sys.argv:
File "C:\Users\André\AppData\Local\Programs\Python\Python37\Lib\site-packages\kivy\garden\garden.mapview\mapview\geojson.py", line 289, in on_geojson
self.canvas_line.clear()
AttributeError: 'GeoJsonMapLayer' object has no attribute 'canvas_line'
Yes you're using an old version like I said. So uninstall it from garden and install it with pip
garden uninstall mapview
Then install the new version with pip:
pip install --user --upgrade mapview==1.0.4
For support question, you can use the support channel on Discord
sorry i'm having this same problem:
File "C:\Users\André\AppData\Local\Programs\Python\Python37\Lib\site-packages\kivy\garden\garden.mapview\mapview\geojson.py", line 289, in on_geojson
self.canvas_line.clear()
AttributeError: 'GeoJsonMapLayer' object has no attribute 'canvas_line'
where i can find the link to the Discord server
Yes and you're also up to date, why don't you uninstall this garden and use the one from pypi? https://github.com/kivy/kivy#support
thank you, and i already have done that. i used the commands you passed
Yes but your stack trace clearly shows the old garden module so it means it's taking over. Please share the command and output of your attempt to remove it via garden uninstall mapview
. Ping me on Discord as it's more suitable to support
I was trying to see the exemples documents but i receive this error:
the code i was trying to run was this one: