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

ig_assets version 2.2.2 incompatible. Needs to be in range [2.0.6, 2.2.1) #355

Open
taylorlulu opened this issue Feb 25, 2024 · 6 comments

Comments

@taylorlulu
Copy link

taylorlulu commented Feb 25, 2024

When I'm trying to run the igibson 1.4.0, it failed due the following errer:
image

ig_assets version 2.2.2 incompatible. Needs to be in range [2.0.6, 2.2.1)

I can't find where to download the older vision of ig_assets, from the https://storage.googleapis.com/gibson_scenes/assets_igibson.tar.gz I can only download the latest version of assets which is 2.2.2. How can I download the older version of ig_assets?

@nblkStudy
Copy link

Could you solve it? I'm facing the same issue.

@taylorlulu
Copy link
Author

taylorlulu commented Apr 25, 2024

@nblkStudy I solved the problem by directly modify the file, "ig_assets version 2.2.2 incompatible. Needs to be in range [2.0.6, 2.2.1)" to "ig_assets version 2.2.2 incompatible. Needs to be in range [2.0.6, 2.2.3)". It worked out then. I'm not sure will it cause some further issue.

@cgokmen
Copy link
Collaborator

cgokmen commented Apr 26, 2024

It seems to me as though the current version on our main branch (e.g. 2.2.2) is compatible with the 2.2.2 version of the assets, no? Why do you need to use the 2.2.0 version of iGibson?

@taylorlulu
Copy link
Author

taylorlulu commented Apr 27, 2024

@cgokmen Maybe the problem comes from

iGibson/igibson/__init__.py

Lines 101 to 114 in 7d95982

MIN_ASSETS_VERSION_INCL = "2.0.6"
# Compatible with releases for same major/minor/patch:
MAX_ASSETS_VERSION_EXCL = "%d.%d.%d" % (_PARSED_VERSION.major, _PARSED_VERSION.minor, _PARSED_VERSION.micro + 1)
if os.path.exists(assets_path):
_assets_version = get_version(assets_path)
assert (
packaging.version.Version(MIN_ASSETS_VERSION_INCL)
<= _assets_version
< packaging.version.Version(MAX_ASSETS_VERSION_EXCL)
), "ig_assets version %s incompatible. Needs to be in range [%s, %s)" % (
str(_assets_version),
str(MIN_ASSETS_VERSION_INCL),
str(MAX_ASSETS_VERSION_EXCL),
)

As I'm using the older version of iGibson. So the MAX_ASSETS_VERSION_EXCL may be smaller than 2.2.2. However the only version available is 2.2.2.

@cgokmen
Copy link
Collaborator

cgokmen commented Apr 27, 2024

I think removing this check for those versions particularly won't break anything, but why do you need to be at an older version of iGibson? Both you and @nblkStudy .

@taylorlulu
Copy link
Author

@cgokmen I'm using iGibson 2.2.0. Since the request of repository I'm working on is to install iGibson==2.2.0. I'm not sure if I'm using the latest of version of iGibson will bring some potential Issues.

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

3 participants