conda-forge / latexindent.pl-feedstock

A conda-smithy repository for latexindent.pl.
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

[windows] conda installation fail due to perl version #42

Open sjiang95 opened 4 months ago

sjiang95 commented 4 months ago

Solution to issue cannot be found in the documentation.

Issue

Transferred from https://github.com/cmhughes/latexindent.pl/issues/539.

Cannot install on windows via conda

actual/given output

> conda install latexindent.pl -c conda-forge
 - conda-forge
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: failed
LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides perl >=5.32.1,<6.0a0 *_perl5 needed by latexindent.pl-3.13.2-pl5321hd8ed1ab_0

Could not solve for environment specs
The following package could not be installed
└─ latexindent.pl is not installable because it requires
   └─ perl >=5.32.1,<6.0a0 *_perl5, which does not exist (perhaps a missing channel).

However,

> conda list perl
# packages in environment at D:\ProgramData\miniconda3\envs\latex:
#
# Name                    Version                   Build  Channel
perl                      5.32.1.1        0_haa95532_strawberry

desired or expected output

Successful installation.

anything else

I have searched and found the same issue is remained unsolved: #446

Should the dependency of latexindent.pl be modified to something like perl >=5.32.1,<6.0a0 *_perl5 *_strawberry? But don't know how.

Installed packages

# packages in environment at D:\ProgramData\miniconda3\envs\latex:
#
# Name                    Version                   Build  Channel
bzip2                     1.0.8                h2bbff1b_5
ca-certificates           2024.3.11            haa95532_0
cffi                      1.16.0          py312h2bbff1b_0
cfgv                      3.4.0           py312haa95532_0
distlib                   0.3.6           py312haa95532_0
expat                     2.6.2                hd77b12b_0
filelock                  3.13.1          py312haa95532_0
identify                  2.5.5           py312haa95532_0
libffi                    3.4.4                hd77b12b_0
nodeenv                   1.7.0           py312haa95532_0
openssl                   3.0.13               h2bbff1b_0
perl                      5.32.1.1        0_haa95532_strawberry
pip                       23.3.1          py312haa95532_0
platformdirs              2.4.0              pyhd3eb1b0_0
pre-commit                3.4.0           py312haa95532_1
pycparser                 2.21               pyhd3eb1b0_0
python                    3.12.3               h1d929f7_0
pyyaml                    6.0.1           py312h2bbff1b_0
setuptools                68.2.2          py312haa95532_0
six                       1.16.0                   pypi_0    pypi
sqlite                    3.41.2               h2bbff1b_0
tk                        8.6.12               h2bbff1b_0
tzdata                    2024a                h04d1e81_0
ukkonen                   1.0.1           py312h59b6b97_0
vc                        14.2                 h21ff451_1
virtualenv                20.17.1         py312haa95532_0
vs2015_runtime            14.27.29016          h5e58377_2
wheel                     0.41.2          py312haa95532_0
xz                        5.4.6                h8cc25b3_0
yaml                      0.2.5                he774522_0
zlib                      1.2.13               h8cc25b3_0

Environment info

Note: I replaced the practical username with `<myUsername>`.

     active environment : latex
    active env location : D:\ProgramData\miniconda3\envs\latex
            shell level : 2
       user config file : C:\Users\<myUsername>\.condarc
 populated config files :
          conda version : 24.3.0
    conda-build version : not installed
         python version : 3.11.9.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=ivybridge
                          __conda=24.3.0=0
                          __cuda=9.1=0
                          __win=0=0
       base environment : D:\ProgramData\miniconda3  (writable)
      conda av data dir : D:\ProgramData\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 : D:\ProgramData\miniconda3\pkgs
                          C:\Users\<myUsername>\.conda\pkgs
                          C:\Users\<myUsername>\AppData\Local\conda\conda\pkgs
       envs directories : D:\ProgramData\miniconda3\envs
                          C:\Users\<myUsername>\.conda\envs
                          C:\Users\<myUsername>\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/24.3.0 requests/2.31.0 CPython/3.11.9 Windows/10 Windows/10.0.19044 solver/libmamba cond
a-libmamba-solver/24.1.0 libmambapy/1.5.8
          administrator : True
             netrc file : None
           offline mode : False
apple-phi commented 2 months ago

I'm getting this exact issue too; would really appreciate a fix!!