Skip to content
This repository has been archived by the owner on Apr 19, 2020. It is now read-only.

Syntax error in garden.mapview\mapview\__init__.py #51

Closed
viper10652 opened this issue Aug 20, 2018 · 2 comments
Closed

Syntax error in garden.mapview\mapview\__init__.py #51

viper10652 opened this issue Aug 20, 2018 · 2 comments

Comments

@viper10652
Copy link

The following test code on Python 3.6.5 Anaconda:

from kivy.garden.mapview import MapView
from kivy.app import App
class MapViewApp(App):
def build(self):
mapview = MapView(zoom=11, lat=50.6394, lon=3.057)
return mapview
MapViewApp().run()

generates the following error:

Traceback (most recent call last):
File "test_mapview.py", line 2, in
from kivy.garden.mapview import MapView
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 656, in _load_unlocked
File "", line 626, in load_backward_compatible
File "C:\Anaconda3\lib\site-packages\kivy\garden_init
.py", line 100, in load_module
return self.load_module(fullname, moddir)
File "C:\Anaconda3\lib\site-packages\kivy\garden_init
.py", line 104, in load_module
('', '', imp.PKG_DIRECTORY))
File "C:\Anaconda3\lib\imp.py", line 245, in load_module
return load_package(name, filename)
File "C:\Anaconda3\lib\imp.py", line 217, in load_package
return load(spec)
File "C:\Users\jmangelschots.kivy\garden\garden.mapview_init
.py", line 3, in
from .mapview import *
File "C:\Users\jmangelschots.kivy\garden\garden.mapview\mapview_init
.py", line 31, in
from mapview.view import MapView, MapMarker, MapLayer, MarkerMapLayer,
File "C:\Users\jmangelschots.kivy\garden\garden.mapview\mapview\view.py", line 209
lambda (i, m): m.lat < marker.lat,

SyntaxError: invalid syntax

@ghost
Copy link

ghost commented Aug 21, 2018

I have the same problem!

>>> import kivy.garden.mapview
[INFO   ] [Logger      ] Record log in /home/iku/.kivy/logs/kivy_18-08-20_46.txt
[INFO   ] [Kivy        ] v1.10.1
[INFO   ] [Python      ] v3.6.5 (default, Apr  1 2018, 05:46:30) 
[GCC 7.3.0]
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "<frozen importlib._bootstrap>", line 971, in _find_and_load
   File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
   File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
   File "/home/iku/.virtualenvs/k36/lib/python3.6/site-packages/kivy/garden/__init__.py", line 100, in load_module
     return self._load_module(fullname, moddir)
   File "/home/iku/.virtualenvs/k36/lib/python3.6/site-packages/kivy/garden/__init__.py", line 104, in _load_module
 ('', '', imp.PKG_DIRECTORY))
   File "/home/iku/.virtualenvs/k36/lib/python3.6/imp.py", line 245, in load_module
     return load_package(name, filename)
   File "/home/iku/.virtualenvs/k36/lib/python3.6/imp.py", line 217, in load_package
     return _load(spec)
   File "/home/iku/.kivy/garden/garden.mapview/__init__.py", line 3, in <module>
     from .mapview import *
   File "/home/iku/.kivy/garden/garden.mapview/mapview/__init__.py", line 31, in <module>
     from mapview.view import MapView, MapMarker, MapLayer, MarkerMapLayer, \
   File "/home/iku/.kivy/garden/garden.mapview/mapview/view.py", line 209
     lambda (i, m): m.lat < marker.lat,
            ^
 SyntaxError: invalid syntax

keigezellig added a commit to keigezellig/garden.mapview that referenced this issue Oct 20, 2018
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
Everything is tested through Docker to deal with system dependencies.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
Everything is tested through Docker to deal with system dependencies.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
Everything is tested through Docker to deal with system dependencies.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
Everything is tested through Docker to deal with system dependencies.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
Everything is tested through Docker to deal with system dependencies.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
Everything is tested through Docker to deal with system dependencies.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
Everything is tested through Docker to deal with system dependencies.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
Everything is tested through Docker to deal with system dependencies.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
Everything is tested through Docker to deal with system dependencies.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
Everything is tested through Docker to deal with system dependencies.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
Everything is tested through Docker to deal with system dependencies.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
Everything is tested through Docker to deal with system dependencies.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 9, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
Everything is tested through Docker to deal with system dependencies.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 10, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
Everything is tested through Docker to deal with system dependencies.
AndreMiras added a commit to AndreMiras/garden.mapview that referenced this issue Jan 10, 2019
Makes sure `MapView` object initializes under Python2.
Exports `DISPLAY` and `XDG_RUNTIME_DIR` so `tox` can initialize the UI.
Prepares the ground for the Python3 SyntaxError, refs kivy-garden#51, kivy-garden#54 and kivy-garden#55.
Everything is tested through Docker to deal with system dependencies.
Also fixes PEP8 F841, `latest_bbox_size` got unused in d00bfa4.
@AndreMiras
Copy link
Contributor

Fixed in #66

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

No branches or pull requests

2 participants