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

Cannot create simple environment with custom environment.yml file #363

Open
nik123 opened this issue Aug 26, 2024 · 1 comment
Open

Cannot create simple environment with custom environment.yml file #363

nik123 opened this issue Aug 26, 2024 · 1 comment

Comments

@nik123
Copy link

nik123 commented Aug 26, 2024

I'm trying to create conda environment using custom environment file with setup-miniconda action and I fail.

My github aciton file looks the following:

name: my-conda-env

on: pull_request

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: conda-incubator/setup-miniconda@v3
      with:
        activate-environment: my-conda-env
        environment-file: conda-env.yml
        python-version: 3.10
        auto-activate-base: false

I've created the following environment file:

name: my-conda-env
channels:
  - defaults
dependencies:
  - python=3.10
  - pip:
    - numpy==1.26.3
    - pandas==2.1.4

However, when I run Github workflow I get the following error:

  PackagesNotFoundError: The following packages are not available from current channels:
  
    - python[version='3.1.*,3.10.*']
@jaimergp
Copy link
Member

jaimergp commented Oct 1, 2024

Can you remove the Python version from either the environment.yml or the setup-miniconda inputs?

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

No branches or pull requests

3 participants
@nik123 @jaimergp and others