ipfshttpclient.exceptions.StatusError: HTTPError: 405 Client Error: Method Not Allowed for url

Hi, i am trying to use ipfs-api for python https://github.com/ipfs-shipyard/py-ipfs-http-client but i get an error. I installed ipfs, started the daemon via windows cmd and installed the ‘ipfshttpclient’ library. The code I run is the following:

import ipfshttpclient

client = ipfshttpclient.connect()

but i get the following error:

Traceback (most recent call last):
File “C:\Users\loren\AppData\Local\Programs\Python\Python310\lib\site-packages\ipfshttpclient\http.py”, line 266, in do_raise_for_status
response.raise_for_status()
File “C:\Users\loren\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\models.py”, line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 405 Client Error: Method Not
Allowed for url: http://localhost:5001/api/v0/version?stream-channels=true The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “c:\Users\loren\OneDrive\Desktop\ipfs\main.py”, line
3, in
client = ipfshttpclient.connect()
File "C:\Users\loren\AppData\Local\Programs\Python\Python310\lib\site-packages\ipfshttpclient\client_init
.py", line 101, in connect
version_str = client.version()[“Version”]
File “C:\Users\loren\AppData\Local\Programs\Python\Python310\lib\site-packages\ipfshttpclient\client\base.py”, line 15, in wrapper
result = func(*args, **kwargs)
File “C:\Users\loren\AppData\Local\Programs\Python\Python310\lib\site-packages\ipfshttpclient\client\miscellaneous.py”, line 204, in version
return self._client.request(‘/version’, decoder=‘json’,
**kwargs)
File “C:\Users\loren\AppData\Local\Programs\Python\Python310\lib\site-packages\ipfshttpclient\http.py”, line 51, in wrapper
return func(self, *args, **merged)
File “C:\Users\loren\AppData\Local\Programs\Python\Python310\lib\site-packages\ipfshttpclient\http.py”, line 385, in request
res = self._request(method, url, params, stream, files, headers,
File “C:\Users\loren\AppData\Local\Programs\Python\Python310\lib\site-packages\ipfshttpclient\http.py”, line 307, in _request
self._do_raise_for_status(res)
File “C:\Users\loren\AppData\Local\Programs\Python\Python310\lib\site-packages\ipfshttpclient\http.py”, line 286, in _do_raise_for_status
six.raise_from(exceptions.StatusError(error), error)
File “”, line 3, in raise_from
ipfshttpclient.exceptions.StatusError: HTTPError: 405 Client Error: Method Not Allowed for url: http://localhost:5001/api/v0/version?stream-channels=true

I am having same problem here. have you found and solution yet?

I think you might have a better chance finding an answer in the GitHub repo. I saw you already opened an issue.