conda-forge / conda-forge/miniforge

Windows installation - pkg_dirs gets bad path \\server\share\conda\pkgs

Open
#347 5 comments 0 reactions 0 assignees View on GitHub
bug condarc
Dominant language
Shell
Stars
10.2k
Forks
530
PR merge metrics
No merged PRs in 30d

Description

### Solution to issue cannot be found in the documentation.

- [X] I checked the documentation.

### Issue

This concerns a fresh installation on Windows OS 10.0.22000 N/A Build 22000 x64.

When using the ~[Miniforge-pypy3-Windows-x86_64](https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge-pypy3-Windows-x86_64.exe)~ [Miniforge3-Windows-x86_64](https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Windows-x86_64.exe) installation, for some reason the package cache default path is assigned to `\\server\share\conda\pkgs`, which then throws the following error whenever I try to do `conda update` or `conda create` commands:

`NotWritableError: The current user does not have write permissions to a required path. path: \\server\share\conda\pkgs\urls.txt`

When I use `conda config --show pkgs_dirs`, I get the following list:
- \\server\share\conda\pkgs
- C:\Users\username\miniconda3\pkgs

Hence I ran `conda config —add pkgs_dirs C:\Users\username\miniconda3\pkgs` which pushed the latter path to the top of the list. From thereon, my conda installation is now working and I can create environments as per normal.

I had the same issue with [miniconda](https://docs.conda.io/en/latest/miniconda.html). The SHA256 checksum was correct.

### Installed packages

```shell
# packages in environment at C:\Users\sophi\miniforge3:
#
# Name Version Build Channel
brotlipy 0.7.0 py310he2412df_1004 conda-forge
bzip2 1.0.8 h8ffe710_4 conda-forge
ca-certificates 2022.6.15 h5b45459_0 conda-forge
certifi 2022.6.15 py310h5588dad_0 conda-forge
cffi 1.15.1 py310hcbf9ad4_0 conda-forge
charset-normalizer 2.1.1 pyhd8ed1ab_0 conda-forge
colorama 0.4.5 pyhd8ed1ab_0 conda-forge
conda 4.14.0 py310h5588dad_0 conda-forge
conda-package-handling 1.8.1 py310h4f637d6_1 conda-forge
cryptography 37.0.4 py310ha857299_0 conda-forge
idna 3.3 pyhd8ed1ab_0 conda-forge
libffi 3.4.2 h8ffe710_5 conda-forge
libsqlite 3.39.2 h8ffe710_1 conda-forge
libzlib 1.2.12 h8ffe710_2 conda-forge
menuinst 1.4.19 py310h5588dad_0 conda-forge
miniforge_console_shortcut 1.0 h57928b3_0 conda-forge
openssl 1.1.1q h8ffe710_0 conda-forge
pip 22.2.2 pyhd8ed1ab_0 conda-forge
pycosat 0.6.3 py310he2412df_1010 conda-forge
pycparser 2.21 pyhd8ed1ab_0 conda-forge
pyopenssl 22.0.0 pyhd8ed1ab_0 conda-forge
pysocks 1.7.1 py310h5588dad_5 conda-forge
python 3.10.6 h9a09f29_0_cpython conda-forge
python_abi 3.10 2_cp310 conda-forge
requests 2.28.1 pyhd8ed1ab_0 conda-forge
ruamel_yaml 0.15.80 py310he2412df_1007 conda-forge
setuptools 65.2.0 py310h5588dad_0 conda-forge
six 1.16.0 pyh6c4a22f_0 conda-forge
tk 8.6.12 h8ffe710_0 conda-forge
toolz 0.12.0 pyhd8ed1ab_0 conda-forge
tqdm 4.64.0 pyhd8ed1ab_0 conda-forge
tzdata 2022c h191b570_0 conda-forge
ucrt 10.0.20348.0 h57928b3_0 conda-forge
urllib3 1.26.11 pyhd8ed1ab_0 conda-forge
vc 14.2 hb210afc_6 conda-forge
vs2015_runtime 14.29.30037 h902a5da_6 conda-forge
wheel 0.37.1 pyhd8ed1ab_0 conda-forge
win_inet_pton 1.1.0 py310h5588dad_4 conda-forge
xz 5.2.6 h8d14728_0 conda-forge
yaml 0.2.5 h8ffe710_2 conda-forge
```

### Environment info

```shell
active environment : base
active env location : C:\Users\sophi\miniforge3
shell level : 1
user config file : C:\Users\sophi\.condarc
populated config files : C:\Users\sophi\miniforge3\.condarc
C:\Users\sophi\.condarc
conda version : 4.14.0
conda-build version : not installed
python version : 3.10.6.final.0
virtual packages : __win=0=0
__archspec=1=x86_64
base environment : C:\Users\sophi\miniforge3 (writable)
conda av data dir : C:\Users\sophi\miniforge3\etc\conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-canary/win-64
https://conda.anaconda.org/conda-canary/noarch
https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
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 : \\server\share\conda\pkgs
C:\Users\sophi\miniconda3\pkgs
envs directories : C:\Users\sophi\miniforge3\envs
C:\Users\sophi\.conda\envs
C:\Users\sophi\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.14.0 requests/2.28.1 CPython/3.10.6 Windows/10 Windows/10.0.22000
administrator : True
netrc file : None
offline mode : False
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.