pavelmaksimov / tapi-yandex-direct

Python библиотека API Яндекс Директ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Got an unexpected keyword argument 'encoding'

danila-panteleev opened this issue · comments

File "C:\Dev\yandex_direct_stats\venv\lib\site-packages\tapi\tapi.py", line 362, in get
return self._make_request("GET", *args, **kwargs)
File "C:\Dev\yandex_direct_stats\venv\lib\site-packages\tapi\tapi.py", line 300, in _make_request
result = self.api.process_response(response, **current_request_kwargs)
File "C:\Dev\yandex_direct_stats\venv\lib\site-packages\tapi_yandex_direct\tapi_yandex_direct.py", line 200, in process_response
data = self.response_to_native(response)
File "C:\Dev\yandex_direct_stats\venv\lib\site-packages\tapi_yandex_direct\tapi_yandex_direct.py", line 244, in response_to_native
return json.loads(response.content, encoding="utf8")
File "C:\Python39\lib\json_init
.py", line 359, in loads
return cls(**kw).decode(s)
TypeError: init() got an unexpected keyword argument 'encoding'

Если убрать аргумент "encoding" из вызова, все работает.