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

TypeError : decorator() takes 1 positional argument but 2 were given #116

Open
hyblid opened this issue Oct 30, 2023 · 0 comments
Open

TypeError : decorator() takes 1 positional argument but 2 were given #116

hyblid opened this issue Oct 30, 2023 · 0 comments

Comments

@hyblid
Copy link

hyblid commented Oct 30, 2023

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

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

1 participant