furious-luke / django-address

A Django address model and field. Addresses may be specified by address components or by performing an automatic Google Maps lookup.
BSD 3-Clause "New" or "Revised" License
431 stars 181 forks source link

Python3.9 integration #176

Open djruesch opened 2 years ago

djruesch commented 2 years ago

File "../.venv/lib/python3.9/site-packages/address/models.py", line 314, in init super(AddressField, self).init(*args, **kwargs) TypeError: init() got multiple values for argument 'to'

furious-luke commented 2 years ago

Hi @djruesch! Thanks for the issue report. I think we're going to need some more information, however. The included Docker setup already runs on Python 3.9, so I'm confident that Django Address supports Python 3.9.

Just as a guess, the error you've reported looks a lot like you've attempted to initialise the AddressField field and supplied your own value for to, most likely as a positional argument. Please remove that argument and see if that fixes your issue.

djruesch commented 2 years ago

Sounds good. I will give it a try. Thanks.

On Fri, May 6, 2022, 19:55 Luke Hodkinson @.***> wrote:

Hi @djruesch https://github.com/djruesch! Thanks for the issue report. I think we're going to need some more information, however. The included Docker setup already runs on Python 3.9, so I'm confident that Django Address supports Python 3.9.

Just as a guess, the error you've reported looks a lot like you've attempted to initialise the AddressField field and supplied your own value for to, most likely as a positional argument. Please remove that argument and see if that fixes your issue.

— Reply to this email directly, view it on GitHub https://github.com/furious-luke/django-address/issues/176#issuecomment-1120081573, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSGTFCJFUKTSISAOLZNT2LVIWWPRANCNFSM5VJLKH3A . You are receiving this because you were mentioned.Message ID: @.***>