Comments (17)
actually, what i did didn't work. let me see about that.
from pixi.
This pixi.toml
seems to work for me on osx-arm64
. Can you see if the same issue occurs with this one? Your original is missing the python
dependency.
[project]
name = "proj"
channels = ["conda-forge", "robostack-staging"]
platforms = ["linux-64", "osx-arm64"]
[dependencies]
python = "3.11"
ros-humble-ros-base = "*"
[pypi-dependencies]
pytest = "*"
Seems to be using this conda pytest
version:
pytest 8.2.2 pyhd8ed1ab_0 251 KiB conda pytest-8.2.2-pyhd8ed1ab_0.conda
from pixi.
My apologies. Yes, this still occurs when I add the missing python
dependency (both the version I have here and the one you posted above, which pins the version).
[project]
name = "proj"
channels = ["conda-forge", "robostack-staging"]
platforms = ["linux-64"]
[dependencies]
python = ">=3.10"
ros-humble-ros-base = "*"
[pypi-dependencies]
pytest = "*"
from pixi.
@alberthli - do you mean we need to update the ros-humble-launch-testing
package for humble?
from pixi.
I'm not 100% sure, but it might be a good start, since it seems like this exact bug was resolved about 1 month ago on the ROS2 side. If the package hasn't been updated on RoboStack since then, it's probably at least a necessary condition.
from pixi.
Package should be online in a few minutes (max 30 minutes). Then, can you run pixi update
and see if the issue persists?
from pixi.
The other workaround would be to downgrade pytest
I think.
from pixi.
Thanks, I'll give it a shot (is there any way for me to verify on my end whether the new package has gone online yet?).
I would downgrade pytest
, but it seems like the version is pinned on the ROS2 side. For instance, if I pin it to 8.0.0
in the pixi.toml
, I get
× failed to solve the pypi requirements of 'default' 'linux-64'
├─▶ failed to resolve pypi dependencies
╰─▶ Because you require pytest==8.0.0 and pytest==8.2.2, we can conclude that the requirements are unsatisfiable.
upon running pixi shell
.
from pixi.
In that case you probably can also remove pytest
in your pypi-dependencies
(if it's already installed).
from pixi.
In that case you probably can also remove
pytest
in yourpypi-dependencies
(if it's already installed).
In my case it seems to get pytest from conda, the pypi-dependencies does not seem to have an effect on osx-arm64 at least, probably included by the ROS base?
from pixi.
Interestingly, for me, whether or not I include pytest
in my pypi-dependencies
, pip show pytest
always indicates that pytest
8.2.2 is installed in the pixi shell. I also have as the conda
version:
pytest 8.2.2 pyhd8ed1ab_0 conda-forge
The conda
version is the same either way as well.
from pixi.
Interestingly, for me, whether or not I include
pytest
in mypypi-dependencies
,pip show pytest
always indicates thatpytest
8.2.2 is installed in the pixi shell. I also have as theconda
version:pytest 8.2.2 pyhd8ed1ab_0 conda-forge
The
conda
version is the same either way as well.
Yeah the pypi dependencies for pytest don't do anything because the base includes: https://prefix.dev/channels/robostack-staging/packages/ros-humble-ament-cmake-pytest
And that pulls in the conda pytest. During the pypi resolve we use the conda version so the pypi version is never installed.
from pixi.
OK, that makes sense. Any clue why this bug seems to affect linux-64
but not osx-arm64
?
My current workaround is to define some workaround
task that downgrades pytest
after the environment is set up, but I would love to be able to simply build the environment without issue.
from pixi.
@alberthli I am quite sure that you can just define pytest = 8.0
or some other older version in your dependencies (NOT pypi-dependencies), and things would work (as a workaround). I am working on updating the packages in ros-humble so that this is fixed.
Try this:
[project]
name = "proj"
channels = ["conda-forge", "robostack-staging"]
platforms = ["linux-64"]
[dependencies]
python = ">=3.10"
ros-humble-ros-base = "*"
pytest = "8.0.*" # or whatever older version works!
from pixi.
Ah, thank you for the obvious solution - I completely forgot to try specifying its version as a non-pypi dependency.
from pixi.
Do you think we could close this as this is a ros-humble issue :)?
from pixi.
I would be OK closing it as long as I had another issue/PR that I could track - does another one exist? If not, I could open it and reference this issue in it.
from pixi.
Related Issues (20)
- Installing with cargo according to the documentation fails because of multiple possible binaries
- Maintain Relative Paths in pixi.toml When Using Pixi Commands
- pyarrow breaks when updating from 15 to 16 HOT 5
- Add pixi entry to tldr-pages HOT 1
- Pixi shell zsh behaves weirdly: e.g. can't do `ctrl+p` to see previous command, can't edit prompt with backspace...
- Docs: Create section about how to use R with Pixi
- "No candidates found" message doesn't give full package name with periods HOT 1
- pixi run does not support --manifest-path, even though the help says it does HOT 2
- Colorize package info in 'pixi search <pkg name>'
- All commands fail for private registry HOT 2
- 🥇 Win the SciPy 2024 - prefix.dev puzzle 🧩 HOT 1
- Pypi auth with `pixi auth login`
- Pixi cannot detect `glibc` 2.39 on gentoo but micromamba can HOT 5
- Feature Idea: `pixi env` "conda workflow" HOT 10
- Docs: Multitasking/Background tasks
- Windows MSI default installation needs '--force' to update HOT 1
- pixi add ollama not working correctly but pixi add --pypi "ollama" works HOT 2
- `pixi init` always writes to `pyproject.toml` if it exists HOT 1
- autocomplete `pixi shell --environment`
- `pixi self-update` error with symlink
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pixi.