linuxdeploy/linuxdeploy-plugin-conda

ResolvePackageNotFound: conda==23.5.2

nshiell opened this issue · 3 comments

Previously the script I wrote worked:
https://github.com/nshiell/database-dossier/blob/master/tools/app-image-create.sh

I ran it today and saw:

[conda/stderr] ==> WARNING: A newer version of conda exists. <==
[conda/stderr]   current version: 23.5.2
[conda/stderr]   latest version: 23.7.4
[conda/stderr]
[conda/stderr] Please update conda by running
[conda/stderr]
[conda/stderr]     $ conda update -n base -c defaults conda
[conda/stderr]
[conda/stderr] Or to minimize the number of packages updated during conda update use
[conda/stderr]
[conda/stderr]      conda install conda=23.7.4

...

[conda/stderr] ResolvePackageNotFound:
[conda/stderr]   - conda==23.5.2

Has something changed somewhere that could have caused my issue?

No, nothing changed in the script, really. Please post the full log so I can see in which stage it goes wrong. You have set CONDA_PYTHON_VERSION, which causes conda to run twice at least.

linuxdeploy version 1-alpha (git commit ID 17ca786), GitHub actions build 183 built on 2023-09-01 01:01:24 UTC

-- Creating basic AppDir structure -- 
Creating directory AppDir/usr/bin/ 
Creating directory AppDir/usr/lib/ 
Creating directory AppDir/usr/share/applications/ 
Creating directory AppDir/usr/share/icons/hicolor/ 
Creating directory AppDir/usr/share/icons/hicolor/16x16/apps/ 
Creating directory AppDir/usr/share/icons/hicolor/32x32/apps/ 
Creating directory AppDir/usr/share/icons/hicolor/64x64/apps/ 
Creating directory AppDir/usr/share/icons/hicolor/128x128/apps/ 
Creating directory AppDir/usr/share/icons/hicolor/256x256/apps/ 
Creating directory AppDir/usr/share/icons/hicolor/scalable/apps/ 

-- Deploying dependencies for existing files in AppDir -- 

-- Copying files into AppDir -- 

-- Running input plugin: conda -- 
[conda/stdout] [conda/stderr] --2023-09-28 19:26:23--  https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
-*- Using default temporary download directory: /tmp/linuxdeploy-plugin-conda-1000
[conda/stdout] /tmp/linuxdeploy-plugin-conda-1000 ~/Documents/database-dossier/tools
[conda/stderr] Resolving repo.anaconda.com (repo.anaconda.com)... 104.16.131.3, 104.16.130.3, 2606:4700::6810:8303, ...
[conda/stderr] Connecting to repo.anaconda.com (repo.anaconda.com)|104.16.131.3|:443... connected.
[conda/stderr] HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable
[conda/stdout] ~/Documents/database-dossier/tools
[conda/stderr] 
[conda/stderr]     The file is already fully retrieved; nothing to do.
[conda/stderr] 
[conda/stdout] PREFIX=/home/nicholas/Documents/database-dossier/tools/AppDir/usr/conda
[conda/stdout] Unpacking payload ...
[conda/stderr] Extra[conda/stdout] -1.7.1-py311h06a4308_0.conda:  53%|█████▎    | 37/70 [00:01<00:33,  1.02s/it]               
[conda/stdout] Installing base environment...
[conda/stdout] 
[conda/stdout]                                                                                                                  
[conda/stdout] Downloading and Extracting Packages
[conda/stdout] 
[conda/stdout] 
[conda/stdout] Downloading and Extracting Packages
[conda/stdout] 
[conda/stdout] Preparing transaction: ...working... done
[conda/stdout] Executing transaction: ...working... done
[conda/stdout] installation finished.
[conda/stderr] Warning: 'conda-forge' already in 'channels' list, moving to the top
[conda/stdout] Collecting package metadata (current_repodata.json): ...working... done
[conda/stdout] Solving environment: ...working... unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
[conda/stdout] Solving environment: ...working... done
[conda/stderr] 
[conda/stderr] 
[conda/stderr] ==> WARNING: A newer version of conda exists. <==
[conda/stderr]   current version: 23.5.2
[conda/stderr]   latest version: 23.7.4
[conda/stderr] 
[conda/stderr] Please update conda by running
[conda/stderr] 
[conda/stderr]     $ conda update -n base -c defaults conda
[conda/stderr] 
[conda/stderr] Or to minimize the number of packages updated during conda update use
[conda/stderr] 
[conda/stderr]      conda install conda=23.7.4
[conda/stderr] 
[conda/stderr] 
[conda/stdout] Collecting package metadata (repodata.json): ...working... done
[conda/stdout] Solving environment: ...working... done
[conda/stdout] 
[conda/stdout] ## Package Plan ##
[conda/stdout] 
[conda/stdout]   environment location: /home/nicholas/Documents/database-dossier/tools/AppDir/usr/conda
[conda/stdout] 
[conda/stdout]   added / updated specs:
[conda/stdout]     - python=3.9
[conda/stdout] 
[conda/stdout] 
[conda/stdout] The following packages will be downloaded:
[conda/stdout] 
[conda/stdout]     package                    |            build
[conda/stdout]     ---------------------------|-----------------
[conda/stdout]     boltons-23.0.0             |     pyhd8ed1ab_0         296 KB  conda-forge
[conda/stdout]     brotli-python-1.0.9        |   py39h5a03fae_7         352 KB  conda-forge
[conda/stdout]     ca-certificates-2023.7.22  |       hbcca054_0         146 KB  conda-forge
[conda/stdout]     certifi-2023.7.22          |     pyhd8ed1ab_0         150 KB  conda-forge
[conda/stdout]     cffi-1.15.0                |   py39h4bc2ebd_0         227 KB  conda-forge
[conda/stdout]     colorama-0.4.6             |     pyhd8ed1ab_0          25 KB  conda-forge
[conda/stdout]     conda-23.7.4               |   py39hf3d152e_0         995 KB  conda-forge
[conda/stdout]     conda-content-trust-0.2.0  |     pyhd8ed1ab_0          57 KB  conda-forge
[conda/stdout]     conda-libmamba-solver-23.7.0|     pyhd8ed1ab_0          41 KB  conda-forge
[conda/stdout]     conda-package-handling-1.8.1|   py39hb9d737c_1         1.0 MB  conda-forge
[conda/stdout]     cryptography-41.0.3        |   py39hdda0065_0         2.0 MB
[conda/stdout]     idna-3.4                   |     pyhd8ed1ab_0          55 KB  conda-forge
[conda/stdout]     libmambapy-1.4.1           |   py39h2dafd23_1         289 KB
[conda/stdout]     openssl-3.0.11             |       h7f8727e_2         5.2 MB
[conda/stdout]     packaging-23.1             |     pyhd8ed1ab_0          45 KB  conda-forge
[conda/stdout]     pip-23.2.1                 |     pyhd8ed1ab_0         1.3 MB  conda-forge
[conda/stdout]     pluggy-1.3.0               |     pyhd8ed1ab_0          22 KB  conda-forge
[conda/stdout]     pycosat-0.6.3              |py39hb9d737c_1010         108 KB  conda-forge
[conda/stdout]     pyopenssl-23.2.0           |     pyhd8ed1ab_1         126 KB  conda-forge
[conda/stdout]     pysocks-1.7.1              |     pyha2e5f31_6          19 KB  conda-forge
[conda/stdout]     python-3.9.7               |hf930737_3_cpython        27.5 MB  conda-forge
[conda/stdout]     python_abi-3.9             |           4_cp39           6 KB  conda-forge
[conda/stdout]     requests-2.31.0            |     pyhd8ed1ab_0          55 KB  conda-forge
[conda/stdout]     ruamel.yaml-0.17.21        |   py39hb9d737c_1         172 KB  conda-forge
[conda/stdout]     ruamel.yaml.clib-0.2.6     |   py39hb9d737c_1         148 KB  conda-forge
[conda/stdout]     setuptools-68.2.2          |     pyhd8ed1ab_0         454 KB  conda-forge
[conda/stdout]     toolz-0.12.0               |     pyhd8ed1ab_0          48 KB  conda-forge
[conda/stdout]     tqdm-4.66.1                |     pyhd8ed1ab_0          87 KB  conda-forge
[conda/stdout]     urllib3-2.0.5              |     pyhd8ed1ab_0          96 KB  conda-forge
[conda/stdout]     wheel-0.41.2               |     pyhd8ed1ab_0          56 KB  conda-forge
[conda/stdout]     ------------------------------------------------------------
[conda/stdout]                                            Total:        41.0 MB
[conda/stdout] 
[conda/stdout] The following NEW packages will be INSTALLED:
[conda/stdout] 
[conda/stdout]   brotli-python      conda-forge/linux-64::brotli-python-1.0.9-py39h5a03fae_7 
[conda/stdout]   colorama           conda-forge/noarch::colorama-0.4.6-pyhd8ed1ab_0 
[conda/stdout]   python_abi         conda-forge/linux-64::python_abi-3.9-4_cp39 
[conda/stdout]   ruamel.yaml.clib   conda-forge/linux-64::ruamel.yaml.clib-0.2.6-py39hb9d737c_1 
[conda/stdout] 
[conda/stdout] The following packages will be REMOVED:
[conda/stdout] 
[conda/stdout]   brotlipy-0.7.0-py311h5eee18b_1002
[conda/stdout]   conda-package-streaming-0.8.0-py311h06a4308_0
[conda/stdout]   zstandard-0.19.0-py311h5eee18b_0
[conda/stdout] 
[conda/stdout] The following packages will be UPDATED:
[conda/stdout] 
[conda/stdout]   ca-certificates    pkgs/main::ca-certificates-2023.05.30~ --> conda-forge::ca-certificates-2023.7.22-hbcca054_0 
[conda/stdout]   certifi            pkgs/main/linux-64::certifi-2023.5.7-~ --> conda-forge/noarch::certifi-2023.7.22-pyhd8ed1ab_0 
[conda/stdout]   conda              pkgs/main::conda-23.5.2-py311h06a4308~ --> conda-forge::conda-23.7.4-py39hf3d152e_0 
[conda/stdout]   conda-content-tru~ pkgs/main/linux-64::conda-content-tru~ --> conda-forge/noarch::conda-content-trust-0.2.0-pyhd8ed1ab_0 
[conda/stdout]   conda-libmamba-so~ pkgs/main/linux-64::conda-libmamba-so~ --> conda-forge/noarch::conda-libmamba-solver-23.7.0-pyhd8ed1ab_0 
[conda/stdout]   cryptography                       39.0.1-py311h9ce1e76_2 --> 41.0.3-py39hdda0065_0 
[conda/stdout]   openssl                                  3.0.9-h7f8727e_0 --> 3.0.11-h7f8727e_2 
[conda/stdout]   packaging          pkgs/main/linux-64::packaging-23.0-p[conda/stderr] 
[conda/stderr] 
[conda/stderr] ==> WARNING: A newer version of conda exists. <==
[conda/stderr]   current version: 23.5.2
[conda/stderr]   latest version: 23.7.4
[conda/stderr] 
[conda/stderr] Please update conda by running
[conda/stderr]
[conda/stderr]     $ conda update -n base -c defaults conda
[conda/stderr]
[conda/stderr] Or to minimize the number of packages updated during conda update use
[conda/stderr]
[conda/stderr]      conda install conda=23.7.4
[conda/stderr]
[conda/stderr]
y~ --> conda-forge/noarch::packaging-23.1-pyhd8ed1ab_0
[conda/stdout]   pip                pkgs/main/linux-64::pip-23.1.2-py311h~ --> conda-forge/noarch::pip-23.2.1-pyhd8ed1ab_0
[conda/stdout]   pluggy             pkgs/main/linux-64::pluggy-1.0.0-py31~ --> conda-forge/noarch::pluggy-1.3.0-pyhd8ed1ab_0
[conda/stdout]   pyopenssl          pkgs/main/linux-64::pyopenssl-23.0.0-~ --> conda-forge/noarch::pyopenssl-23.2.0-pyhd8ed1ab_1
[conda/stdout]   pysocks            pkgs/main/linux-64::pysocks-1.7.1-py3~ --> conda-forge/noarch::pysocks-1.7.1-pyha2e5f31_6
[conda/stdout]   requests           pkgs/main/linux-64::requests-2.29.0-p~ --> conda-forge/noarch::requests-2.31.0-pyhd8ed1ab_0
[conda/stdout]   ruamel.yaml        pkgs/main::ruamel.yaml-0.17.21-py311h~ --> conda-forge::ruamel.yaml-0.17.21-py39hb9d737c_1
[conda/stdout]   setuptools         pkgs/main/linux-64::setuptools-67.8.0~ --> conda-forge/noarch::setuptools-68.2.2-pyhd8ed1ab_0
[conda/stdout]   tqdm               pkgs/main/linux-64::tqdm-4.65.0-py311~ --> conda-forge/noarch::tqdm-4.66.1-pyhd8ed1ab_0
[conda/stdout]   urllib3            pkgs/main/linux-64::urllib3-1.26.16-p~ --> conda-forge/noarch::urllib3-2.0.5-pyhd8ed1ab_0
[conda/stdout]   wheel              pkgs/main/linux-64::wheel-0.38.4-py31~ --> conda-forge/noarch::wheel-0.41.2-pyhd8ed1ab_0
[conda/stdout]
[conda/stdout] The following packages will be SUPERSEDED by a higher-priority channel:
[conda/stdout]
[conda/stdout]   boltons            pkgs/main/linux-64::boltons-23.0.0-py~ --> conda-forge/noarch::boltons-23.0.0-pyhd8ed1ab_0
[conda/stdout]   cffi               pkgs/main::cffi-1.15.1-py311h5eee18b_3 --> conda-forge::cffi-1.15.0-py39h4bc2ebd_0
[conda/stdout]   conda-package-han~ pkgs/main::conda-package-handling-2.1~ --> conda-forge::conda-package-handling-1.8.1-py39hb9d737c_1
[conda/stdout]   idna               pkgs/main/linux-64::idna-3.4-py311h06~ --> conda-forge/noarch::idna-3.4-pyhd8ed1ab_0
[conda/stdout]   pycosat            pkgs/main::pycosat-0.6.4-py311h5eee18~ --> conda-forge::pycosat-0.6.3-py39hb9d737c_1010
[conda/stdout]   python                pkgs/main::python-3.11.4-h955ad1f_0 --> conda-forge::python-3.9.7-hf930737_3_cpython
[conda/stdout]   toolz              pkgs/main/linux-64::toolz-0.12.0-py31~ --> conda-forge/noarch::toolz-0.12.0-pyhd8ed1ab_0
[conda/stdout]
[conda/stdout] The following packages will be DOWNGRADED:
[conda/stdout]
[conda/stdout]   libmambapy                          1.4.1-py311h2dafd23_1 --> 1.4.1-py39h2dafd23_1
[conda/stdout]
[conda/stdout]
[conda/stdout]
[conda/stdout] Downloading and Extracting Packages
[conda/stdout]
[conda/stdout] Preparing transaction: ...working... done
[conda/stdout] Verifying transaction: ...working... done
[conda/stdout] Executing transaction: ...working... done
[conda/stderr] Warning: 'conda-forge' already in 'channels' list, moving to the bottom
[conda/stdout]
[conda/stdout]
[conda/stdout] Collecting package metadata (current_repodata.json): ...working... done
[conda/stdout] Solving environment: ...working... unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
[conda/stdout] Solving environment: ...working... unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
[conda/stderr]
[conda/stderr] ResolvePackageNotFound:
[conda/stderr]   - conda==23.5.2
[conda/stderr]
ERROR: Failed to run plugin: conda (exit code: 1)

I did just try and re-run my build script with the CONDA_PYTHON_VERSION environment variable commented out, it seems to build a working app.

I will need to do some more testing with it