TypeError: __init__() got an unexpected keyword argument 'allowed_methods'
i keep getting below error on raspberry pi with python 2.7.16
Traceback (most recent call last):
File "orders.py", line 10, in
I'm started getting this error too, on Mac OS with Python 3.8.
Me too
Can you guys help out
I'm started getting this error too, on Mac OS with Python 3.8.
Did you get the solution?
you can solve this issue by upgrading urllib3 to 1.26.x
This has to be handled better than this....When SDK version is upgraded, either dependencies need to be upgraded or at least appropriate information need to be mentioned in RELEASE NOTES
why don't you guys use Curl in python
Was this issue solved.Am getting this error as well
File "<console>", line 2, in <module>
File "/usr/local/lib/python3.7/site-packages/square/client.py", line 248, in __init__
user_agent_detail=user_agent_detail)
File "/usr/local/lib/python3.7/site-packages/square/configuration.py", line 68, in __init__
super().set_http_client(self.create_http_client())
File "/usr/local/lib/python3.7/site-packages/square/configuration.py", line 109, in create_http_client
response_factory=super().http_response_factory
File "/usr/local/lib/python3.7/site-packages/apimatic_requests_client_adapter/requests_client.py", line 42, in __init__
retry_methods, verify)
File "/usr/local/lib/python3.7/site-packages/apimatic_requests_client_adapter/requests_client.py", line 70, in create_default_http_client
status_forcelist=retry_statuses, allowed_methods=retry_methods)
TypeError: __init__() got an unexpected keyword argument 'allowed_methods'
Hi @Murithijoshua
What version of the SDK are you using? Can you share the code you are using to invoke the SDK that is causing this error?
We also suggest posting questions to our Developer Forums as it is more widely monitored, and has active activity from Square Employees and developers in the Community.
Cheers!
@zenmasterjobo I found the solution, I just used python requests instead.Thanks
Closing this issue, but if anyone runs into this problem again, please feel free to re-open!
Thanks :)