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

WSL installation #16

Open
WeizhenWang-1210 opened this issue Feb 25, 2025 · 3 comments
Open

WSL installation #16

WeizhenWang-1210 opened this issue Feb 25, 2025 · 3 comments

Comments

@WeizhenWang-1210
Copy link

When I tried to install metaUrban on WSL2, I keep having issues installing the 'ncurses' package.

(base) arnoe@Weizhen:/mnt/e/metaurban$ conda install ncurses
Channels:
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /mnt/e/wsl_conda

  added / updated specs:
    - ncurses


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    certifi-2025.1.31          |  py312h06a4308_0         162 KB
    conda-24.11.3              |  py312h06a4308_0         1.1 MB
    ------------------------------------------------------------
                                           Total:         1.3 MB

The following NEW packages will be INSTALLED:

  ncurses            pkgs/main/linux-64::ncurses-6.4-h6a678d5_0

The following packages will be UPDATED:

  ca-certificates                      2024.9.24-h06a4308_0 --> 2024.12.31-h06a4308_0
  certifi                         2024.8.30-py312h06a4308_0 --> 2025.1.31-py312h06a4308_0
  conda                              24.9.2-py312h06a4308_0 --> 24.11.3-py312h06a4308_0


Proceed ([y]/n)? y


Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: failed

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/exception_handler.py", line 18, in __call__
        return func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/cli/main.py", line 61, in main_subshell
        exit_code = do_call(args, parser)
                    ^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/cli/conda_argparse.py", line 205, in do_call
        result = getattr(module, func_name)(args, parser)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/notices/core.py", line 132, in wrapper
        return func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/cli/main_install.py", line 152, in execute
        return install(args, parser, "install")
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/cli/install.py", line 495, in install
        handle_txn(unlink_link_transaction, prefix, args, newenv)
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/cli/install.py", line 566, in handle_txn
        unlink_link_transaction.execute()
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/core/link.py", line 349, in execute
        self.verify()
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/common/io.py", line 86, in decorated
        return f(*args, **kwds)
               ^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/core/link.py", line 305, in verify
        exceptions = self._verify(self.prefix_setups, self.prefix_action_groups)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/core/link.py", line 811, in _verify
        for exc in self.verify_executor.map(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/common/io.py", line 588, in map
        yield func(thing)
              ^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/core/link.py", line 588, in _verify_individual_level
        error_result = axn.verify()
                       ^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/core/path_actions.py", line 394, in verify
        source_size_in_bytes = getsize(self.source_full_path)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "<frozen genericpath>", line 62, in getsize
    OSError: [Errno 40] Too many levels of symbolic links: '/mnt/e/wsl_conda/pkgs/ncurses-6.4-h6a678d5_0/share/terminfo/n/ncr260vt300wpp'

`$ /mnt/e/wsl_conda/bin/conda install ncurses`

  environment variables:
                 CIO_TEST=<not set>
    CONDA_ALLOW_SOFTLINKS=false
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=/mnt/e/wsl_conda/bin/conda
             CONDA_PREFIX=/mnt/e/wsl_conda
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=/mnt/e/wsl_conda/bin/python
               CONDA_ROOT=/mnt/e/wsl_conda
              CONDA_SHLVL=1
           CURL_CA_BUNDLE=<not set>
               LD_PRELOAD=<not set>
                     PATH=/mnt/e/wsl_conda/bin:/mnt/e/wsl_conda/condabin:/usr/local/sbin:/usr/lo
                          cal/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr
                          /lib/wsl/lib:/mnt/c/Program Files/NVIDIA GPU Computing
                          Toolkit/CUDA/v11.7/bin:/mnt/c/Program Files/NVIDIA GPU Computing
                          Toolkit/CUDA/v11.7/libnvvp:/mnt/c/Program Files (x86)/Razer Chroma
                          SDK/bin:/mnt/c/Program Files/Razer Chroma SDK/bin:/mnt/c/Program Files
                          (x86)/Razer/ChromaBroadcast/bin:/mnt/c/Program
                          Files/Razer/ChromaBroadcast/bin:/mnt/c/Program Files/Common Files/Orac
                          le/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows
                          /System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/W
                          indows/System32/OpenSSH:/mnt/c/Program Files (x86)/NVIDIA Corporation/
                          PhysX/Common:/mnt/f/node:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c
                          /WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0:
                          /mnt/c/WINDOWS/System32/OpenSSH:/mnt/c/WINDOWS/system32/config/systemp
                          rofile/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/arnoe/AppData/
                          Local/Programs/Python/Python311/Scripts:/mnt/c/Users/arnoe/AppData/Loc
                          al/Programs/Python/Python311:/mnt/c/Users/arnoe/AppData/Local/Microsof
                          t/WindowsApps:/mnt/f/IDEs/VSCode/Microsoft VS
                          Code/bin:/mnt/f/IDEs/WebStorm 2021.2.2/bin:/mnt/f/IDEs/PyCharm
                          Community Edition 2021.2.2/bin:/mnt/c/Program
                          Files/Java/jdk-17:/mnt/d/miryunglab/apache-maven-
                          3.8.4/bin:/mnt/c/Users/arnoe/AppData/Roaming/npm:/mnt/c/Users/arnoe/Ap
                          pData/Local/GitHubDesktop/bin:/mnt/f/IDEs/Microsoft VS
                          Code/bin:/mnt/c/Program Files/NVIDIA Corporation/Nsight Compute
                          2022.2.0:/mnt/c/Program Files/dotnet:/mnt/f/Git/cmd:/mnt/c/Program
                          Files/NVIDIA Corporation/NVIDIA app/NvDLISR:/mnt/c/WINDOWS/system32:/m
                          nt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/Wind
                          owsPowerShell/v1.0:/mnt/c/WINDOWS/System32/OpenSSH:/mnt/f/Python/Scrip
                          ts:/mnt/f/Python:/mnt/c/Users/arnoe/AppData/Local/Programs/Python/Laun
                          cher:/mnt/c/Users/arnoe/AppData/Local/Microsoft/WindowsApps:/mnt/f/IDE
                          s/VSCode/Microsoft VS Code/bin:/mnt/f/webstorm/WebStorm
                          2024.2.4/bin:/mnt/f/IDEs/PyCharm Community Edition
                          2021.2.2/bin:/mnt/c/Program
                          Files/Java/jdk-17:/mnt/d/miryunglab/apache-maven-
                          3.8.4/bin:/mnt/c/Users/arnoe/AppData/Roaming/npm:/mnt/c/Users/arnoe/Ap
                          pData/Local/GitHubDesktop/bin:/mnt/f/IDEs/Microsoft VS
                          Code/bin:/mnt/e/Pycharm_Pro/PyCharm 2023.3.3/bin:/mnt/e/gcloud/google-
                          cloud-sdk/bin:/snap/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : base
    active env location : /mnt/e/wsl_conda
            shell level : 1
       user config file : /home/arnoe/.condarc
 populated config files : /mnt/e/wsl_conda/.condarc
          conda version : 24.9.2
    conda-build version : 24.9.0
         python version : 3.12.7.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=x86_64_v4
                          __conda=24.9.2=0
                          __cuda=12.8=0
                          __glibc=2.39=0
                          __linux=5.15.167.4=0
                          __unix=0=0
       base environment : /mnt/e/wsl_conda  (writable)
      conda av data dir : /mnt/e/wsl_conda/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /mnt/e/wsl_conda/pkgs
                          /home/arnoe/.conda/pkgs
       envs directories : /mnt/e/wsl_conda/envs
                          /home/arnoe/.conda/envs
               platform : linux-64
             user-agent : conda/24.9.2 requests/2.32.3 CPython/3.12.7 Linux/5.15.167.4-microsoft-standard-WSL2 ubuntu/24.04.1 glibc/2.39 solver/libmamba conda-libmamba-solver/24.9.0 libmambapy/1.5.8 aau/0.4.4 c/. s/. e/.
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False


An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.

Example: conda --no-plugins install <package>

Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
the command line to run the command without plugins enabled.

Example: CONDA_NO_PLUGINS=true conda install <package>

If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers? [y/N]:
Timeout reached. No report sent.

Could you look into it? I'm using X86-64 windows 11 machine.

@DhlinV
Copy link
Collaborator

DhlinV commented Feb 25, 2025

I think that we don't need to install this package separately. Could you please provide more details about your environment and what issue you met first when following the readme to help us do troubleshooting? Thank you!

@WeizhenWang-1210
Copy link
Author

WeizhenWang-1210 commented Feb 25, 2025

Following the README.md, I just used bash install.sh after pulling the repo from the Github. And it produces the following error.

(base) arnoe@Weizhen:/mnt/e/metaurban$ conda env list
# conda environments:
#
base                  *  /mnt/e/wsl_conda

(base) arnoe@Weizhen:/mnt/e/metaurban$ bash install.sh
Channels:
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /mnt/e/wsl_conda/envs/metaurban

  added / updated specs:
    - python=3.10


The following NEW packages will be INSTALLED:

  _libgcc_mutex      pkgs/main/linux-64::_libgcc_mutex-0.1-main
  _openmp_mutex      pkgs/main/linux-64::_openmp_mutex-5.1-1_gnu
  bzip2              pkgs/main/linux-64::bzip2-1.0.8-h5eee18b_6
  ca-certificates    pkgs/main/linux-64::ca-certificates-2024.12.31-h06a4308_0
  ld_impl_linux-64   pkgs/main/linux-64::ld_impl_linux-64-2.40-h12ee557_0
  libffi             pkgs/main/linux-64::libffi-3.4.4-h6a678d5_1
  libgcc-ng          pkgs/main/linux-64::libgcc-ng-11.2.0-h1234567_1
  libgomp            pkgs/main/linux-64::libgomp-11.2.0-h1234567_1
  libstdcxx-ng       pkgs/main/linux-64::libstdcxx-ng-11.2.0-h1234567_1
  libuuid            pkgs/main/linux-64::libuuid-1.41.5-h5eee18b_0
  ncurses            pkgs/main/linux-64::ncurses-6.4-h6a678d5_0
  openssl            pkgs/main/linux-64::openssl-3.0.15-h5eee18b_0
  pip                pkgs/main/linux-64::pip-25.0-py310h06a4308_0
  python             pkgs/main/linux-64::python-3.10.16-he870216_1
  readline           pkgs/main/linux-64::readline-8.2-h5eee18b_0
  setuptools         pkgs/main/linux-64::setuptools-75.8.0-py310h06a4308_0
  sqlite             pkgs/main/linux-64::sqlite-3.45.3-h5eee18b_0
  tk                 pkgs/main/linux-64::tk-8.6.14-h39e8969_0
  tzdata             pkgs/main/noarch::tzdata-2025a-h04d1e81_0
  wheel              pkgs/main/linux-64::wheel-0.45.1-py310h06a4308_0
  xz                 pkgs/main/linux-64::xz-5.6.4-h5eee18b_1
  zlib               pkgs/main/linux-64::zlib-1.2.13-h5eee18b_1



Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: failed

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/exception_handler.py", line 18, in __call__
        return func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/cli/main.py", line 61, in main_subshell
        exit_code = do_call(args, parser)
                    ^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/cli/conda_argparse.py", line 205, in do_call
        result = getattr(module, func_name)(args, parser)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/notices/core.py", line 132, in wrapper
        return func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/cli/main_create.py", line 154, in execute
        return install(args, parser, "create")
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/cli/install.py", line 495, in install
        handle_txn(unlink_link_transaction, prefix, args, newenv)
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/cli/install.py", line 566, in handle_txn
        unlink_link_transaction.execute()
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/core/link.py", line 349, in execute
        self.verify()
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/common/io.py", line 86, in decorated
        return f(*args, **kwds)
               ^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/core/link.py", line 305, in verify
        exceptions = self._verify(self.prefix_setups, self.prefix_action_groups)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/core/link.py", line 811, in _verify
        for exc in self.verify_executor.map(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/common/io.py", line 588, in map
        yield func(thing)
              ^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/core/link.py", line 588, in _verify_individual_level
        error_result = axn.verify()
                       ^^^^^^^^^^^^
      File "/mnt/e/wsl_conda/lib/python3.12/site-packages/conda/core/path_actions.py", line 394, in verify
        source_size_in_bytes = getsize(self.source_full_path)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "<frozen genericpath>", line 62, in getsize
    OSError: [Errno 40] Too many levels of symbolic links: '/mnt/e/wsl_conda/pkgs/ncurses-6.4-h6a678d5_0/share/terminfo/n/ncr260vt300wpp'

`$ /mnt/e/wsl_conda/bin/conda create -n metaurban python=3.10 -y`

  environment variables:
                 CIO_TEST=<not set>
    CONDA_ALLOW_SOFTLINKS=false
        CONDA_DEFAULT_ENV=base
                CONDA_EXE=/mnt/e/wsl_conda/bin/conda
             CONDA_PREFIX=/mnt/e/wsl_conda
    CONDA_PROMPT_MODIFIER=(base)
         CONDA_PYTHON_EXE=/mnt/e/wsl_conda/bin/python
               CONDA_ROOT=/mnt/e/wsl_conda
              CONDA_SHLVL=1
           CURL_CA_BUNDLE=<not set>
               LD_PRELOAD=<not set>
                     PATH=/mnt/e/wsl_conda/bin:/mnt/e/wsl_conda/condabin:/usr/local/sbin:/usr/lo
                          cal/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr
                          /lib/wsl/lib:/mnt/c/Program Files/NVIDIA GPU Computing
                          Toolkit/CUDA/v11.7/bin:/mnt/c/Program Files/NVIDIA GPU Computing
                          Toolkit/CUDA/v11.7/libnvvp:/mnt/c/Program Files (x86)/Razer Chroma
                          SDK/bin:/mnt/c/Program Files/Razer Chroma SDK/bin:/mnt/c/Program Files
                          (x86)/Razer/ChromaBroadcast/bin:/mnt/c/Program
                          Files/Razer/ChromaBroadcast/bin:/mnt/c/Program Files/Common Files/Orac
                          le/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows
                          /System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/W
                          indows/System32/OpenSSH:/mnt/c/Program Files (x86)/NVIDIA Corporation/
                          PhysX/Common:/mnt/f/node:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c
                          /WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0:
                          /mnt/c/WINDOWS/System32/OpenSSH:/mnt/c/WINDOWS/system32/config/systemp
                          rofile/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/arnoe/AppData/
                          Local/Programs/Python/Python311/Scripts:/mnt/c/Users/arnoe/AppData/Loc
                          al/Programs/Python/Python311:/mnt/c/Users/arnoe/AppData/Local/Microsof
                          t/WindowsApps:/mnt/f/IDEs/VSCode/Microsoft VS
                          Code/bin:/mnt/f/IDEs/WebStorm 2021.2.2/bin:/mnt/f/IDEs/PyCharm
                          Community Edition 2021.2.2/bin:/mnt/c/Program
                          Files/Java/jdk-17:/mnt/d/miryunglab/apache-maven-
                          3.8.4/bin:/mnt/c/Users/arnoe/AppData/Roaming/npm:/mnt/c/Users/arnoe/Ap
                          pData/Local/GitHubDesktop/bin:/mnt/f/IDEs/Microsoft VS
                          Code/bin:/mnt/c/Program Files/NVIDIA Corporation/Nsight Compute
                          2022.2.0:/mnt/c/Program Files/dotnet:/mnt/f/Git/cmd:/mnt/c/Program
                          Files/NVIDIA Corporation/NVIDIA app/NvDLISR:/mnt/c/WINDOWS/system32:/m
                          nt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/Wind
                          owsPowerShell/v1.0:/mnt/c/WINDOWS/System32/OpenSSH:/mnt/f/Python/Scrip
                          ts:/mnt/f/Python:/mnt/c/Users/arnoe/AppData/Local/Programs/Python/Laun
                          cher:/mnt/c/Users/arnoe/AppData/Local/Microsoft/WindowsApps:/mnt/f/IDE
                          s/VSCode/Microsoft VS Code/bin:/mnt/f/webstorm/WebStorm
                          2024.2.4/bin:/mnt/f/IDEs/PyCharm Community Edition
                          2021.2.2/bin:/mnt/c/Program
                          Files/Java/jdk-17:/mnt/d/miryunglab/apache-maven-
                          3.8.4/bin:/mnt/c/Users/arnoe/AppData/Roaming/npm:/mnt/c/Users/arnoe/Ap
                          pData/Local/GitHubDesktop/bin:/mnt/f/IDEs/Microsoft VS
                          Code/bin:/mnt/e/Pycharm_Pro/PyCharm 2023.3.3/bin:/mnt/e/gcloud/google-
                          cloud-sdk/bin:/snap/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : base
    active env location : /mnt/e/wsl_conda
            shell level : 1
       user config file : /home/arnoe/.condarc
 populated config files : /mnt/e/wsl_conda/.condarc
          conda version : 24.9.2
    conda-build version : 24.9.0
         python version : 3.12.7.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=x86_64_v4
                          __conda=24.9.2=0
                          __cuda=12.8=0
                          __glibc=2.39=0
                          __linux=5.15.167.4=0
                          __unix=0=0
       base environment : /mnt/e/wsl_conda  (writable)
      conda av data dir : /mnt/e/wsl_conda/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /mnt/e/wsl_conda/pkgs
                          /home/arnoe/.conda/pkgs
       envs directories : /mnt/e/wsl_conda/envs
                          /home/arnoe/.conda/envs
               platform : linux-64
             user-agent : conda/24.9.2 requests/2.32.3 CPython/3.12.7 Linux/5.15.167.4-microsoft-standard-WSL2 ubuntu/24.04.1 glibc/2.39 solver/libmamba conda-libmamba-solver/24.9.0 libmambapy/1.5.8 aau/0.4.4 c/. s/. e/.
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False


An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.

Example: conda --no-plugins install <package>

Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
the command line to run the command without plugins enabled.

Example: CONDA_NO_PLUGINS=true conda install <package>

Upload did not complete.
install.sh: line 11: pip: command not found
install.sh: line 14: pip: command not found
compile.sh: line 3: cmake: command not found
compile.sh: line 4: make: command not found

@DhlinV
Copy link
Collaborator

DhlinV commented Feb 25, 2025

It seems that this error is caused by Too many levels of symbolic links. It is highly recommended that storing conda inside~ on the WSL ext4 filesystem avoids the Windows symlink translation issues. This is the most reliable way to prevent the “Too many levels of symbolic links” error. But I think that we can fix this issue by creating a soft link in your home path via:

cd ~
ln -s /mnt/e/wsl_conda ./

and change the ~/.bashrc

__conda_setup="$('/home/arnoe/wsl_conda/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/home/arnoe/wsl_conda/etc/profile.d/conda.sh" ]; then
        . "/home/arnoe/wsl_conda/etc/profile.d/conda.sh"
    else
        export PATH="/home/arnoe/wsl_conda/bin:$PATH"
    fi
fi
unset __conda_setup

and then use source ~/.bashrc to restart the terminal, then try to create the env via conda.

Additionally, it also shows that you haven't install cmake, make, please install them via
sudo apt-get install cmake make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants