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

error libmamba Could not lock non-existing path '.mamba\pkgs' & simple fix #3560

Closed
dreamflow opened this issue Oct 22, 2024 · 2 comments · Fixed by #3572
Closed

error libmamba Could not lock non-existing path '.mamba\pkgs' & simple fix #3560

dreamflow opened this issue Oct 22, 2024 · 2 comments · Fixed by #3572

Comments

@dreamflow
Copy link

when no folders/files and configs(environment.yml , .condarc , ...)
of micromamba exist , on the very first run of
".\micromamba-64bit.exe" create --prefix ".\64bit" python
on Win10 , on a local ntfs drive or on a network drive ,
gives the errors

error libmamba Could not lock non-existing path '<USERPROFILE>\.mamba\pkgs'
error libmamba Could not lock non-existing path '<APPDATA>\.mamba\pkgs'

simple fix :
these errors vanish , if libmamba would simply first
create both ".mamba\pkgs" folders prior trying
to write its "pkgs.lock" files into these folders .

i can confirm , that these errors don't appear ,
if both ".mamba\pkgs" folders are created before .

could please this be implemented into libmamba .
it would give new micromamba users a nicer first experience .

@yeetfield
Copy link

@Hind-M How do I configure the prefix in which Mamba attempts to put its .mamba/pkgs directory? I'd like to avoid modifying ~ if possible. I tried setting MAMBA_ROOT_PREFIX as well as using micromamba -r.

@dreamflow
Copy link
Author

dreamflow commented Nov 2, 2024

How do I configure the prefix in which Mamba
attempts to put its .mamba/pkgs directory?

on windows i do this without the env var
MAMBA_ROOT_PREFIX , but instead by temporarily ,
only during the run of micromamba-64bit.exe ,
changing the env vars APPDATA and USERPROFILE .
this works nice because micromamba uses the dirs :

<APPDATA>\.mamba\pkgs
<USERPROFILE>\.mamba\pkgs
<USERPROFILE>\AppData\Roaming\mamba

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

Successfully merging a pull request may close this issue.

2 participants