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 broken on Ubuntu20/22 #4993

Closed
2 tasks done
sgpearse opened this issue Sep 5, 2023 · 5 comments
Closed
2 tasks done

conda-build broken on Ubuntu20/22 #4993

sgpearse opened this issue Sep 5, 2023 · 5 comments
Labels
severity::3 major; broken functionality with a workaround source::community catch-all for issues filed by community members stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity type::bug describes erroneous operation, use severity::* to classify the type

Comments

@sgpearse
Copy link

sgpearse commented Sep 5, 2023

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

After installing conda-build on Ubuntu20 or 22 through anaconda, miniconda, or mamba, we are seeing the following error upon issuance of conda-build or conda index commands.

(3.9.0.sep5v2) vapor@vapor-Precision-Tower-5810:~$ conda-build --version /home/vapor/mambaforge/envs/3.9.0.sep5v2/bin/conda-build:11: DeprecationWarning: conda_build.cli.main_build.main is deprecated and will be removed in 4.0.0. Use conda build instead. sys.exit(main()) conda-build 3.26.1

This seems to be platform specific as my team is not experiencing this on OSX.

This is seen in conda-build 3.26.1. Degrading to conda-build 3.24.0 resolves this issue.

Conda Info

(3.9.0.sep5v2) vapor@vapor-Precision-Tower-5810:~$ conda info                                  
                                                                                               
     active environment : 3.9.0.sep5v2                                                         
    active env location : /home/vapor/mambaforge/envs/3.9.0.sep5v2
            shell level : 3
       user config file : /home/vapor/.condarc
 populated config files : /home/vapor/mambaforge/.condarc
          conda version : 23.3.1
    conda-build version : not installed
         python version : 3.10.12.final.0
       virtual packages : __archspec=1=x86_64
                          __glibc=2.31=0
                          __linux=5.15.0=0
                          __unix=0=0
       base environment : /home/vapor/mambaforge  (writable)
      conda av data dir : /home/vapor/mambaforge/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /home/vapor/mambaforge/pkgs
                          /home/vapor/.conda/pkgs
       envs directories : /home/vapor/mambaforge/envs
                          /home/vapor/.conda/envs
               platform : linux-64
             user-agent : conda/23.3.1 requests/2.31.0 CPython/3.10.12 Linux/5.15.0-83-generic ubuntu/20.04.6 glibc/2.31
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

Conda Config

(3.9.0.sep5v2) vapor@vapor-Precision-Tower-5810:~$ conda config --show-sources
==> /home/vapor/mambaforge/.condarc <==
channels:
  - conda-forge

Conda list

(3.9.0.sep5v2) vapor@vapor-Precision-Tower-5810:~$ conda list --show-channel-urls
# packages in environment at /home/vapor/mambaforge/envs/3.9.0.sep5v2:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
beautifulsoup4            4.12.2             pyha770c72_0    conda-forge
boltons                   23.0.0             pyhd8ed1ab_0    conda-forge
brotli-python             1.1.0           py311hb755f60_0    conda-forge
bzip2                     1.0.8                h7f98852_4    conda-forge
ca-certificates           2023.7.22            hbcca054_0    conda-forge
certifi                   2023.7.22          pyhd8ed1ab_0    conda-forge
cffi                      1.15.1          py311h409f033_3    conda-forge
chardet                   5.2.0           py311h38be061_0    conda-forge
charset-normalizer        3.2.0              pyhd8ed1ab_0    conda-forge
click                     8.1.7           unix_pyh707e725_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
conda                     23.7.3          py311h38be061_0    conda-forge
conda-build               3.24.0          py311h38be061_1    conda-forge
conda-index               0.2.3              pyhd8ed1ab_0    conda-forge
conda-package-handling    2.2.0              pyh38be061_0    conda-forge
conda-package-streaming   0.9.0              pyhd8ed1ab_0    conda-forge
cryptography              41.0.3          py311h63ff55d_0    conda-forge
filelock                  3.12.3             pyhd8ed1ab_0    conda-forge
glob2                     0.7                        py_0    conda-forge
icu                       73.2                 h59595ed_0    conda-forge
idna                      3.4                pyhd8ed1ab_0    conda-forge
jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
jsonpatch                 1.32               pyhd8ed1ab_0    conda-forge
jsonpointer               2.0                        py_0    conda-forge
ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
libarchive                3.6.2                h039dbb9_1    conda-forge
libexpat                  2.5.0                hcb278e6_1    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 13.1.0               he5830b7_0    conda-forge
libgomp                   13.1.0               he5830b7_0    conda-forge
libiconv                  1.17                 h166bdaf_0    conda-forge
liblief                   0.12.3               h27087fc_0    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libsqlite                 3.43.0               h2797004_0    conda-forge
libstdcxx-ng              13.1.0               hfd8a6a1_0    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libxml2                   2.11.5               h232c23b_1    conda-forge
libzlib                   1.2.13               hd590300_5    conda-forge
lz4-c                     1.9.4                hcb278e6_0    conda-forge
lzo                       2.10              h516909a_1000    conda-forge
markupsafe                2.1.3           py311h459d7ec_0    conda-forge
more-itertools            10.1.0             pyhd8ed1ab_0    conda-forge
ncurses                   6.4                  hcb278e6_0    conda-forge
openssl                   3.1.2                hd590300_0    conda-forge
packaging                 23.1               pyhd8ed1ab_0    conda-forge
patch                     2.7.6             h7f98852_1002    conda-forge
patchelf                  0.17.2               h58526e2_0    conda-forge
pip                       23.2.1             pyhd8ed1ab_0    conda-forge
pkginfo                   1.9.6              pyhd8ed1ab_0    conda-forge
pluggy                    1.3.0              pyhd8ed1ab_0    conda-forge
psutil                    5.9.5           py311h2582759_0    conda-forge
py-lief                   0.12.3          py311ha362b79_0    conda-forge
pycosat                   0.6.4           py311hd4cff14_1    conda-forge
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pyopenssl                 23.2.0             pyhd8ed1ab_1    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.11.5          hab00c5b_0_cpython    conda-forge
python-libarchive-c       5.0             py311h38be061_1    conda-forge
python_abi                3.11                    3_cp311    conda-forge
pytz                      2023.3             pyhd8ed1ab_0    conda-forge
pyyaml                    6.0.1           py311h459d7ec_0    conda-forge
readline                  8.2                  h8228510_1    conda-forge
requests                  2.31.0             pyhd8ed1ab_0    conda-forge
ripgrep                   13.0.0               h2f28480_2    conda-forge
ruamel.yaml               0.17.32         py311h459d7ec_0    conda-forge
ruamel.yaml.clib          0.2.7           py311h2582759_1    conda-forge
setuptools                68.1.2             pyhd8ed1ab_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
soupsieve                 2.5                pyhd8ed1ab_0    conda-forge
tk                        8.6.12               h27826a3_0    conda-forge
toolz                     0.12.0             pyhd8ed1ab_0    conda-forge
tqdm                      4.66.1             pyhd8ed1ab_0    conda-forge
tzdata                    2023c                h71feb2d_0    conda-forge
urllib3                   2.0.4              pyhd8ed1ab_0    conda-forge
wheel                     0.41.2             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
yaml                      0.2.5                h7f98852_2    conda-forge
zstandard                 0.19.0          py311haa97af0_2    conda-forge
zstd                      1.5.2                hfc55251_7    conda-forge

Additional Context

No response

@sgpearse sgpearse added the type::bug describes erroneous operation, use severity::* to classify the type label Sep 5, 2023
@travishathaway travishathaway added the source::community catch-all for issues filed by community members label Sep 7, 2023
@travishathaway
Copy link
Contributor

@sgpearse,

That appears to be a deprecation warning. Is that command actually broken? Does using the recommended invocation of that command fix your issue? (i.e. conda build --version).

We will be removing the ability to conda build via conda-build, but that is going to be in a later version.

@travishathaway travishathaway added the pending::feedback indicates we are waiting on feedback from the user label Sep 7, 2023
@travishathaway
Copy link
Contributor

travishathaway commented Sep 7, 2023

Also, if the warning output is giving you a problem, you could just the redirect that output elsewhere:

conda-build --version 2> /dev/null

Hope that helps, but still, please find a way to stop using that particular invocation of that command 😄.

@conda-bot conda-bot added pending::support indicates user is waiting on support from triage engineers and removed pending::feedback indicates we are waiting on feedback from the user labels Sep 7, 2023
@travishathaway travishathaway added pending::feedback indicates we are waiting on feedback from the user and removed pending::support indicates user is waiting on support from triage engineers labels Sep 7, 2023
@travishathaway
Copy link
Contributor

Actually.... 😅

I see why this is weird now:

conda build --version
/Users/my-user/opt/conda_x86_64/envs/conda-build/bin/conda-build:11: DeprecationWarning: conda_build.cli.main_build.main is deprecated and will be removed in 4.0.0. Use `conda build` instead.
  sys.exit(main())
conda-build 3.26.0

Even using the suggested invocation is still producing that warning message 😤.

@conda-bot conda-bot added pending::support indicates user is waiting on support from triage engineers and removed pending::feedback indicates we are waiting on feedback from the user labels Sep 7, 2023
@travishathaway travishathaway added severity::3 major; broken functionality with a workaround and removed pending::support indicates user is waiting on support from triage engineers labels Sep 7, 2023
@JacksonBurns
Copy link

I am also experiencing this error, both conda build and conda-build raise a deprecation warning. Downgrading removes the warning for me as well.

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 Sep 26, 2024
@github-actions github-actions bot added the stale::closed [bot] closed after being marked as stale label Oct 26, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity::3 major; broken functionality with a workaround source::community catch-all for issues filed by community members stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity type::bug describes erroneous operation, use severity::* to classify the type
Projects
Status: 🏁 Done
Development

No branches or pull requests

4 participants