TomSchimansky / TomSchimansky/TkinterMapView
TypeError : decorator() takes 1 positional argument but 2 were given
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 743
- Forks
- 110
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the import traceback through map_widget.py, geocoder/freegeoip.py, and ratelim/init.py, then reproduce the failure on Windows 10 with Python 3.11. Check the involved dependency versions; done means importing tkintermapview succeeds without the decorator TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100