py-ipfs-http-client: Unsupported daemon version '0.12.2' (not in range: 0.4.3 \u2264 � < 0.5.0)
Hi i am new to IPFS and Python and while trying out to store data on ipfs i ran into some errors, please help me
here is my code:
import ipfshttpclient
client = ipfshttpclient.connect('/ip4/127.0.0.1/tcp/8080) # Connects to: /dns/localhost/tcp/5001/http
res = client.add('test.txt')
Here is the error:
ipfshttpclient.exceptions.VersionMismatch: Unsupported daemon version '0.8.0' (not in range: 0.4.18 \u2264 � < 0.5.0)
go-ipfs version: 0.12.2
Repo version: 12
Platform: Windows10
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 16 (1 by maintainers)
@jay0x5 I’ve seen similar comments in other places too – problem is, I just hate javascript. I went into my package files and changed the VERSION_MAXIMUM variable to “0.13.0”, line 19 in
client/__init__.py. After that it allows me to connect andadd(). I haven’t fully explored the consequence of this hack (I’m still trying to wrap my head around IPFS in general) – but I suppose if it would be so simple someone else would have done this already.It’s absolutely absurd that ipfs doesn’t have a working client in python
For anyone wondering, this is abandoned, I have been told by a “higher up”. Use subprocess and interact with the software through that, there’s no excuse to use the older version just to make it work with python. However, it doesn’t discredit the daemon.
@willcharlton yep! its abandoned 😦
@BobBorges Nice hack! i wish i knew it earlier 😦 Please keep me updated here or you may contact me on email: contactjay0x5@gmail.com would love to see how it goes!