You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use TkinerMapView, but I got error about decorator().
I attached log during the execute example code in this repo.
OS : windows 10 and Python 3.11
-------------- Terminal -------------------------
PS C:\test\PythonWorkspace> & C:/Users/hwang/AppData/Local/Programs/Python/Python311/python.exe c:/test/PythonWorkspace/Udemy_tkinter/map_viewer.py
decorator begins
Started time
Function
durantion 1.1108834743499756
decorator ends
decorator begins
Started time
Function
durantion 1.1007261276245117
decorator ends
Traceback (most recent call last):
File "c:\test\PythonWorkspace\Udemy_tkinter\map_viewer.py", line 3, in
import tkintermapview
File "C:\Users\hwang\AppData\Local\Programs\Python\Python311\Lib\site-packages\tkintermapview_init_.py", line 3, in
from .map_widget import TkinterMapView
File "C:\Users\hwang\AppData\Local\Programs\Python\Python311\Lib\site-packages\tkintermapview\map_widget.py", line 13, in
import geocoder
File "C:\Users\hwang\AppData\Local\Programs\Python\Python311\Lib\site-packages\geocoder_init_.py", line 36, in
from geocoder.api import get, yahoo, bing, geonames, mapquest, google, mapbox # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hwang\AppData\Local\Programs\Python\Python311\Lib\site-packages\geocoder\api.py", line 13, in
from geocoder.freegeoip import FreeGeoIPQuery
File "C:\Users\hwang\AppData\Local\Programs\Python\Python311\Lib\site-packages\geocoder\freegeoip.py", line 95, in
class FreeGeoIPQuery(MultipleResultsQuery):
File "C:\Users\hwang\AppData\Local\Programs\Python\Python311\Lib\site-packages\geocoder\freegeoip.py", line 123, in FreeGeoIPQuery
@ratelim.greedy(10000, 60 * 60)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hwang\AppData\Local\Programs\Python\Python311\Lib\site-packages\ratelim_init_.py", line 41, in call
return decorator(self.wrapped_f, f)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: decorator() takes 1 positional argument but 2 were given
The text was updated successfully, but these errors were encountered:
I am trying to use TkinerMapView, but I got error about decorator().
I attached log during the execute example code in this repo.
OS : windows 10 and Python 3.11
-------------- Terminal -------------------------
PS C:\test\PythonWorkspace> & C:/Users/hwang/AppData/Local/Programs/Python/Python311/python.exe c:/test/PythonWorkspace/Udemy_tkinter/map_viewer.py
decorator begins
Started time
Function
durantion 1.1108834743499756
decorator ends
decorator begins
Started time
Function
durantion 1.1007261276245117
decorator ends
Traceback (most recent call last):
File "c:\test\PythonWorkspace\Udemy_tkinter\map_viewer.py", line 3, in
import tkintermapview
File "C:\Users\hwang\AppData\Local\Programs\Python\Python311\Lib\site-packages\tkintermapview_init_.py", line 3, in
from .map_widget import TkinterMapView
File "C:\Users\hwang\AppData\Local\Programs\Python\Python311\Lib\site-packages\tkintermapview\map_widget.py", line 13, in
import geocoder
File "C:\Users\hwang\AppData\Local\Programs\Python\Python311\Lib\site-packages\geocoder_init_.py", line 36, in
from geocoder.api import get, yahoo, bing, geonames, mapquest, google, mapbox # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hwang\AppData\Local\Programs\Python\Python311\Lib\site-packages\geocoder\api.py", line 13, in
from geocoder.freegeoip import FreeGeoIPQuery
File "C:\Users\hwang\AppData\Local\Programs\Python\Python311\Lib\site-packages\geocoder\freegeoip.py", line 95, in
class FreeGeoIPQuery(MultipleResultsQuery):
File "C:\Users\hwang\AppData\Local\Programs\Python\Python311\Lib\site-packages\geocoder\freegeoip.py", line 123, in FreeGeoIPQuery
@ratelim.greedy(10000, 60 * 60)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hwang\AppData\Local\Programs\Python\Python311\Lib\site-packages\ratelim_init_.py", line 41, in call
return decorator(self.wrapped_f, f)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: decorator() takes 1 positional argument but 2 were given
The text was updated successfully, but these errors were encountered: