conda-incubator / conda-store

Data science environments, for collaboration. ✨
https://conda.store
BSD 3-Clause "New" or "Revised" License
149 stars 50 forks source link

[BUG] - standalone environment to run conda-store fails on Windows 10 Professional #855

Closed richlysakowski closed 2 months ago

richlysakowski commented 3 months ago

Describe the bug

Creating a standalone environment to run conda-store fails on Windows 10 Professional. Running latest version of conda.

When I run the conda create commands, it fails with the LibMambaUnsatisifiableError below.

conda create --name conda_store -c conda-forge python conda pip conda-store-server

Channels:
 - conda-forge
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides fakechroot needed by conda-docker-0.0.1-pyh9f0ad1d_0

Could not solve for environment specs
The following packages are incompatible
└─ conda-store-server is not installable because there are no viable options
   ├─ conda-store-server [0.2.5|0.3.10|...|0.4.9] would require
   │  └─ conda-docker, which requires
   │     └─ fakechroot, which does not exist (perhaps a missing channel);
   ├─ conda-store-server [2023.10.1|2023.9.2|2024.1.1|2024.6.1] would require
   │  └─ __osx, which is missing on the system;
   └─ conda-store-server [2023.10.1|2023.9.2|2024.1.1|2024.6.1] would require
      └─ __linux, which is missing on the system.

Expected behavior

Environment builds without error on Windows 10 or Windows 11. Does not require Linux or OSX to run at all.

conda-store needs to be cross-platform and not require Linux, MacOSX or Windows-specific packages.

How to Reproduce the problem?

run the conda create command below:

conda create --name conda_store2 -c conda-forge python conda pip conda-store-server

Output

conda create --name conda_store2 -c conda-forge python conda pip conda-store-server
Channels:
 - conda-forge
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides fakechroot needed by conda-docker-0.0.1-pyh9f0ad1d_0

Could not solve for environment specs
The following packages are incompatible
└─ conda-store-server is not installable because there are no viable options
   ├─ conda-store-server [0.2.5|0.3.10|...|0.4.9] would require
   │  └─ conda-docker, which requires
   │     └─ fakechroot, which does not exist (perhaps a missing channel);
   ├─ conda-store-server [2023.10.1|2023.9.2|2024.1.1|2024.6.1] would require
   │  └─ __osx, which is missing on the system;
   └─ conda-store-server [2023.10.1|2023.9.2|2024.1.1|2024.6.1] would require
      └─ __linux, which is missing on the system.

Versions and dependencies used.

conda 24.5.0 python 3.11.4 node v18.12.1

Anything else?

No response

trallard commented 3 months ago

Thanks for reporting this issue @richlysakowski

🤔 conda-server should not install conda-docker unless run in a Linux OS. I can see our build and verification CI working fine for Windows (ref: https://github.com/conda-incubator/conda-store/actions/workflows/conda.yml) and upon closer inspection of our feedstock, it seems we are missing a win target so that might be the culprit (https://github.com/conda-forge/conda-store-feedstock/blob/0694535cae9cf594c91d27d86e8c1437963f175b/recipe/meta.yaml#L61)

@jaimergp do you spot anything else that might be causing this issue?

jaimergp commented 3 months ago

Looks like there are no windows packages on conda-forge? Might need to add it to noarch_platforms in conda-forge.yml.

trallard commented 3 months ago

Ah yes forgot about that too, seems we missed it (and by we I mean I) when we finished cleaning up the Windows paths stuff.

I can fix this next week.

richlysakowski commented 3 months ago

Thank you. I will check back next week. Conda-store looks really useful for professional software engineers who have to manage and deploy many production projects.

Ah yes forgot about that too, seems we missed it (and by we I mean I) when we finished cleaning up the Windows paths stuff.

I can fix this next week.

trallard commented 2 months ago

This is now fixed. Though we are making a release today https://github.com/conda-incubator/conda-store/issues/876 so I would suggest waiting until this is out to try and install conda-store