ipfs-shipyard / py-ipfs-http-client

A python client library for the IPFS API
MIT License
678 stars 199 forks source link

ipfshttpclient.exceptions.VersionMismatch: Unsupported daemon version '0.8.0' (not in range: 0.4.23 ≤ … < 0.8.0) #282

Closed avatar-lavventura closed 1 year ago

avatar-lavventura commented 3 years ago

How could I solve ipfshttpclient.exceptions.VersionMismatch: Unsupported daemon version '0.8.0' (not in range: 0.4.23 ≤ … < 0.8.0) error? What may be the reason of this error?

>>> client = ipfshttpclient.connect()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/alper/venv/lib/python3.8/site-packages/ipfshttpclient/client/__init__.py", line 119, in connect
    assert_version(client.apply_workarounds()["Version"])
  File "/home/alper/venv/lib/python3.8/site-packages/ipfshttpclient/client/__init__.py", line 69, in assert_version
    raise exceptions.VersionMismatch(version, minimum, maximum)
ipfshttpclient.exceptions.VersionMismatch: Unsupported daemon version '0.8.0' (not in range: 0.4.23 ≤ … < 0.8.0)

$ pip freeze | grep ipfs
ipfshttpclient==0.7.0a1

$ pip freeze | grep daemon
daemon==1.2
python-daemon==2.3.0

Can we use py-ipfs-http-client along with ipfs version v0.8.0?

ntninja commented 3 years ago

It does talk about the go-IPFS daemon version, yes. :slightly_smiling_face:

For now just install the preview version and hope we get to release a proper version soon: pip install ipfshttpclient==0.8.0a1 !

avatar-lavventura commented 3 years ago

Thanks. Is it also recommended to install the master repo using pip install git+https://github.com/ipfs-shipyard/py-ipfs-http-client or should I stick with 0.8.0a1?

avatar-lavventura commented 2 years ago

It does talk about the go-IPFS daemon version, yes. 🙂

For now just install the preview version and hope we get to release a proper version soon: pip install ipfshttpclient==0.8.0a1 !

This issue is open since May. It will be helpful with a simple guidence to be clear.

Still [master-repo, v0.8.0a1, v0.8.0a2] gives following warning message:

~/venv/lib/python3.8/site-packages/ipfshttpclient/client/__init__.py:75: VersionMismatch: Unsupported daemon version '0.9.0' (not in range: 0.5.0 ≤ … < 0.9.0) warnings.warn(exceptions.VersionMismatch(version, minimum, maximum))

Will we able to use py-ipfs-http-client along with ipfs version 0.9.0? If yes, what is the proper way to do it?

kasteph commented 1 year ago

This actually looks like a duplicate of #313 and it seems to be an ongoing problem whenever kubo upgrades. For any ongoing discussions/issues for this topic, I'd like to defer to the other issue so that it's easier to have the info in one place and focus.

Thanks.

avatar-lavventura commented 1 year ago

@kasteph Since May 26 2021 there is no improvement in this issue, which is actually asked 1 yearbefore the linked issue https://github.com/ipfs-shipyard/py-ipfs-http-client/issues/313. There has not been any focus in this over 2 years.

kasteph commented 1 year ago

Hi @avatar-lavventura, thanks for your reply. I understand your concern and I have already started working on this issue here.

The decision to keep #313 open was arbitrary. This doesn't mean that this isn't a valid issue, however. I simply think that they are talking about a similar issue and I'm trying to tidy up the issue tracker so that code contributors can focus instead of having to sift through duplicate issues.

avatar-lavventura commented 1 year ago

@kasteph Thanks I appreciated your help!

Admski commented 1 year ago

SOLUTION!: What worked for me on mac 13.2.1 was de-installing ipfs completly from the system. Deleting all files even on /usr/local/bin. After that installing ipfs version 0.7.0. This was working and looked like this:

Initializing daemon... go-ipfs version: 0.7.0 Repo version: 10 System version: amd64/darwin Golang version: go1.14.4