-
Notifications
You must be signed in to change notification settings - Fork 49
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
Quirks installing spatialdata with pixi #870
Comments
I now try to install the latest version, aka spatialdata 0.3 First I tried to clone repo locally, and link it manually. I was not able to make this work. Second, I try linking the github repo directly [pypi-dependencies]
spatialdata = { git = "https://github.com/scverse/spatialdata.git" } This lead to the following issue: [dependencies]
python = ">=3.6,<3.10"
[pypi-dependencies]
spatialdata = { git = "https://github.com/scverse/spatialdata.git" }
❯ pixi install
× failed to solve the pypi requirements of 'default' 'osx-arm64'
├─▶ failed to resolve pypi dependencies
╰─▶ Because the current Python version (3.9.21) does not satisfy Python>=3.10,<3.13 and
spatialdata==0.3.1.dev20+gc206323 depends on Python>=3.10,<3.13, we can conclude that
spatialdata==0.3.1.dev20+gc206323 cannot be used.
And because only spatialdata==0.3.1.dev20+gc206323 is available and you require
spatialdata, we can conclude that your requirements are unsatisfiable.
× failed to solve the pypi requirements of 'default' 'osx-arm64'
├─▶ failed to resolve pypi dependencies
╰─▶ Because the current Python version (3.9.21) does not satisfy Python>=3.10,<3.13 and
spatialdata==0.3.1.dev20+gc206323 depends on Python>=3.10,<3.13, we can conclude that
spatialdata==0.3.1.dev20+gc206323 cannot be used.
And because only spatialdata==0.3.1.dev20+gc206323 is available and you require
spatialdata, we can conclude that your requirements are unsatisfiable. Following this comment I decide to force python >=3.10,<3.13, but it still ran into an error. [dependencies]
python = ">=3.10,<3.13"
[pypi-dependencies]
spatialdata = { git = "https://github.com/scverse/spatialdata.git" }
❯ pixi install
× failed to solve the pypi requirements of 'default' 'osx-arm64'
╰─▶ Build backend failed to determine requirements with `build_wheel()` (exit status: 1)
[stderr]
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/Users/jnimoca/Library/Caches/rattler/cache/uv-cache/builds-
v0/.tmpx6TjvT/lib/python3.12/site-packages/setuptools/build_meta.py", line 334, in
get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jnimoca/Library/Caches/rattler/cache/uv-cache/builds-v0/.tmpx6TjvT/lib/
python3.12/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
self.run_setup()
File "/Users/jnimoca/Library/Caches/rattler/cache/uv-cache/builds-v0/.tmpx6TjvT/lib/
python3.12/site-packages/setuptools/build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
File "/Users/jnimoca/Library/Caches/rattler/cache/uv-cache/builds-v0/.tmpx6TjvT/lib/
python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "<string>", line 50, in <module>
File "<string>", line 47, in _guard_py_ver
RuntimeError: Cannot install on Python version 3.12.8; only versions >=3.6,<3.10 are
supported. |
Hi, thanks for sharing this. @melonora and I are actually thinking to add a lockfile for pixi, so we started looking into it. This is mainly motivated by the fact that we cannot offer I'll comment the errors above:
I haven't seen this error before, not sure what's the problem here. 3.9 is quite a old version. I'll keep this error in mind in case I have an update to share.
We restrict
This is caused by this bug here: dask/dask#11146. We currently have to restrict the versions of Dask we can depend on. We reached out to the |
Thank you @LucaMarconato and @melonora! A lock file would be fantastic and user friendly solution. If there is anything I can test on my side, please let me know. Also, feel free to close this or move it into a discussion. |
It sounds great! As a disclaimer, we are not working actively on this, but probably the sooner we have this the better. For the moment I'd ask you please if you could try doing like what suggested in this post for the multiscale-spatial-image repo: spatial-image/multiscale-spatial-image#105 (comment) and give feedback there. My pixi gets stuck while trying to run |
Dear spatialdata devs,
I just switched to pixi, and really like it. However I am running with some issues specifically with
spatialdata
. I don't want to enforce this as a standard I understand why you prefer having pip install in the README. I just wanted to reach out in case you would know why this is happening. Feel free to disregard and tell me to use mamba hehe.After testing a variety of install commands I figured out one that installs `spatialdata 0.2.5.post0' reliably.
I will still post this in case it can help someone else, or devs could make this work more seamless :)
pixi list
Describe the bug
Trying to install spatialdata with pixi fails.
This same command worked before.
Expected behavior
A working environment
Desktop:
similar things I have tried
This actually worked!
Making it work with all the packages I want:
The text was updated successfully, but these errors were encountered: