conda / constructor

tool for creating installers from conda packages
https://conda.github.io/constructor/
Other
460 stars 167 forks source link

Error: unknown key 'extra_files' in construct.yaml #580

Closed dominikandreas closed 1 year ago

dominikandreas commented 2 years ago

Checklist

What happened?

Using the extra_files option in constructor.yaml does not seem to work.

With the example provided at https://github.com/conda/constructor/tree/main/examples/extra_files, executing constructor . within the directory containing the construct.yaml file, the response I get is

platform: win-64
Error: unknown key 'extra_files' in construct.yaml

Conda Info

active environment : base
    active env location : C:\Users\Admin\Miniconda3
            shell level : 1
       user config file : C:\Users\Admin\.condarc
 populated config files :
          conda version : 22.9.0
    conda-build version : 3.22.0
         python version : 3.9.12.final.0
       virtual packages : __win=0=0
                          __archspec=1=x86_64
       base environment : C:\Users\Admin\Miniconda3  (writable)
      conda av data dir : C:\Users\Admin\Miniconda3\etc\conda
  conda av metadata url : None
           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:\Users\Admin\Miniconda3\pkgs
                          C:\Users\Admin\.conda\pkgs
                          C:\Users\Admin\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\Admin\Miniconda3\envs
                          C:\Users\Admin\.conda\envs
                          C:\Users\Admin\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/22.9.0 requests/2.27.1 CPython/3.9.12 Windows/10 Windows/10.0.19042
          administrator : True
             netrc file : None
           offline mode : False

Conda Config

no output

Conda list

# packages in environment at C:\Users\Admin\Miniconda3:
#
# Name                    Version                   Build  Channel     
beautifulsoup4            4.11.1           py39haa95532_0    defaults  
brotlipy                  0.7.0           py39h2bbff1b_1003    defaults
bzip2                     1.0.8                he774522_0    defaults  
ca-certificates           2022.10.11           haa95532_0    defaults  
certifi                   2022.9.24        py39haa95532_0    defaults  
cffi                      1.15.0           py39h2bbff1b_1    defaults  
chardet                   4.0.0           py39haa95532_1003    defaults
charset-normalizer        2.0.4              pyhd3eb1b0_0    defaults  
colorama                  0.4.4              pyhd3eb1b0_0    defaults  
conda                     22.9.0           py39haa95532_0    defaults  
conda-build               3.22.0           py39haa95532_0    defaults  
conda-content-trust       0.1.1              pyhd3eb1b0_0    defaults  
conda-package-handling    1.8.1            py39h8cc25b3_0    defaults
conda-standalone          4.10.3               haa95532_1    defaults
console_shortcut          0.1.1                         4    defaults
constructor               3.3.1            py39haa95532_0    defaults
cryptography              36.0.0           py39h21b164f_0    defaults
filelock                  3.6.0              pyhd3eb1b0_0    defaults
freetype                  2.12.1               ha860e81_0    defaults
glob2                     0.7                pyhd3eb1b0_0    defaults
idna                      3.3                pyhd3eb1b0_0    defaults
jinja2                    2.11.3             pyhd3eb1b0_0    defaults
jpeg                      9e                   h2bbff1b_0    defaults
lerc                      3.0                  hd77b12b_0    defaults
libarchive                3.6.1                hebabd0d_0    defaults
libdeflate                1.8                  h2bbff1b_5    defaults
libiconv                  1.16                 h2bbff1b_2    defaults
liblief                   0.11.5               hd77b12b_1    defaults
libpng                    1.6.37               h2a8f88b_0    defaults
libtiff                   4.4.0                h8a3f274_0    defaults
libwebp                   1.2.4                h2bbff1b_0    defaults
libwebp-base              1.2.4                h2bbff1b_0    defaults
libxml2                   2.9.14               h0ad7f3c_0    defaults
lz4-c                     1.9.3                h2bbff1b_1    defaults
m2-msys2-runtime          2.5.0.17080.65c939c               3    defaults
m2-patch                  2.7.5                         2    defaults
markupsafe                2.0.1            py39h2bbff1b_0    defaults
menuinst                  1.4.18           py39h59b6b97_0    defaults
msys2-conda-epoch         20160418                      1    defaults
openssl                   1.1.1q               h2bbff1b_0    defaults
pillow                    9.2.0            py39hdc2b20a_1    defaults
pip                       21.2.4           py39haa95532_0    defaults
pkginfo                   1.8.3            py39haa95532_0    defaults
powershell_shortcut       0.0.1                         3    defaults
psutil                    5.9.0            py39h2bbff1b_0    defaults
py-lief                   0.11.5           py39hd77b12b_1    defaults
pycosat                   0.6.3            py39h2bbff1b_0    defaults
pycparser                 2.21               pyhd3eb1b0_0    defaults
pyopenssl                 22.0.0             pyhd3eb1b0_0    defaults
pysocks                   1.7.1            py39haa95532_0    defaults
python                    3.9.12               h6244533_0    defaults
python-libarchive-c       2.9                pyhd3eb1b0_1    defaults
pytz                      2022.1           py39haa95532_0    defaults
pywin32                   302              py39h2bbff1b_2    defaults
pyyaml                    6.0              py39h2bbff1b_1    defaults
requests                  2.27.1             pyhd3eb1b0_0    defaults
ruamel_yaml               0.15.100         py39h2bbff1b_0    defaults
setuptools                61.2.0           py39haa95532_0    defaults
six                       1.16.0             pyhd3eb1b0_1    defaults
soupsieve                 2.3.2.post1      py39haa95532_0    defaults
sqlite                    3.38.2               h2bbff1b_0    defaults
tk                        8.6.12               h2bbff1b_0    defaults
toml                      0.10.2             pyhd3eb1b0_0    defaults
toolz                     0.11.2             pyhd3eb1b0_0    defaults
tqdm                      4.63.0             pyhd3eb1b0_0    defaults
tzdata                    2022a                hda174b7_0    defaults
urllib3                   1.26.8             pyhd3eb1b0_0    defaults
vc                        14.2                 h21ff451_1    defaults
vs2015_runtime            14.27.29016          h5e58377_2    defaults
wheel                     0.37.1             pyhd3eb1b0_0    defaults
win_inet_pton             1.1.0            py39haa95532_0    defaults
wincertstore              0.2              py39haa95532_2    defaults
xz                        5.2.6                h8cc25b3_0    defaults
yaml                      0.2.5                he774522_0    defaults
zlib                      1.2.13               h8cc25b3_0    defaults
zstd                      1.5.2                h19a0ad4_0    defaults
manufy commented 2 years ago

same to me @dominikandreas and I don't see source code bugs , thank you, now I know I'm not alone XD https://github.com/conda/constructor/compare/extra_files

seanxwzhang commented 1 year ago

same here

Conda Info

     active environment : None
       user config file : C:\Users\seanx\.condarc
 populated config files :
          conda version : 22.9.0
    conda-build version : 3.21.8
         python version : 3.9.12.final.0
       virtual packages : __cuda=11.2=0
                          __win=0=0
                          __archspec=1=x86_64
       base environment : C:\Users\seanx\anaconda3  (writable)
      conda av data dir : C:\Users\seanx\anaconda3\etc\conda
  conda av metadata url : None
           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:\Users\seanx\anaconda3\pkgs
                          C:\Users\seanx\.conda\pkgs
                          C:\Users\seanx\AppData\Local\conda\conda\pkgs
       envs directories : C:\Users\seanx\anaconda3\envs
                          C:\Users\seanx\.conda\envs
                          C:\Users\seanx\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/22.9.0 requests/2.27.1 CPython/3.9.12 Windows/10 Windows/10.0.22000
          administrator : False
             netrc file : None
           offline mode : False

Constructor.yaml

name: PanoLab
version: 0.1
installer_type: exe

channels:
  - http://repo.anaconda.com/pkgs/main/
  - https://conda.anaconda.org/conda-forge
  - https://conda.anaconda.org/patrikhlobil

specs:
  - python 3.8*
  - pandas
  - ipywidgets 8.0.2
  - bokeh
  - pandas-bokeh
  - ib-insync
  - jupyterlab

menu_packages:
  - jupyterlab

extra_files:
  - panolab.bat: Scripts/panolab.bat

post_install: post_install.bat
jaimergp commented 1 year ago

This is not yet released, sorry! You'll need to install from main.

Alternatively, subscribe to #577.

Docs for last release are available at: https://github.com/conda/constructor/blob/3.3.1/CONSTRUCT.md

NicoKiaru commented 1 year ago

I also have the same issue (unknown key 'extra_files'). I created a new empty conda env and then tried to run conda install ctools/label/dev::constructor but I get this error:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.|
failed

UnsatisfiableError:
Note that strict channel priority may have removed packages required for satisfiability.

I'm not super familiar with python, so I'm a bit stuck...

EDIT: I tried updating conda ('conda update -n base conda'), it didn't work. I tried 'conda install ctools/label/main::constructor', but got the same conflicts issue.

However, after updating conda and python to 3.10, I have this explanation about the conflicts:

                                                                         \

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

Output in format: Requested package -> Available versions

Package tzdata conflicts for:
python=3.10 -> tzdata
pip -> python[version='>=3.7'] -> tzdata
wheel -> python[version='>=3.7'] -> tzdata
setuptools -> python[version='>=3.7'] -> tzdata
tzdata
ctools/label/main::constructor -> python[version='>=3.10,<3.11.0a0'] -> tzdata

Package vc conflicts for:
xz -> vc[version='14.*|9.*|>=14,<15.0a0|>=14.1,<15|>=14.1,<15.0a0|>=9,<10.0a0']
ctools/label/main::constructor -> pillow[version='>=3.1'] -> vc[version='14.*|9.*|>=14,<15.0a0|>=14.1,<15.0a0|>=14.1,<15|>=14.2,<15|>=9,<10.0a0']
vc
setuptools -> python[version='>=3.7'] -> vc[version='10.*|14.*|>=14.1,<15|>=14.1,<15.0a0|>=14,<15.0a0|>=14.2,<15|>=9,<10.0a0|9.*']
tk -> vc[version='10.*|10|14|14.*|9.*|>=14.1,<15|>=14.1,<15.0a0|>=14,<15.0a0|9']
python=3.10 -> bzip2[version='>=1.0.8,<2.0a0'] -> vc[version='14.*|9.*|>=14,<15.0a0|>=14.2,<15|>=9,<10.0a0']
pip -> python[version='>=3.7'] -> vc[version='10.*|14.*|>=14.1,<15|>=14.1,<15.0a0|>=14,<15.0a0|>=9,<10.0a0|9.*']
python=3.10 -> vc[version='>=14.1,<15|>=14.1,<15.0a0']
libffi -> vc[version='14.*|9.*|>=14.1,<15.0a0|>=14,<15.0a0']
wheel -> python[version='>=3.7'] -> vc[version='10.*|14.*|>=14.1,<15|>=14.1,<15.0a0|>=14,<15.0a0|>=9,<10.0a0|9.*']
openssl -> vc[version='10.*|14.*|9.*|>=14,<15.0a0|>=14.1,<15.0a0|>=14.1,<15|>=14.2,<15']
bzip2 -> vc[version='14.*|9.*|>=14.1,<15.0a0|>=14,<15.0a0']
libsqlite -> vc[version='>=14.1,<15|>=14.2,<15']

Package vs2015_runtime conflicts for:
xz -> vc[version='>=14.1,<15'] -> vs2015_runtime[version='>=14.0.25123,<15.0a0|>=14.0.25420|>=14.15.26706|>=14.27.29016|>=14.28.29325|>=14.32.31332|>=14.29.30139|>=14.29.30037']
libffi -> vs2015_runtime[version='>=14.16.27012|>=14.16.27012,<15.0a0']
python=3.10 -> libsqlite[version='>=3.40.0,<4.0a0'] -> vs2015_runtime[version='>=14.15.26706|>=14.27.29016|>=14.28.29325|>=14.29.30139|>=14.32.31332|>=14.29.30037']
libsqlite -> vc[version='>=14.2,<15'] -> vs2015_runtime[version='>=14.15.26706|>=14.16.27012|>=14.27.29016|>=14.28.29325|>=14.32.31332|>=14.29.30037']
bzip2 -> vc[version='>=14.1,<15.0a0'] -> vs2015_runtime[version='>=14.0.25123,<15.0a0|>=14.0.25420|>=14.15.26706|>=14.16.27033|>=14.28.29325|>=14.32.31332|>=14.29.30139|>=14.29.30037|>=14.27.29016']
openssl -> vs2015_runtime[version='>=14.16.27012,<15.0a0|>=14.16.27012|>=14.16.27033|>=14.29.30139']
tk -> vs2015_runtime[version='>=14.16.27012,<15.0a0|>=14.16.27012|>=14.16.27033']
setuptools -> python[version='>=3.7'] -> vs2015_runtime[version='>=14.16.27012,<15.0a0|>=14.16.27012|>=14.16.27033|>=14.29.30139']
vc -> vs2015_runtime[version='>=14.0.25123,<15.0a0|>=14.0.25420|>=14.15.26706|>=14.16.27012|>=14.16.27033|>=14.28.29325|>=14.32.31332|>=14.29.30139|>=14.29.30037|>=14.27.29016']
libffi -> vc[version='>=14.1,<15.0a0'] -> vs2015_runtime[version='>=14.0.25123,<15.0a0|>=14.0.25420|>=14.15.26706|>=14.16.27033|>=14.28.29325|>=14.32.31332|>=14.29.30139|>=14.29.30037|>=14.27.29016']
openssl -> vc[version='>=14.2,<15'] -> vs2015_runtime[version='>=14.0.25123,<15.0a0|>=14.0.25420|>=14.15.26706|>=14.27.29016|>=14.28.29325|>=14.32.31332|>=14.29.30037']
vs2015_runtime
python=3.10 -> vs2015_runtime[version='>=14.16.27012,<15.0a0|>=14.16.27012|>=14.16.27033']
ctools/label/main::constructor -> pillow[version='>=3.1'] -> vs2015_runtime[version='14.00.23026.0|>=14.16.27012|>=14.16.27033|>=14.29.30139|>=14.16.27012,<15.0a0',build=0]
xz -> vs2015_runtime[version='>=14.16.27012,<15.0a0|>=14.16.27012|>=14.16.27033']
bzip2 -> vs2015_runtime[version='>=14.16.27012']
tk -> vc[version='>=14.1,<15'] -> vs2015_runtime[version='>=14.0.25123,<15.0a0|>=14.0.25420|>=14.15.26706|>=14.27.29016|>=14.28.29325|>=14.32.31332|>=14.29.30139|>=14.29.30037']
wheel -> python[version='>=3.7'] -> vs2015_runtime[version='>=14.16.27012,<15.0a0|>=14.16.27012|>=14.16.27033']
pip -> python[version='>=3.7'] -> vs2015_runtime[version='>=14.16.27012,<15.0a0|>=14.16.27012|>=14.16.27033']
libsqlite -> vs2015_runtime[version='>=14.16.27033|>=14.29.30139']

Package requests conflicts for:
python=3.10 -> pip -> requests
ctools/label/main::constructor -> conda[version='>=4.6'] -> requests[version='>=2.18.4,<3|>=2.20.1,<3']
pip -> requests

Package ca-certificates conflicts for:
ctools/label/main::constructor -> python[version='>=2.7,<2.8.0a0'] -> ca-certificates
pip -> python -> ca-certificates
setuptools -> python[version='>=2.7,<2.8.0a0'] -> ca-certificates
python=3.10 -> openssl[version='>=1.1.1s,<1.1.2a'] -> ca-certificates
openssl -> ca-certificates
ca-certificates
wheel -> python[version='!=3.0,!=3.1,!=3.2,!=3.3,!=3.4'] -> ca-certificates

Package python_abi conflicts for:
setuptools -> certifi[version='>=2016.9.26'] -> python_abi=2.7[build=*_cp27m]
ctools/label/main::constructor -> conda[version='>=4.6'] -> python_abi[version='2.7.*|3.10.*|3.8.*|3.9.*|3.9|3.8|3.11.*|3.7.*|3.6.*|3.7',build='*_cp27m|*_cp36m|*_pypy38_pp73|*_cp39|*_cp310|*_cp38|*_pypy39_pp73|*_cp311|*_cp37m|*_pypy37_pp73']
pip -> python[version='>=3.7'] -> python_abi[version='2.7.*|3.10.*|3.7.*|3.7|3.8|3.9|3.9.*|3.8.*|3.11.*|3.6.*',build='*_cp27m|*_cp36m|*_cp38|*_cp310|*_pypy37_pp73|*_pypy38_pp73|*_pypy39_pp73|*_cp37m|*_cp39|*_cp311']
wheel -> python[version='>=3.7'] -> python_abi[version='3.10.*|3.7.*|3.7|3.8|3.9|3.9.*|3.8.*|3.11.*|3.6.*',build='*_cp36m|*_cp38|*_cp310|*_pypy37_pp73|*_pypy38_pp73|*_pypy39_pp73|*_cp37m|*_cp39|*_cp311']
setuptools -> python_abi[version='3.10.*|3.7.*|3.9|3.9.*|3.8|3.8.*|3.7|3.11.*|3.6.*',build='*_cp36m|*_pypy37_pp73|*_cp38|*_pypy38_pp73|*_cp310|*_pypy39_pp73|*_cp37m|*_cp39|*_cp311']

Package wheel conflicts for:
python=3.10 -> pip -> wheel
wheel
pip -> wheel

Package libffi conflicts for:
pip -> python[version='>=3.7'] -> libffi[version='>=3.3,<4|>=3.4,<3.5|>=3.4,<4.0a0|>=3.4.2,<3.5.0a0']
ctools/label/main::constructor -> python[version='>=3.10,<3.11.0a0'] -> libffi[version='>=3.3,<4|>=3.4,<3.5|>=3.4,<4.0a0|>=3.4.2,<3.5.0a0']
python=3.10 -> libffi[version='>=3.4,<3.5|>=3.4,<4.0a0|>=3.4.2,<3.5.0a0']
wheel -> python[version='>=3.7'] -> libffi[version='>=3.3,<4|>=3.4,<3.5|>=3.4,<4.0a0|>=3.4.2,<3.5.0a0']
setuptools -> python[version='>=3.7'] -> libffi[version='>=3.3,<3.4.0a0|>=3.3,<4|>=3.4,<3.5|>=3.4,<4.0a0|>=3.4.2,<3.5.0a0']
libffi

Package vs2008_runtime conflicts for:
libffi -> vc=9 -> vs2008_runtime[version='>=9.0.30729.1,<10.0a0']
xz -> vc[version='>=9,<10.0a0'] -> vs2008_runtime[version='>=9.0.30729.1,<10.0a0']
wheel -> python[version='!=3.0,!=3.1,!=3.2,!=3.3,!=3.4'] -> vs2008_runtime
pip -> python -> vs2008_runtime
ctools/label/main::constructor -> python[version='>=2.7,<2.8.0a0'] -> vs2008_runtime
setuptools -> python[version='>=2.7,<2.8.0a0'] -> vs2008_runtime
openssl -> vc=9 -> vs2008_runtime[version='>=9.0.30729.1,<10.0a0']
bzip2 -> vc=9 -> vs2008_runtime[version='>=9.0.30729.1,<10.0a0']
tk -> vc=9 -> vs2008_runtime[version='>=9.0.30729.1,<10.0a0']
vc -> vs2008_runtime[version='>=9.0.30729.1,<10.0a0']

Package ucrt conflicts for:
tk -> vs2015_runtime[version='>=14.16.27033'] -> ucrt[version='>=10.0.20348.0']
ctools/label/main::constructor -> pillow[version='>=3.1'] -> ucrt[version='>=10.0.20348.0']
ucrt
vc -> vs2015_runtime[version='>=14.32.31332'] -> ucrt[version='>=10.0.20348.0']
openssl -> ucrt[version='>=10.0.20348.0']
xz -> vs2015_runtime[version='>=14.16.27033'] -> ucrt[version='>=10.0.20348.0']
python=3.10 -> libsqlite[version='>=3.40.0,<4.0a0'] -> ucrt[version='>=10.0.20348.0']
setuptools -> pypy3.9[version='>=7.3.9'] -> ucrt[version='>=10.0.20348.0']
bzip2 -> vs2015_runtime[version='>=14.16.27012'] -> ucrt[version='>=10.0.20348.0']
libsqlite -> ucrt[version='>=10.0.20348.0']
libffi -> vs2015_runtime[version='>=14.16.27012'] -> ucrt[version='>=10.0.20348.0']
vs2015_runtime -> ucrt[version='>=10.0.20348.0']

Package pypy3.9 conflicts for:
setuptools -> python[version='>=3.7'] -> pypy3.9[version='7.3.*|7.3.8.*|7.3.9.*']
setuptools -> pypy3.9[version='>=7.3.8|>=7.3.9']

Package tk conflicts for:
wheel -> python[version='>=3.7'] -> tk[version='>=8.6.11,<8.7.0a0|>=8.6.12,<8.7.0a0']
setuptools -> python[version='>=3.7'] -> tk[version='>=8.6.10,<8.7.0a0|>=8.6.11,<8.7.0a0|>=8.6.12,<8.7.0a0']
tk
ctools/label/main::constructor -> pillow[version='>=3.1'] -> tk[version='8.6.*|>=8.6.10,<8.7.0a0|>=8.6.11,<8.7.0a0|>=8.6.12,<8.7.0a0|>=8.6.9,<8.7.0a0|>=8.6.8,<8.7.0a0|>=8.6.7,<8.7.0a0']
pip -> python[version='>=3.7'] -> tk[version='>=8.6.11,<8.7.0a0|>=8.6.12,<8.7.0a0']
python=3.10 -> tk[version='>=8.6.11,<8.7.0a0|>=8.6.12,<8.7.0a0']

Package bzip2 conflicts for:
bzip2
python=3.10 -> bzip2[version='>=1.0.8,<2.0a0']
ctools/label/main::constructor -> python[version='>=3.10,<3.11.0a0'] -> bzip2[version='>=1.0.8,<2.0a0']
pip -> python[version='>=3.7'] -> bzip2[version='>=1.0.8,<2.0a0']
setuptools -> python[version='>=3.7'] -> bzip2[version='>=1.0.8,<2.0a0']
wheel -> python[version='>=3.7'] -> bzip2[version='>=1.0.8,<2.0a0']

Package setuptools conflicts for:
setuptools
ctools/label/main::constructor -> conda[version='>=4.6'] -> setuptools[version='>=31.0.1']
pip -> setuptools
python=3.10 -> pip -> setuptools
wheel -> setuptools

Package libzlib conflicts for:
python=3.10 -> zlib[version='>=1.2.13,<1.3.0a0'] -> libzlib[version='1.2.11|1.2.11|1.2.11|1.2.12|1.2.12|1.2.12|1.2.12|1.2.12|1.2.13',build='h8ffe710_1012|h8ffe710_2|hcfcfb64_3|hcfcfb64_4|h8ffe710_1|h8ffe710_0|h8ffe710_1014|h8ffe710_1013']
python=3.10 -> libzlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
libzlib
pip -> python[version='>=3.7'] -> libzlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
ctools/label/main::constructor -> pillow[version='>=3.1'] -> libzlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
setuptools -> python[version='>=3.7'] -> libzlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
wheel -> python[version='>=3.7'] -> libzlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']

Package openssl conflicts for:
openssl
pip -> python[version='>=3.7'] -> openssl[version='>=1.1.1a,<1.1.2a|>=1.1.1d,<1.1.2a|>=1.1.1e,<1.1.2a|>=1.1.1f,<1.1.2a|>=1.1.1g,<1.1.2a|>=1.1.1h,<1.1.2a|>=1.1.1i,<1.1.2a|>=1.1.1j,<1.1.2a|>=1.1.1k,<1.1.2a|>=1.1.1l,<1.1.2a|>=1.1.1n,<1.1.2a|>=1.1.1o,<1.1.2a|>=1.1.1q,<1.1.2a|>=3.0.5,<4.0a0|>=1.1.1s,<1.1.2a|>=3.0.7,<4.0a0|>=3.0.3,<4.0a0|>=3.0.2,<4.0a0|>=3.0.0,<4.0a0|>=1.1.1c,<1.1.2a|>=1.1.1b,<1.1.2a']
ctools/label/main::constructor -> python[version='>=3.10,<3.11.0a0'] -> openssl[version='>=1.1.1a,<1.1.2a|>=1.1.1e,<1.1.2a|>=1.1.1g,<1.1.2a|>=1.1.1h,<1.1.2a|>=1.1.1i,<1.1.2a|>=1.1.1j,<1.1.2a|>=1.1.1l,<1.1.2a|>=1.1.1n,<1.1.2a|>=1.1.1o,<1.1.2a|>=1.1.1q,<1.1.2a|>=1.1.1s,<1.1.2a|>=3.0.7,<4.0a0|>=3.0.5,<4.0a0|>=3.0.3,<4.0a0|>=3.0.2,<4.0a0|>=3.0.0,<4.0a0|>=1.1.1k,<1.1.2a|>=1.1.1f,<1.1.2a|>=1.1.1d,<1.1.2a|>=1.1.1c,<1.1.2a|>=1.1.1b,<1.1.2a']
setuptools -> python[version='>=3.7'] -> openssl[version='>=1.1.1a,<1.1.2a|>=1.1.1d,<1.1.2a|>=1.1.1e,<1.1.2a|>=1.1.1f,<1.1.2a|>=1.1.1g,<1.1.2a|>=1.1.1h,<1.1.2a|>=1.1.1i,<1.1.2a|>=1.1.1j,<1.1.2a|>=1.1.1k,<1.1.2a|>=1.1.1l,<1.1.2a|>=1.1.1n,<1.1.2a|>=1.1.1o,<1.1.2a|>=1.1.1q,<1.1.2a|>=3.0.5,<4.0a0|>=1.1.1s,<1.1.2a|>=3.0.7,<4.0a0|>=3.0.3,<4.0a0|>=3.0.2,<4.0a0|>=3.0.0,<4.0a0|>=1.1.1c,<1.1.2a|>=1.1.1b,<1.1.2a']
wheel -> python[version='>=3.7'] -> openssl[version='>=1.1.1a,<1.1.2a|>=1.1.1d,<1.1.2a|>=1.1.1e,<1.1.2a|>=1.1.1f,<1.1.2a|>=1.1.1g,<1.1.2a|>=1.1.1h,<1.1.2a|>=1.1.1i,<1.1.2a|>=1.1.1j,<1.1.2a|>=1.1.1k,<1.1.2a|>=1.1.1l,<1.1.2a|>=1.1.1n,<1.1.2a|>=1.1.1o,<1.1.2a|>=1.1.1q,<1.1.2a|>=3.0.5,<4.0a0|>=1.1.1s,<1.1.2a|>=3.0.7,<4.0a0|>=3.0.3,<4.0a0|>=3.0.2,<4.0a0|>=3.0.0,<4.0a0|>=1.1.1c,<1.1.2a|>=1.1.1b,<1.1.2a']
python=3.10 -> openssl[version='>=1.1.1l,<1.1.2a|>=1.1.1n,<1.1.2a|>=1.1.1o,<1.1.2a|>=1.1.1q,<1.1.2a|>=1.1.1s,<1.1.2a|>=3.0.7,<4.0a0|>=3.0.5,<4.0a0|>=3.0.3,<4.0a0|>=3.0.2,<4.0a0|>=3.0.0,<4.0a0']

Package xz conflicts for:
python=3.10 -> xz[version='>=5.2.5,<5.3.0a0|>=5.2.6,<5.3.0a0|>=5.2.6,<6.0a0|>=5.2.5,<6.0a0']
pip -> python[version='>=3.7'] -> xz[version='>=5.2.5,<5.3.0a0|>=5.2.6,<5.3.0a0|>=5.2.6,<6.0a0|>=5.2.5,<6.0a0']
setuptools -> python[version='>=3.7'] -> xz[version='>=5.2.5,<5.3.0a0|>=5.2.6,<5.3.0a0|>=5.2.6,<6.0a0|>=5.2.5,<6.0a0']
xz
ctools/label/main::constructor -> python[version='>=3.10,<3.11.0a0'] -> xz[version='>=5.2.5,<5.3.0a0|>=5.2.6,<5.3.0a0|>=5.2.6,<6.0a0|>=5.2.5,<6.0a0']
wheel -> python[version='>=3.7'] -> xz[version='>=5.2.5,<5.3.0a0|>=5.2.6,<5.3.0a0|>=5.2.6,<6.0a0|>=5.2.5,<6.0a0']

Package cachecontrol conflicts for:
pip -> cachecontrol
python=3.10 -> pip -> cachecontrol

Package libsqlite conflicts for:
python=3.10 -> libsqlite[version='>=3.39.2,<4.0a0|>=3.40.0,<4.0a0']
libsqlite
pip -> python[version='>=3.7'] -> libsqlite[version='>=3.39.2,<4.0a0|>=3.39.4,<4.0a0|>=3.40.0,<4.0a0']
setuptools -> python[version='>=3.7'] -> libsqlite[version='>=3.39.2,<4.0a0|>=3.39.4,<4.0a0|>=3.40.0,<4.0a0']
ctools/label/main::constructor -> python[version='>=3.10,<3.11.0a0'] -> libsqlite[version='>=3.39.2,<4.0a0|>=3.40.0,<4.0a0']
wheel -> python[version='>=3.7'] -> libsqlite[version='>=3.39.2,<4.0a0|>=3.39.4,<4.0a0|>=3.40.0,<4.0a0']
python=3.10 -> sqlite[version='>=3.38.5,<4.0a0'] -> libsqlite[version='3.39.2|3.39.3|3.39.4|3.40.0',build='hcfcfb64_0|h8ffe710_1']

Package pyparsing conflicts for:
pip -> packaging -> pyparsing[version='<3,>=2.0.2|>=2.0.2,!=3.0.5|>=2.0.2,<3|>=2.0.2']
wheel -> packaging[version='>=20.2'] -> pyparsing[version='<3,>=2.0.2|>=2.0.2,!=3.0.5|>=2.0.2,<3|>=2.0.2']

Package wincertstore conflicts for:
wheel -> setuptools -> wincertstore[version='>=0.2']
pip -> setuptools -> wincertstore[version='>=0.2']
setuptools -> wincertstore[version='>=0.2']

Package pypy3.8 conflicts for:
setuptools -> pypy3.8[version='>=7.3.8|>=7.3.9']
setuptools -> python[version='>=3.7'] -> pypy3.8[version='7.3.*|7.3.8.*|7.3.9.*']

Package pypy3.7 conflicts for:
setuptools -> pypy3.7[version='>=7.3.5|>=7.3.7']
setuptools -> python[version='>=3.7'] -> pypy3.7[version='7.3.*|7.3.5.*|7.3.7.*']The following specifications were found to be incompatible with your system:

  - feature:/win-64::__win==0=0
  - feature:|@/win-64::__win==0=0
  - setuptools -> wincertstore[version='>=0.2'] -> __win

Your installed version is: 0

Note that strict channel priority may have removed packages required for satisfiability.
jaimergp commented 1 year ago

@NicoKiaru you need the development version, which can only be installed from the main branch now.

  1. conda create -n constructor-dev python pip constructor
  2. conda activate constructor-dev
  3. python -m pip install -U https://github.com/conda/constructor/archive/main.tar.gz --no-deps

But this is not yet released and might contain rough edges so... there be dragons :D

NicoKiaru commented 1 year ago

Thanks @jaimergp for the detailed instructions !

Point 1 and 2 are ok, but unfortunately the point 3 fails (my OS is win11 if that matters). I think I'll wait for the release.

Here's the error I get:

(constructor-dev) C:\Users\chiarutt>python -m pip install -U https://github.com/conda/conda/archive/main.tar.gz --no-deps
Collecting https://github.com/conda/conda/archive/main.tar.gz
  Downloading https://github.com/conda/conda/archive/main.tar.gz
     | 21.8 MB 7.8 MB/s 0:00:03
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: conda
  Building wheel for conda (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for conda (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [315 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib
      creating build\lib\conda
      copying conda\activate.py -> build\lib\conda
      copying conda\api.py -> build\lib\conda
      copying conda\exceptions.py -> build\lib\conda
      copying conda\exports.py -> build\lib\conda
      copying conda\history.py -> build\lib\conda
      copying conda\instructions.py -> build\lib\conda
      copying conda\lock.py -> build\lib\conda
      copying conda\misc.py -> build\lib\conda
      copying conda\plan.py -> build\lib\conda
      copying conda\resolve.py -> build\lib\conda
      copying conda\utils.py -> build\lib\conda
      copying conda\__init__.py -> build\lib\conda
      copying conda\__main__.py -> build\lib\conda
      creating build\lib\conda_env
      copying conda_env\env.py -> build\lib\conda_env
      copying conda_env\pip_util.py -> build\lib\conda_env
      copying conda_env\__init__.py -> build\lib\conda_env
      copying conda_env\__main__.py -> build\lib\conda_env
      creating build\lib\conda\auxlib
      copying conda\auxlib\collection.py -> build\lib\conda\auxlib
      copying conda\auxlib\compat.py -> build\lib\conda\auxlib
      copying conda\auxlib\decorators.py -> build\lib\conda\auxlib
      copying conda\auxlib\entity.py -> build\lib\conda\auxlib
      copying conda\auxlib\exceptions.py -> build\lib\conda\auxlib
      copying conda\auxlib\ish.py -> build\lib\conda\auxlib
      copying conda\auxlib\logz.py -> build\lib\conda\auxlib
      copying conda\auxlib\packaging.py -> build\lib\conda\auxlib
      copying conda\auxlib\type_coercion.py -> build\lib\conda\auxlib
      copying conda\auxlib\__init__.py -> build\lib\conda\auxlib
      creating build\lib\conda\base
      copying conda\base\constants.py -> build\lib\conda\base
      copying conda\base\context.py -> build\lib\conda\base
      copying conda\base\exceptions.py -> build\lib\conda\base
      copying conda\base\__init__.py -> build\lib\conda\base
      creating build\lib\conda\cli
      copying conda\cli\common.py -> build\lib\conda\cli
      copying conda\cli\conda_argparse.py -> build\lib\conda\cli
      copying conda\cli\find_commands.py -> build\lib\conda\cli
      copying conda\cli\install.py -> build\lib\conda\cli
      copying conda\cli\main.py -> build\lib\conda\cli
      copying conda\cli\main_clean.py -> build\lib\conda\cli
      copying conda\cli\main_compare.py -> build\lib\conda\cli
      copying conda\cli\main_config.py -> build\lib\conda\cli
      copying conda\cli\main_create.py -> build\lib\conda\cli
      copying conda\cli\main_info.py -> build\lib\conda\cli
      copying conda\cli\main_init.py -> build\lib\conda\cli
      copying conda\cli\main_install.py -> build\lib\conda\cli
      copying conda\cli\main_list.py -> build\lib\conda\cli
      copying conda\cli\main_notices.py -> build\lib\conda\cli
      copying conda\cli\main_package.py -> build\lib\conda\cli
      copying conda\cli\main_pip.py -> build\lib\conda\cli
      copying conda\cli\main_remove.py -> build\lib\conda\cli
      copying conda\cli\main_rename.py -> build\lib\conda\cli
      copying conda\cli\main_run.py -> build\lib\conda\cli
      copying conda\cli\main_search.py -> build\lib\conda\cli
      copying conda\cli\main_update.py -> build\lib\conda\cli
      copying conda\cli\python_api.py -> build\lib\conda\cli
      copying conda\cli\__init__.py -> build\lib\conda\cli
      creating build\lib\conda\common
      copying conda\common\compat.py -> build\lib\conda\common
      copying conda\common\configuration.py -> build\lib\conda\common
      copying conda\common\constants.py -> build\lib\conda\common
      copying conda\common\cuda.py -> build\lib\conda\common
      copying conda\common\decorators.py -> build\lib\conda\common
      copying conda\common\disk.py -> build\lib\conda\common
      copying conda\common\io.py -> build\lib\conda\common
      copying conda\common\iterators.py -> build\lib\conda\common
      copying conda\common\logic.py -> build\lib\conda\common
      copying conda\common\path.py -> build\lib\conda\common
      copying conda\common\serialize.py -> build\lib\conda\common
      copying conda\common\signals.py -> build\lib\conda\common
      copying conda\common\toposort.py -> build\lib\conda\common
      copying conda\common\url.py -> build\lib\conda\common
      copying conda\common\_logic.py -> build\lib\conda\common
      copying conda\common\__init__.py -> build\lib\conda\common
      creating build\lib\conda\core
      copying conda\core\envs_manager.py -> build\lib\conda\core
      copying conda\core\index.py -> build\lib\conda\core
      copying conda\core\initialize.py -> build\lib\conda\core
      copying conda\core\link.py -> build\lib\conda\core
      copying conda\core\package_cache.py -> build\lib\conda\core
      copying conda\core\package_cache_data.py -> build\lib\conda\core
      copying conda\core\path_actions.py -> build\lib\conda\core
      copying conda\core\portability.py -> build\lib\conda\core
      copying conda\core\prefix_data.py -> build\lib\conda\core
      copying conda\core\solve.py -> build\lib\conda\core
      copying conda\core\subdir_data.py -> build\lib\conda\core
      copying conda\core\__init__.py -> build\lib\conda\core
      creating build\lib\conda\gateways
      copying conda\gateways\anaconda_client.py -> build\lib\conda\gateways
      copying conda\gateways\logging.py -> build\lib\conda\gateways
      copying conda\gateways\subprocess.py -> build\lib\conda\gateways
      copying conda\gateways\__init__.py -> build\lib\conda\gateways
      creating build\lib\conda\models
      copying conda\models\channel.py -> build\lib\conda\models
      copying conda\models\dist.py -> build\lib\conda\models
      copying conda\models\enums.py -> build\lib\conda\models
      copying conda\models\leased_path_entry.py -> build\lib\conda\models
      copying conda\models\match_spec.py -> build\lib\conda\models
      copying conda\models\package_info.py -> build\lib\conda\models
      copying conda\models\prefix_graph.py -> build\lib\conda\models
      copying conda\models\records.py -> build\lib\conda\models
      copying conda\models\version.py -> build\lib\conda\models
      copying conda\models\__init__.py -> build\lib\conda\models
      creating build\lib\conda\notices
      copying conda\notices\cache.py -> build\lib\conda\notices
      copying conda\notices\core.py -> build\lib\conda\notices
      copying conda\notices\fetch.py -> build\lib\conda\notices
      copying conda\notices\types.py -> build\lib\conda\notices
      copying conda\notices\views.py -> build\lib\conda\notices
      copying conda\notices\__init__.py -> build\lib\conda\notices
      creating build\lib\conda\plugins
      copying conda\plugins\hookspec.py -> build\lib\conda\plugins
      copying conda\plugins\manager.py -> build\lib\conda\plugins
      copying conda\plugins\solvers.py -> build\lib\conda\plugins
      copying conda\plugins\types.py -> build\lib\conda\plugins
      copying conda\plugins\__init__.py -> build\lib\conda\plugins
      creating build\lib\conda\testing
      copying conda\testing\cases.py -> build\lib\conda\testing
      copying conda\testing\fixtures.py -> build\lib\conda\testing
      copying conda\testing\helpers.py -> build\lib\conda\testing
      copying conda\testing\integration.py -> build\lib\conda\testing
      copying conda\testing\solver_helpers.py -> build\lib\conda\testing
      copying conda\testing\__init__.py -> build\lib\conda\testing
      creating build\lib\conda\trust
      copying conda\trust\constants.py -> build\lib\conda\trust
      copying conda\trust\signature_verification.py -> build\lib\conda\trust
      copying conda\trust\__init__.py -> build\lib\conda\trust
      creating build\lib\conda\_vendor
      copying conda\_vendor\appdirs.py -> build\lib\conda\_vendor
      copying conda\_vendor\distro.py -> build\lib\conda\_vendor
      copying conda\_vendor\__init__.py -> build\lib\conda\_vendor
      creating build\lib\conda_env\cli
      copying conda_env\cli\common.py -> build\lib\conda_env\cli
      copying conda_env\cli\main.py -> build\lib\conda_env\cli
      copying conda_env\cli\main_config.py -> build\lib\conda_env\cli
      copying conda_env\cli\main_create.py -> build\lib\conda_env\cli
      copying conda_env\cli\main_export.py -> build\lib\conda_env\cli
      copying conda_env\cli\main_list.py -> build\lib\conda_env\cli
      copying conda_env\cli\main_remove.py -> build\lib\conda_env\cli
      copying conda_env\cli\main_update.py -> build\lib\conda_env\cli
      copying conda_env\cli\main_vars.py -> build\lib\conda_env\cli
      copying conda_env\cli\__init__.py -> build\lib\conda_env\cli
      creating build\lib\conda_env\installers
      copying conda_env\installers\base.py -> build\lib\conda_env\installers
      copying conda_env\installers\conda.py -> build\lib\conda_env\installers
      copying conda_env\installers\pip.py -> build\lib\conda_env\installers
      copying conda_env\installers\__init__.py -> build\lib\conda_env\installers
      creating build\lib\conda_env\specs
      copying conda_env\specs\binstar.py -> build\lib\conda_env\specs
      copying conda_env\specs\notebook.py -> build\lib\conda_env\specs
      copying conda_env\specs\requirements.py -> build\lib\conda_env\specs
      copying conda_env\specs\yaml_file.py -> build\lib\conda_env\specs
      copying conda_env\specs\__init__.py -> build\lib\conda_env\specs
      creating build\lib\conda\common\pkg_formats
      copying conda\common\pkg_formats\python.py -> build\lib\conda\common\pkg_formats
      copying conda\common\pkg_formats\__init__.py -> build\lib\conda\common\pkg_formats
      creating build\lib\conda\common\_os
      copying conda\common\_os\linux.py -> build\lib\conda\common\_os
      copying conda\common\_os\unix.py -> build\lib\conda\common\_os
      copying conda\common\_os\windows.py -> build\lib\conda\common\_os
      copying conda\common\_os\__init__.py -> build\lib\conda\common\_os
      creating build\lib\conda\gateways\connection
      copying conda\gateways\connection\download.py -> build\lib\conda\gateways\connection
      copying conda\gateways\connection\session.py -> build\lib\conda\gateways\connection
      copying conda\gateways\connection\__init__.py -> build\lib\conda\gateways\connection
      creating build\lib\conda\gateways\disk
      copying conda\gateways\disk\create.py -> build\lib\conda\gateways\disk
      copying conda\gateways\disk\delete.py -> build\lib\conda\gateways\disk
      copying conda\gateways\disk\link.py -> build\lib\conda\gateways\disk
      copying conda\gateways\disk\permissions.py -> build\lib\conda\gateways\disk
      copying conda\gateways\disk\read.py -> build\lib\conda\gateways\disk
      copying conda\gateways\disk\test.py -> build\lib\conda\gateways\disk
      copying conda\gateways\disk\update.py -> build\lib\conda\gateways\disk
      copying conda\gateways\disk\__init__.py -> build\lib\conda\gateways\disk
      creating build\lib\conda\gateways\repodata
      copying conda\gateways\repodata\__init__.py -> build\lib\conda\gateways\repodata
      creating build\lib\conda\plugins\virtual_packages
      copying conda\plugins\virtual_packages\archspec.py -> build\lib\conda\plugins\virtual_packages
      copying conda\plugins\virtual_packages\cuda.py -> build\lib\conda\plugins\virtual_packages
      copying conda\plugins\virtual_packages\linux.py -> build\lib\conda\plugins\virtual_packages
      copying conda\plugins\virtual_packages\osx.py -> build\lib\conda\plugins\virtual_packages
      copying conda\plugins\virtual_packages\windows.py -> build\lib\conda\plugins\virtual_packages
      copying conda\plugins\virtual_packages\__init__.py -> build\lib\conda\plugins\virtual_packages
      creating build\lib\conda\testing\gateways
      copying conda\testing\gateways\fixtures.py -> build\lib\conda\testing\gateways
      copying conda\testing\gateways\__init__.py -> build\lib\conda\testing\gateways
      creating build\lib\conda\testing\notices
      copying conda\testing\notices\fixtures.py -> build\lib\conda\testing\notices
      copying conda\testing\notices\helpers.py -> build\lib\conda\testing\notices
      copying conda\testing\notices\__init__.py -> build\lib\conda\testing\notices
      creating build\lib\conda\_vendor\boltons
      copying conda\_vendor\boltons\setutils.py -> build\lib\conda\_vendor\boltons
      copying conda\_vendor\boltons\timeutils.py -> build\lib\conda\_vendor\boltons
      copying conda\_vendor\boltons\__init__.py -> build\lib\conda\_vendor\boltons
      creating build\lib\conda\_vendor\cpuinfo
      copying conda\_vendor\cpuinfo\cpuinfo.py -> build\lib\conda\_vendor\cpuinfo
      copying conda\_vendor\cpuinfo\__init__.py -> build\lib\conda\_vendor\cpuinfo
      creating build\lib\conda\_vendor\frozendict
      copying conda\_vendor\frozendict\__init__.py -> build\lib\conda\_vendor\frozendict
      creating build\lib\conda\_vendor\toolz
      copying conda\_vendor\toolz\compatibility.py -> build\lib\conda\_vendor\toolz
      copying conda\_vendor\toolz\dicttoolz.py -> build\lib\conda\_vendor\toolz
      copying conda\_vendor\toolz\itertoolz.py -> build\lib\conda\_vendor\toolz
      copying conda\_vendor\toolz\recipes.py -> build\lib\conda\_vendor\toolz
      copying conda\_vendor\toolz\utils.py -> build\lib\conda\_vendor\toolz
      copying conda\_vendor\toolz\__init__.py -> build\lib\conda\_vendor\toolz
      creating build\lib\conda\_vendor\tqdm
      copying conda\_vendor\tqdm\asyncio.py -> build\lib\conda\_vendor\tqdm
      copying conda\_vendor\tqdm\auto.py -> build\lib\conda\_vendor\tqdm
      copying conda\_vendor\tqdm\cli.py -> build\lib\conda\_vendor\tqdm
      copying conda\_vendor\tqdm\std.py -> build\lib\conda\_vendor\tqdm
      copying conda\_vendor\tqdm\utils.py -> build\lib\conda\_vendor\tqdm
      copying conda\_vendor\tqdm\version.py -> build\lib\conda\_vendor\tqdm
      copying conda\_vendor\tqdm\_main.py -> build\lib\conda\_vendor\tqdm
      copying conda\_vendor\tqdm\_monitor.py -> build\lib\conda\_vendor\tqdm
      copying conda\_vendor\tqdm\_tqdm.py -> build\lib\conda\_vendor\tqdm
      copying conda\_vendor\tqdm\_utils.py -> build\lib\conda\_vendor\tqdm
      copying conda\_vendor\tqdm\__init__.py -> build\lib\conda\_vendor\tqdm
      copying conda\_vendor\tqdm\__main__.py -> build\lib\conda\_vendor\tqdm
      creating build\lib\conda\gateways\connection\adapters
      copying conda\gateways\connection\adapters\ftp.py -> build\lib\conda\gateways\connection\adapters
      copying conda\gateways\connection\adapters\localfs.py -> build\lib\conda\gateways\connection\adapters
      copying conda\gateways\connection\adapters\s3.py -> build\lib\conda\gateways\connection\adapters
      copying conda\gateways\connection\adapters\__init__.py -> build\lib\conda\gateways\connection\adapters
      creating build\lib\conda\shell
      copying conda\..\conda\shell\cli-32.exe -> build\lib\conda\..\conda\shell
      copying conda\..\conda\shell\cli-64.exe -> build\lib\conda\..\conda\shell
      copying conda\..\conda\shell\conda.xsh -> build\lib\conda\..\conda\shell
      copying conda\..\conda\shell\conda_icon.ico -> build\lib\conda\..\conda\shell
      creating build\lib\conda\shell\bin
      copying conda\..\conda\shell\bin\activate -> build\lib\conda\..\conda\shell\bin
      copying conda\..\conda\shell\bin\conda -> build\lib\conda\..\conda\shell\bin
      copying conda\..\conda\shell\bin\deactivate -> build\lib\conda\..\conda\shell\bin
      creating build\lib\conda\shell\condabin
      copying conda\..\conda\shell\condabin\activate.bat -> build\lib\conda\..\conda\shell\condabin
      copying conda\..\conda\shell\condabin\conda-hook.ps1 -> build\lib\conda\..\conda\shell\condabin
      copying conda\..\conda\shell\condabin\conda.bat -> build\lib\conda\..\conda\shell\condabin
      copying conda\..\conda\shell\condabin\Conda.psm1 -> build\lib\conda\..\conda\shell\condabin
      copying conda\..\conda\shell\condabin\conda_auto_activate.bat -> build\lib\conda\..\conda\shell\condabin
      copying conda\..\conda\shell\condabin\conda_hook.bat -> build\lib\conda\..\conda\shell\condabin
      copying conda\..\conda\shell\condabin\deactivate.bat -> build\lib\conda\..\conda\shell\condabin
      copying conda\..\conda\shell\condabin\rename_tmp.bat -> build\lib\conda\..\conda\shell\condabin
      copying conda\..\conda\shell\condabin\_conda_activate.bat -> build\lib\conda\..\conda\shell\condabin
      creating build\lib\conda\shell\etc
      creating build\lib\conda\shell\etc\fish
      creating build\lib\conda\shell\etc\fish\conf.d
      copying conda\..\conda\shell\etc\fish\conf.d\conda.fish -> build\lib\conda\..\conda\shell\etc\fish\conf.d
      creating build\lib\conda\shell\etc\profile.d
      copying conda\..\conda\shell\etc\profile.d\conda.csh -> build\lib\conda\..\conda\shell\etc\profile.d
      copying conda\..\conda\shell\etc\profile.d\conda.sh -> build\lib\conda\..\conda\shell\etc\profile.d
      creating build\lib\conda\shell\Library
      creating build\lib\conda\shell\Library\bin
      copying conda\..\conda\shell\Library\bin\conda.bat -> build\lib\conda\..\conda\shell\Library\bin
      creating build\lib\conda\shell\Scripts
      copying conda\..\conda\shell\Scripts\activate.bat -> build\lib\conda\..\conda\shell\Scripts
      copying conda\auxlib\LICENSE -> build\lib\conda\auxlib
      copying conda\_vendor\boltons\LICENSE -> build\lib\conda\_vendor\boltons
      UPDATING build\lib\conda\__init__.py
      WRITING build\lib\conda\.version with version None
      Traceback (most recent call last):
        File "C:\Users\chiarutt\.conda\envs\constructor-dev\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 351, in <module>
          main()
        File "C:\Users\chiarutt\.conda\envs\constructor-dev\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Users\chiarutt\.conda\envs\constructor-dev\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 249, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\build_meta.py", line 413, in build_wheel
          return self._build_with_temp_dir(['bdist_wheel'], '.whl',
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\build_meta.py", line 398, in _build_with_temp_dir
          self.run_setup()
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\build_meta.py", line 484, in run_setup
          super(_BuildMetaLegacyBackend,
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 53, in <module>
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
          return run_commands(dist)
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
          dist.run_commands()
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\dist.py", line 1208, in run_command
          super().run_command(command)
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 325, in run
          self.run_command("build")
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\dist.py", line 1208, in run_command
          super().run_command(command)
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
          self.run_command(cmd_name)
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\dist.py", line 1208, in run_command
          super().run_command(command)
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-build-env-r_hsa4j8\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-req-build-yvcyh2np\conda\auxlib\packaging.py", line 203, in run
          write_version_file(target_dir, self.distribution.metadata.version)
        File "C:\Users\chiarutt\AppData\Local\Temp\pip-req-build-yvcyh2np\conda\auxlib\packaging.py", line 195, in write_version_file
          f.write(version)
      TypeError: write() argument must be str, not None
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for conda
Failed to build conda
ERROR: Could not build wheels for conda, which is required to install pyproject.toml-based projects
jaimergp commented 1 year ago

Ugh, sorry the link in step 3 should have been conda/constructor, not conda/conda!

NicoKiaru commented 1 year ago

(Please let me know if you want me to stop spamming this issue and open a new one).

Thanks @jaimergp, there's some progress! I managed to create the env and pip install conda constructor!

However It seems that I can't create even a very simple installer with this new version.

I created a simple yaml file:

name: Test-Installer
version: 0.1
installer_type: all

channels:
  - conda-forge
  - defaults

specs:
  - python=3.7.12

And, with constructor . the process fails and returns this message:

(constructor-dev) C:\Users\nicol\Dropbox\BIOP\ABBA-Constructor\Test>constructor .
platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done
Checking for duplicate files ...
Checking for 'C:\Users\nicol\.conda\envs\constructor-dev\NSIS\makensis.exe'
NSIS version: v3.01
Reading: C:\Users\nicol\.conda\envs\constructor-dev\Lib\site-packages\constructor\nsis\main.nsi.tmpl
Created C:\Users\nicol\AppData\Local\Temp\tmpuijp4wi4\main.nsi file
Calling: ['C:\\Users\\nicol\\.conda\\envs\\constructor-dev\\NSIS\\makensis.exe', '/V2', 'C:\\Users\\nicol\\AppData\\Local\\Temp\\tmpuijp4wi4\\main.nsi']
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\nicol\.conda\envs\constructor-dev\Scripts\constructor.exe\__main__.py", line 7, in <module>
  File "C:\Users\nicol\.conda\envs\constructor-dev\Lib\site-packages\constructor\main.py", line 347, in main
    main_build(dir_path, output_dir=out_dir, platform=args.platform,
  File "C:\Users\nicol\.conda\envs\constructor-dev\Lib\site-packages\constructor\main.py", line 172, in main_build
    create(info, verbose=verbose)
  File "C:\Users\nicol\.conda\envs\constructor-dev\Lib\site-packages\constructor\winexe.py", line 413, in create
    process.check_returncode()
  File "C:\Users\nicol\.conda\envs\constructor-dev\Lib\subprocess.py", line 501, in check_returncode
    raise CalledProcessError(self.returncode, self.args, self.stdout,
subprocess.CalledProcessError: Command '['C:\\Users\\nicol\\.conda\\envs\\constructor-dev\\NSIS\\makensis.exe', '/V2', 'C:\\Users\\nicol\\AppData\\Local\\Temp\\tmpuijp4wi4\\main.nsi']' returned non-zero exit status 1.

Any idea what went wrong and how to solve this ?

jaimergp commented 1 year ago

Can you manually update to NSIS 3.08?conda install https://anaconda.org/conda-forge/nsis/3.08/download/win-64/nsis-3.08-h57928b3_0.tar.bz2

NicoKiaru commented 1 year ago

Hello @jaimergp

Thanks, it worked!

However, it seems the post install script are ignored:

image

Has the key changed (it was working before) ?

post_install: install_code.sh   # [unix]
post_install: install_code.bat  # [win]
jaimergp commented 1 year ago

I think that's https://github.com/conda/constructor/issues/576.

Since the original issue is now solved, let's discuss this other problem in that other issue. Thanks!