-
-
Notifications
You must be signed in to change notification settings - Fork 325
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
Windows installation - pkg_dirs gets bad path \\server\share\conda\pkgs #347
Comments
Thank you for the detailed report and workaround. Do you know if this happens only for the pypy builds? |
Might you have had an old installation of conda? Looking at our logs, we "install" mambaforge-pypy3 and we output conda-info. I see:
https://github.com/conda-forge/miniforge/runs/7985353354?check_suite_focus=true |
I was helping someone else with their conda installation, and I believe there is a deeper problem to this having spoken to them. They began from a Python 3.9 Miniconda3 Windows 64-bit installation. During their fresh installation, they encountered a "KeyError('pkgs_dirs')", not dissimilar from this recent post on stack overflow. I think the reported problem above was introduced when they attempted the following suggestion in the interim, which ended up appending to the This was the .condarc file:
They than managed to fix the "KeyError('pkgs_dirs')" issue by downgrading to pywin32==228, originally configured to 303, which solved the pkg_dirs issue. This then spawned the I switched to the Miniforge3-Windows-x86_64 installation (not the pypy build, apologies, this was me getting the wrong link), to check it was not the installation issue. |
OK yeah..... this is somewhat a hard problem for us to solve. That .condarc file is a user file, that is meant to be "shared" between all installations. Maybe there is some better interaction we can have. But for now, I think we should add instructions to remove it. I don't think we will have a programatic solution fast enough. |
Thanks - I understand it better now, and appreciate that you have compiled this into an issue detailing similar problems others have faced. Certainly for me the .condarc file was a spanner in the works without prior knowledge of what was previously done on the machine. |
Solution to issue cannot be found in 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_64Miniforge3-Windows-x86_64 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 doconda update
orconda 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: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. The SHA256 checksum was correct.
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: