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

Environment creation fails with relative path #3631

Open
Hind-M opened this issue Nov 26, 2024 · 9 comments
Open

Environment creation fails with relative path #3631

Hind-M opened this issue Nov 26, 2024 · 9 comments

Comments

@Hind-M
Copy link
Member

Hind-M commented Nov 26, 2024

Reported in micromamba-releases:

Running micromamba create and pointing the prefix to a relative path fails in error when the input file contains a pip section. This behavior occurs on both windows and linux.

micromamba env create --yes -f deps.yaml -p folder/subfolder

critical libmamba Cannot activate, prefix does not exist at: 'folder/subfolder'
/tmp/mambafKZrZk11KQo: line 5: folder/subfolder/bin/python: No such file or directory
critical libmamba pip failed to install packages
@Hind-M
Copy link
Member Author

Hind-M commented Nov 26, 2024

@amgcc Can you please specify the micromamba version you're using? Thanks!

@jjerphan
Copy link
Member

I cannot reproduce the error as of 2.0.

@jjerphan
Copy link
Member

Can you provide a reproducer, @amgcc? Thank you.

@amgcc
Copy link

amgcc commented Nov 30, 2024

I was testing this with micromamba 1.5.8, I will retest on 2.0 next week.

@amgcc
Copy link

amgcc commented Nov 30, 2024

With a toy example, I too am unable to reproduce on linux. Please close the issue for now, thanks.

@amgcc
Copy link

amgcc commented Nov 30, 2024

Ok, I was able to finally reproduce this but having trouble producing an example. The error occurs if providing a relative prefix where the parent folder does not exist. I think part of my issue is that I was relying on mamba to create my exported environment (lock) files because of an issue with pip. Now that micromamba has since fixed the issue, this other issue is probably no longer possible. I will reopen a ticket if I can reproduce failure on micromamba 2.

micromamba env create --yes -f env_pip.yaml -p missing_folder worked
micromamba env create --yes -f env_pip.yaml -p missing_folder/subdir failed

@jjerphan jjerphan added the where::windows Windows-specific issues label Dec 3, 2024
@amgcc
Copy link

amgcc commented Dec 3, 2024

I created a new ticket for a related issue around relative paths causing console scripts to fail to create correctly here with detailed reproduction steps.

@Klaim Klaim self-assigned this Dec 9, 2024
@Klaim
Copy link
Member

Klaim commented Dec 10, 2024

I can´t reproduce this with 2.0.5.rc0 neither on Windows nor Linux. Could you check with that version?

@jjerphan
Copy link
Member

I also cannot reproduce the issue on Linux with 2.0.5.

@jjerphan jjerphan added status::user_reply_needed and removed where::windows Windows-specific issues labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants