GithubHelp home page GithubHelp logo

Comments (17)

wolfv avatar wolfv commented on August 14, 2024 1

actually, what i did didn't work. let me see about that.

from pixi.

tdejager avatar tdejager commented on August 14, 2024

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.

alberthli avatar alberthli commented on August 14, 2024

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.

wolfv avatar wolfv commented on August 14, 2024

@alberthli - do you mean we need to update the ros-humble-launch-testing package for humble?

from pixi.

alberthli avatar alberthli commented on August 14, 2024

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.

wolfv avatar wolfv commented on August 14, 2024

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.

wolfv avatar wolfv commented on August 14, 2024

The other workaround would be to downgrade pytest I think.

from pixi.

alberthli avatar alberthli commented on August 14, 2024

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.

wolfv avatar wolfv commented on August 14, 2024

In that case you probably can also remove pytest in your pypi-dependencies (if it's already installed).

from pixi.

tdejager avatar tdejager commented on August 14, 2024

In that case you probably can also remove pytest in your pypi-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.

alberthli avatar alberthli commented on August 14, 2024

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.

tdejager avatar tdejager commented on August 14, 2024

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.

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.

alberthli avatar alberthli commented on August 14, 2024

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.

wolfv avatar wolfv commented on August 14, 2024

@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.

alberthli avatar alberthli commented on August 14, 2024

Ah, thank you for the obvious solution - I completely forgot to try specifying its version as a non-pypi dependency.

from pixi.

tdejager avatar tdejager commented on August 14, 2024

Do you think we could close this as this is a ros-humble issue :)?

from pixi.

alberthli avatar alberthli commented on August 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.