Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: ipfshttpclient.exceptions.VersionMismatch: Unsupported daemon version '0.7.0' #240

Closed
thelostone-mc opened this issue Sep 29, 2020 · 2 comments

Comments

@thelostone-mc
Copy link

Description

ipfshttpclient==0.6.0
image: ipfs/go-ipfs:v0.6.0

CI link: https://travis-ci.org/github/gitcoinco/web/builds/731291982

PR where I'm trying to get it to pass by upgrading ipfshttpclient -> 0.6.1
gitcoinco/web#7561

version = [0, 7, 0], minimum = [0, 4, 22], maximum = [0, 7, 0], blacklist = []
    def assert_version(version, minimum=VERSION_MINIMUM, maximum=VERSION_MAXIMUM, blacklist=VERSION_BLACKLIST):
    	"""Make sure that the given daemon version is supported by this client
    	version.
    
    	Raises
    	------
    	~ipfshttpclient.exceptions.VersionMismatch
    
    	Parameters
    	----------
    	version : str
    		The actual version of an IPFS daemon
    	minimum : str
    		The minimal IPFS daemon version to allowed
    	maximum : str
    		The maximum IPFS daemon version to allowed
    	"""
    	# Convert version strings to integer tuples
    	version = list(map(int, version.split('-', 1)[0].split('.')))
    	minimum = list(map(int, minimum.split('-', 1)[0].split('.')))
    	maximum = list(map(int, maximum.split('-', 1)[0].split('.')))
    
    	if minimum > version or version >= maximum:
>   		raise exceptions.VersionMismatch(version, minimum, maximum)
E     ipfshttpclient.exceptions.VersionMismatch: Unsupported daemon version '0.7.0' (not in range: 0.4.22 ≤ … < 0.7.0)
@thelostone-mc
Copy link
Author

Looks similar to #239

henrygong added a commit to henrygong/py-ipfs-http-client that referenced this issue Oct 12, 2020
Since the current release version of the IPFS daemon is 0.7.0 and VERSION_MAXIMUM uses a < operator, there is a version mismatch error (see bugs ipfs-shipyard#239 and ipfs-shipyard#240 ). Simplest fix is bumping max to 0.7.1
@ntninja
Copy link
Contributor

ntninja commented Oct 14, 2020

It's fixed in the 0.7.0a1 prerelease.

@ntninja ntninja closed this as completed Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants