mamba icon indicating copy to clipboard operation
mamba copied to clipboard

Unicode error on windows when creating environment with package sphinx-automodapi

Open maxnoe opened this issue 4 months ago • 0 comments

Troubleshooting docs

  • [x] My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • [x] I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Micromamba

Search tried in issue tracker

Similar but different issue closed in 2024: #3228

Latest version of Mamba

  • [x] My problem is not solved with the latest version

Tried in Conda?

I do not have this problem with Conda, just with Mamba

Describe your issue

Creating a new environment that contains the package sphinx-automodapi from conda forge fails on windows with an encoding / unicode error:

PS C:\Users\MaximilianLinhoff\micromamba-test> .\micromamba.exe create -p .\test-env python=3.12 sphinx-automodapi
conda-forge/noarch                                          Using cache
conda-forge/win-64                                          Using cache


Transaction

  Prefix: test-env

  Updating specs:

   - python=3.12
   - sphinx-automodapi


  Package                               Version  Build               Channel           Size
---------------------------------------------------------------------------------------------
  Install:
---------------------------------------------------------------------------------------------

  + alabaster                             1.0.0  pyhd8ed1ab_1        conda-forge     Cached
  + babel                                2.17.0  pyhd8ed1ab_0        conda-forge     Cached
  + brotli-python                         1.1.0  py312h275cf98_3     conda-forge     Cached
  + bzip2                                 1.0.8  h2466b09_7          conda-forge     Cached
  + ca-certificates                    2025.8.3  h4c7d964_0          conda-forge     Cached
  + certifi                            2025.8.3  pyhd8ed1ab_0        conda-forge     Cached
  + cffi                                 1.17.1  py312h4389bb4_0     conda-forge     Cached
  + charset-normalizer                    3.4.3  pyhd8ed1ab_0        conda-forge     Cached
  + colorama                              0.4.6  pyhd8ed1ab_1        conda-forge     Cached
  + docutils                             0.21.2  pyhd8ed1ab_1        conda-forge     Cached
  + h2                                    4.2.0  pyhd8ed1ab_0        conda-forge     Cached
  + hpack                                 4.1.0  pyhd8ed1ab_0        conda-forge     Cached
  + hyperframe                            6.1.0  pyhd8ed1ab_0        conda-forge     Cached
  + idna                                   3.10  pyhd8ed1ab_1        conda-forge     Cached
  + imagesize                             1.4.1  pyhd8ed1ab_0        conda-forge     Cached
  + jinja2                                3.1.6  pyhd8ed1ab_0        conda-forge     Cached
  + libexpat                              2.7.1  hac47afa_0          conda-forge     Cached
  + libffi                                3.4.6  h537db12_1          conda-forge     Cached
  + liblzma                               5.8.1  h2466b09_2          conda-forge     Cached
  + libsqlite                            3.50.4  hf5d6505_0          conda-forge     Cached
  + libzlib                               1.3.1  h2466b09_2          conda-forge     Cached
  + markupsafe                            3.0.2  py312h31fea79_1     conda-forge     Cached
  + openssl                               3.5.2  h725018a_0          conda-forge     Cached
  + packaging                              25.0  pyh29332c3_1        conda-forge     Cached
  + pip                                    25.2  pyh8b19718_0        conda-forge     Cached
  + pycparser                              2.22  pyh29332c3_1        conda-forge     Cached
  + pygments                             2.19.2  pyhd8ed1ab_0        conda-forge     Cached
  + pysocks                               1.7.1  pyh09c184e_7        conda-forge     Cached
  + python                              3.12.11  h3f84c4b_0_cpython  conda-forge     Cached
  + python_abi                             3.12  8_cp312             conda-forge     Cached
  + pytz                                 2025.2  pyhd8ed1ab_0        conda-forge     Cached
  + requests                             2.32.5  pyhd8ed1ab_0        conda-forge     Cached
  + roman-numerals-py                     3.1.0  pyhd8ed1ab_0        conda-forge     Cached
  + setuptools                           80.9.0  pyhff2d567_0        conda-forge     Cached
  + snowballstemmer                       3.0.1  pyhd8ed1ab_0        conda-forge     Cached
  + sphinx                                8.3.0  pyhd8ed1ab_0        conda-forge     Cached
  + sphinx-automodapi                    0.20.0  pyhbacfb6d_0        conda-forge     Cached
  + sphinxcontrib-applehelp               2.0.0  pyhd8ed1ab_1        conda-forge     Cached
  + sphinxcontrib-devhelp                 2.0.0  pyhd8ed1ab_1        conda-forge     Cached
  + sphinxcontrib-htmlhelp                2.1.0  pyhd8ed1ab_1        conda-forge     Cached
  + sphinxcontrib-jsmath                  1.0.1  pyhd8ed1ab_1        conda-forge     Cached
  + sphinxcontrib-qthelp                  2.0.0  pyhd8ed1ab_1        conda-forge     Cached
  + sphinxcontrib-serializinghtml        1.1.10  pyhd8ed1ab_1        conda-forge     Cached
  + tk                                   8.6.13  h2c6b04d_2          conda-forge     Cached
  + tzdata                                2025b  h78e105d_0          conda-forge     Cached
  + ucrt                           10.0.22621.0  h57928b3_1          conda-forge     Cached
  + urllib3                               2.5.0  pyhd8ed1ab_0        conda-forge     Cached
  + vc                                     14.3  h41ae7f8_31         conda-forge     Cached
  + vc14_runtime                    14.44.35208  h818238b_31         conda-forge     Cached
  + vcomp14                         14.44.35208  h818238b_31         conda-forge     Cached
  + wheel                                0.45.1  pyhd8ed1ab_1        conda-forge     Cached
  + win_inet_pton                         1.1.0  pyh7428d3b_8        conda-forge     Cached
  + zstandard                            0.23.0  py312he06e257_3     conda-forge     Cached

  Summary:

  Install: 53 packages

  Total download: 0 B

---------------------------------------------------------------------------------------------


Confirm changes: [Y/n] y

Transaction starting
Linking tzdata-2025b-h78e105d_0
Linking ca-certificates-2025.8.3-h4c7d964_0
Linking python_abi-3.12-8_cp312
Linking ucrt-10.0.22621.0-h57928b3_1
Linking vcomp14-14.44.35208-h818238b_31
Linking vc14_runtime-14.44.35208-h818238b_31
Linking vc-14.3-h41ae7f8_31
Linking tk-8.6.13-h2c6b04d_2
Linking openssl-3.5.2-h725018a_0
Linking libzlib-1.3.1-h2466b09_2
Linking libsqlite-3.50.4-hf5d6505_0
Linking liblzma-5.8.1-h2466b09_2
Linking libffi-3.4.6-h537db12_1
Linking libexpat-2.7.1-hac47afa_0
Linking bzip2-1.0.8-h2466b09_7
Linking python-3.12.11-h3f84c4b_0_cpython
Linking wheel-0.45.1-pyhd8ed1ab_1
Linking setuptools-80.9.0-pyhff2d567_0
Linking pip-25.2-pyh8b19718_0
Linking pycparser-2.22-pyh29332c3_1
Linking win_inet_pton-1.1.0-pyh7428d3b_8
Linking hyperframe-6.1.0-pyhd8ed1ab_0
Linking hpack-4.1.0-pyhd8ed1ab_0
Linking pytz-2025.2-pyhd8ed1ab_0
Linking idna-3.10-pyhd8ed1ab_1
Linking charset-normalizer-3.4.3-pyhd8ed1ab_0
Linking certifi-2025.8.3-pyhd8ed1ab_0
Linking imagesize-1.4.1-pyhd8ed1ab_0
Linking sphinxcontrib-jsmath-1.0.1-pyhd8ed1ab_1
Linking snowballstemmer-3.0.1-pyhd8ed1ab_0
Linking roman-numerals-py-3.1.0-pyhd8ed1ab_0
Linking pygments-2.19.2-pyhd8ed1ab_0
Linking packaging-25.0-pyh29332c3_1
Linking docutils-0.21.2-pyhd8ed1ab_1
Linking colorama-0.4.6-pyhd8ed1ab_1
Linking alabaster-1.0.0-pyhd8ed1ab_1
Linking pysocks-1.7.1-pyh09c184e_7
Linking h2-4.2.0-pyhd8ed1ab_0
Linking babel-2.17.0-pyhd8ed1ab_0
Linking brotli-python-1.1.0-py312h275cf98_3
Linking markupsafe-3.0.2-py312h31fea79_1
Linking cffi-1.17.1-py312h4389bb4_0
Linking zstandard-0.23.0-py312he06e257_3
Linking jinja2-3.1.6-pyhd8ed1ab_0
Linking urllib3-2.5.0-pyhd8ed1ab_0
Linking requests-2.32.5-pyhd8ed1ab_0
Linking sphinx-8.3.0-pyhd8ed1ab_0
Linking sphinxcontrib-applehelp-2.0.0-pyhd8ed1ab_1
Linking sphinxcontrib-devhelp-2.0.0-pyhd8ed1ab_1
Linking sphinxcontrib-htmlhelp-2.1.0-pyhd8ed1ab_1
Linking sphinxcontrib-qthelp-2.0.0-pyhd8ed1ab_1
Linking sphinxcontrib-serializinghtml-1.1.10-pyhd8ed1ab_1
Linking sphinx-automodapi-0.20.0-pyhbacfb6d_0
critical libmamba No mapping for the Unicode character exists in the target multi-byte code page.

Also see: https://github.com/mamba-org/setup-micromamba/issues/280

mamba info / micromamba info

PS C:\Users\MaximilianLinhoff\micromamba-test> .\micromamba.exe info

       libmamba version : 2.3.2
     micromamba version : 2.3.2
           curl version : libcurl/8.15.0-DEV Schannel zlib/1.3.1
     libarchive version : libarchive 3.8.1 zlib/1.3.1 liblzma/5.8.1 bz2lib/1.0.8 liblz4/1.10.0 libzstd/1.5.7 liblzo2/2.d
       envs directories : C:\Users\MaximilianLinhoff\AppData\Roaming\mamba\envs
          package cache : C:\Users\MaximilianLinhoff\AppData\Roaming\mamba\pkgs
                          C:\Users\MaximilianLinhoff\.mamba\pkgs
                          C:\Users\MaximilianLinhoff\AppData\Roaming\.mamba\pkgs
            environment : base
           env location : C:\Users\MaximilianLinhoff\AppData\Roaming\mamba
      user config files : C:\Users\MaximilianLinhoff\.mambarc
 populated config files :
       virtual packages : __win=10.0.26100=0
                          __archspec=1=x86_64_v3
               channels : https://conda.anaconda.org/conda-forge/noarch
                          https://conda.anaconda.org/conda-forge/win-64
       base environment : C:\Users\MaximilianLinhoff\AppData\Roaming\mamba
               platform : win-64

maxnoe avatar Aug 27 '25 12:08 maxnoe