-
Notifications
You must be signed in to change notification settings - Fork 126
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
Can't install pypi-dependencies
into path with spaces.
#1421
Comments
Hey @jacobj45, Because some of your dependencies are not build for "older" glibc versions Add this to the generated [system-requirements]
libc = "2.32" # verify your `__glibc` version by running `pixi info` This will result in a much faster solve and no need for any compiler to run. The issue related to improving this workflow is #346 |
@ruben-arts (Sorry for the late reply 😅) I have updated my pixi.toml[project]
name = "sentry-env"
version = "0.1.0"
description = "Add a short description here"
authors = ["J <[email protected]>"]
channels = ["conda-forge"]
platforms = ["linux-64"]
[tasks]
[dependencies]
[target.linux-64.dependencies]
python = ">=3.11"
pip = "*"
[system-requirements]
libc = "2.32"
... but output Pixi version: 0.23.0
Platform: linux-64
Virtual packages: __unix=0=0
: __linux=6.0.6=0
: __glibc=2.35=0
: __archspec=1=icelake
Cache dir: /home/myuser/.cache/rattler/cache
Auth storage: /home/myuser/.rattler/credentials.json
Project
------------
Name: sentry-env
Version: 0.1.0
Manifest file: /home/myuser/Documents/dummy3/pixi.toml
Config locations:
Last updated: 28-05-2024 22:34:16
Environments
------------
Environment: default
Features: default
Channels: conda-forge
Dependency count: 2
Dependencies: python, pip
Target platforms: linux-64 ... and I get the same error as before while adding packages. I also tried adding the package as per the docs: [system-requirements]
libc = { family="glibc", version="2.32" } That didn't work either. |
This But afterwards you need to have a compiler installed. It is hard to test for me locally as my base system has some comilers. But I believe you can add:
|
@ruben-arts Unfortunately, that didn't work either. But I was able to find out the root cause of the issue. It was due to the presence of space characters in the directory path. For example, I can't successfully build a Pixi env from I think this is a Pixi issue because I am able to install all dependencies when using |
I am also curious why setting |
The virtual packages reported by pixi info are based on your system and not on the system requirements of your project. |
Glad you found that, that indeed seems like something we should fix. |
pypi-dependencies
into path with spaces.
Would be nice to create a reproducer, as for me adding spaces to a directory does not make a difference on osx. :) |
Simplest sequence of steps that I can think of in order to reproduce the issue:
I am on Linux Pop!OS and using Python 3.12 |
This seems to be a more general issue (like conda/conda#186) with spaces in the path to the environment. I can reproduce this with just
Perhaps pixi should issue a warning (if not prevent) when creating environments in a path with spaces?
|
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
(Check below for
environment.yml
)Issue description
I am trying to create a new Pixi environment with Sentry dependencies installed. The dependencies are mentioned in this requirements file. I have also created the below environment YAML file with the same dependencies for convenience:
environment.yml
However, trying to run
pixi init --import
throws the following error:Expected behavior
A new Pixi environment with all the dependencies installed.
The text was updated successfully, but these errors were encountered: