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

cuda "feature" causing build/install failure although my package has no cuda dependency #4056

Closed
BrenBarn opened this issue Sep 17, 2020 · 3 comments
Labels
locked [bot] locked due to inactivity stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity

Comments

@BrenBarn
Copy link

BrenBarn commented Sep 17, 2020

Actual Behavior

I created a meta.yaml that has some dependencies. As far as I can tell, none of these require CUDA. But building and/or installing the package results in an error:

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your system:

  - feature:/win-64::__cuda==11.0=0

Your installed version is: 11.0

I have been trying different things and sometimes I get the error during the build, other times only when I try to actually install the package.

Expected Behavior

The package should install without caring about CUDA.

Steps to Reproduce

My meta.yaml has:

requirements:
  build:
    - python {{ python }}
    - setuptools
  run:
    - python
    - appdirs
    - toml
    - jupyter_client
    - pyqt
    - qscintilla2

{{ python }} is defined in conda_build_config.yaml as 3.6, 3.7 or 3.8. As far as I can tell, none of those packages depend on CUDA. I can't tell how or why conda thinks CUDA is relevant to my package at all. I looked at issues here and here describing how to track down dependencies, but nothing I found led to CUDA from any of the listed packages. I saw this related issue but in that case it seems the person was trying to install pytorch, which does use CUDA, whereas my package doesn't use it.

I don't know how to debug this to find out why conda thinks that CUDA has any relevance to building my package. Looking through all the files in the packages generated by conda-build, I see no references to CUDA, so why is it involved in the dependency resolution at all?

Output of conda info
     active environment : testpydeal
    active env location : C:\FakeProgs\Anaconda3\envs\testpydeal
            shell level : 1
       user config file : C:\Users\BrenBarn\.condarc
 populated config files : C:\Users\BrenBarn\.condarc
          conda version : 4.8.4
    conda-build version : 3.20.2
         python version : 3.6.12.final.0
       virtual packages : __cuda=11.0
       base environment : C:\FakeProgs\Anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\FakeProgs\Anaconda3\pkgs
                          C:\Users\BrenBarn\.conda\pkgs
                          C:\Users\BrenBarn\AppData\Local\conda\conda\pkgs
       envs directories : C:\FakeProgs\Anaconda3\envs
                          C:\Users\BrenBarn\.conda\envs
                          C:\Users\BrenBarn\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.8.4 requests/2.22.0 CPython/3.6.12 Windows/7 Windows/6.1.7601
          administrator : False
             netrc file : None
           offline mode : False
@pingvar
Copy link

pingvar commented Sep 17, 2020

Hi!
I got the same error but when I'm trying to create a new environment, can't see that it has any dependency to cuda either

@BrenBarn
Copy link
Author

I found that in my test environment I had forgotten to add conda-forge as a channel. qscintilla2 isn't available in defaults, only in conda-forge. When I added conda-forge, my package installs correctly.

But this is still some kind of bug. If the problem is that it can't find qscintilla2 (or some other package not available in the available channels) then the error should be that it can't find qscintilla2, not that it can't find some cuda feature that the to-be-installed package doesn't use (and that, as the error message shows, I already have anyway).

@github-actions
Copy link

Hi there, thank you for your contribution!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.

If you would like this issue to remain open please:

  1. Verify that you can still reproduce the issue at hand
  2. Comment that the issue is still reproducible and include:
    - What OS and version you reproduced the issue on
    - What steps you followed to reproduce the issue

NOTE: If this issue was closed prematurely, please leave a comment.

Thanks!

@github-actions github-actions bot added the stale [bot] marked as stale due to inactivity label Apr 28, 2023
@github-actions github-actions bot added the stale::closed [bot] closed after being marked as stale label May 29, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2023
@github-actions github-actions bot added the locked [bot] locked due to inactivity label May 28, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity
Projects
Archived in project
Development

No branches or pull requests

2 participants