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

Fix error message explaining why a package cannot be installed #2448

Closed
wants to merge 1 commit into from

Conversation

hmaarrfk
Copy link
Contributor

@hmaarrfk hmaarrfk commented Apr 9, 2023

mamba install "pythran>=0.12.1"

                  __    __    __    __
                 /  \  /  \  /  \  /  \
                /    \/    \/    \/    \
███████████████/  /██/  /██/  /██/  /████████████████████████
              /  / \   / \   / \   / \  \____
             /  /   \_/   \_/   \_/   \    o \__,
            / _/                       \_____/  `
            |/
        ███╗   ███╗ █████╗ ███╗   ███╗██████╗  █████╗
        ████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗
        ██╔████╔██║███████║██╔████╔██║██████╔╝███████║
        ██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║
        ██║ ╚═╝ ██║██║  ██║██║ ╚═╝ ██║██████╔╝██║  ██║
        ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝╚═════╝ ╚═╝  ╚═╝

        mamba (1.4.2) supported by @QuantStack

        GitHub:  https://github.com/mamba-org/mamba
        Twitter: https://twitter.com/QuantStack

█████████████████████████████████████████████████████████████

Looking for: ["pythran[version='>=0.12.1']"]

warning  libmamba Cache file "/home/mark/mambaforge/pkgs/cache/1a6399ac.json" was modified by another program
warning  libmamba Cache file "/home/mark/mambaforge/pkgs/cache/8e383ab4.json" was modified by another program
conda-forge/noarch                                  11.8MB @ 275.4kB/s 43.1s
conda-forge/linux-64                                30.7MB @ 343.3kB/s 1m:29.9s

Pinned packages:
  - python 3.9.*

Could not solve for environment specs
The following packages are incompatible
└─ pythran >=0.12.1  is installable with the potential options
   ├─ pythran 0.12.1 would require
   │  ├─ beniget 0.4.* , which requires
   │  │  └─ gast >=0.5.0,<0.6.0 , which can be installed;
   │  └─ gast 0.5.* , which can be installed;
   ├─ pythran 0.12.1 would require
   │  └─ python >=3.10,<3.11.0a0 , which can be installed;
   ├─ pythran 0.12.1 would require
   │  └─ python >=3.11,<3.12.0a0 , which can be installed;
   └─ pythran 0.12.1 would require
      └─ python >=3.8,<3.9.0a0 , which can be installed.

The above example hits the incompatibility explained in conda-forge/pythran-feedstock#71

```
mamba install "pythran>=0.12.1"

                  __    __    __    __
                 /  \  /  \  /  \  /  \
                /    \/    \/    \/    \
███████████████/  /██/  /██/  /██/  /████████████████████████
              /  / \   / \   / \   / \  \____
             /  /   \_/   \_/   \_/   \    o \__,
            / _/                       \_____/  `
            |/
        ███╗   ███╗ █████╗ ███╗   ███╗██████╗  █████╗
        ████╗ ████║██╔══██╗████╗ ████║██╔══██╗██╔══██╗
        ██╔████╔██║███████║██╔████╔██║██████╔╝███████║
        ██║╚██╔╝██║██╔══██║██║╚██╔╝██║██╔══██╗██╔══██║
        ██║ ╚═╝ ██║██║  ██║██║ ╚═╝ ██║██████╔╝██║  ██║
        ╚═╝     ╚═╝╚═╝  ╚═╝╚═╝     ╚═╝╚═════╝ ╚═╝  ╚═╝

        mamba (1.4.2) supported by @QuantStack

        GitHub:  https://github.com/mamba-org/mamba
        Twitter: https://twitter.com/QuantStack

█████████████████████████████████████████████████████████████

Looking for: ["pythran[version='>=0.12.1']"]

warning  libmamba Cache file "/home/mark/mambaforge/pkgs/cache/1a6399ac.json" was modified by another program
warning  libmamba Cache file "/home/mark/mambaforge/pkgs/cache/8e383ab4.json" was modified by another program
conda-forge/noarch                                  11.8MB @ 275.4kB/s 43.1s
conda-forge/linux-64                                30.7MB @ 343.3kB/s 1m:29.9s

Pinned packages:
  - python 3.9.*

Could not solve for environment specs
The following packages are incompatible
└─ pythran >=0.12.1  is installable with the potential options
   ├─ pythran 0.12.1 would require
   │  ├─ beniget 0.4.* , which requires
   │  │  └─ gast >=0.5.0,<0.6.0 , which can be installed;
   │  └─ gast 0.5.* , which can be installed;
   ├─ pythran 0.12.1 would require
   │  └─ python >=3.10,<3.11.0a0 , which can be installed;
   ├─ pythran 0.12.1 would require
   │  └─ python >=3.11,<3.12.0a0 , which can be installed;
   └─ pythran 0.12.1 would require
      └─ python >=3.8,<3.9.0a0 , which can be installed.
```

The above example hits the incompatibility explained in
conda-forge/pythran-feedstock#71
@@ -1642,11 +1642,11 @@ namespace mamba
{
if (tn.depth() == 1)
{
write(" is requested and can be installed");
write(" is requested and can not be installed");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if this change is correct. but it looks like the proposed change is correct given the context of the code.

@Hind-M Hind-M requested a review from AntoinePrv April 11, 2023 09:26
@AntoinePrv
Copy link
Member

Hello @hmaarrfk and thanks for the feedback.

I have noticed this type of issue and unfortunately, this is not the right fix. The assumptions we make about conflicts are too simple, and we need another iteration to improve this.
This may also already be improved in main.

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

Successfully merging this pull request may close these issues.

2 participants