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

conda-build 3.19.2 is installed but unable to run it. Instead 3.18.11 is what gets called. #4006

Closed
00krishna opened this issue Aug 5, 2020 · 3 comments
Labels
stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity

Comments

@00krishna
Copy link

Actual Behavior

I created a conda environment and installed version 3.19.2 of conda-build. But, when I check the conda build --version I get 3.18.11 instead of the newer version. I need to use a version of conda-build>3.18.12 in order to get past issue #3956 and these CUDE incompatibility issues.

Expected Behavior

I should be able to install conda-build 3.19.2, and then that version will be used to implement the build process.

Steps to Reproduce

  1. create a new anaconda environment using conda version 4.8.3. I am running Ubuntu linux 18.04 LTS.
>>>conda create -c conda-forge -n pkg-builder conda-build
>>>conda activate pkg-builder
  1. When I check the conda-build version it indicates 3.19.2
 >>>conda list conda-build

 Name                    Version                   Build  Channel \
 conda-build               3.19.2           py38h32f6830_2    conda-forge
  1. When I try and use conda-build it reads an older version
>>>conda build --version

3.18.11

This last part is the problem. When I try and run conda build . to build a package, the computer will run version 3.18.11 of conda build instead of the newer version. And I need the newer version otherwise I end up with extra dependencies in the package that breaks the python noarch architecture of the package.

Output of conda info
conda info

     active environment : test-package
    active env location : /media/krishnab/lakshmi/anaconda3/envs/test-package
            shell level : 2
       user config file : /home/krishnab/.condarc
 populated config files : /home/krishnab/.condarc
          conda version : 4.8.3
    conda-build version : 3.18.11
         python version : 3.8.3.final.0
       virtual packages : __cuda=10.0
                          __glibc=2.27
       base environment : /media/krishnab/lakshmi/anaconda3  (writable)
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /media/krishnab/lakshmi/anaconda3/pkgs
                          /home/krishnab/.conda/pkgs
       envs directories : /media/krishnab/lakshmi/anaconda3/envs
                          /home/krishnab/.conda/envs
               platform : linux-64
             user-agent : conda/4.8.3 requests/2.24.0 CPython/3.8.3 Linux/4.15.0-112-generic ubuntu/18.04.4 glibc/2.27
                UID:GID : 1000:1000
             netrc file : /home/krishnab/.netrc
           offline mode : False

The output of conda list conda-build:

# Name                    Version                   Build  Channel
conda-build               3.19.3+103.g2b2898fb          pypi_0    pypi

Check the version of the conda build package from the executable.

>>>conda build --version
conda-build 3.18.11
@00krishna
Copy link
Author

This also seems to be a related issue.
KevinMusgrave/pytorch-metric-learning#55

@00krishna
Copy link
Author

Okay, I was able to solve this. The problem seems to have been with my condarc file. When I changed from strict priority to flexible priority, the installation of conda-build 3.19.2 worked just fine. So apparently there are some dependencies for conda-build in the defaults channel that are not in the conda-forge channel. I know that we are encouraged not to mix packages from different channels, so this might warrant some attention.

@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 19, 2023
@github-actions github-actions bot added the stale::closed [bot] closed after being marked as stale label May 20, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

1 participant