-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Magic CLI]: Unable to install packages with magic #3590
Comments
This can happen if you have a case sensitive filesystem mounted on a case-insenstative system. The ncruses packages has two files in it's package with the same name but different cases. See prefix-dev/pixi#1362 |
Also see: prefix-dev/pixi#234 |
thanks for the heads-up. select a package dir on the wsl file system: create a project dir within that that package dir: create a symlink from your project dir to the package dir: |
Hi, how to fix this problem? I encountered the same problem in ubuntu using docker on mac. And I follow the above link, prefix-dev/pixi#1362 and didn't find a solution. |
In my case the problem occurred cause I was using a project folder on a windows pc from WSL. To solve it, I directly cloned the repo of my code to the wsl-filesystem. |
Seems different from my problem, I was installing inside the docker container. And the error is about another package ncurses, not my code. |
@liuzhishan, it could also happen if the cache directory is on a different filesystem, with |
@ruben-arts thanks, I will have a try with |
Issue description
I am running in to issues with magic after a fresh install on wsl2.
All command that would install the max package seem to fail. e.g.
all these commands result in something along the lines of:
⠤ validate cache [00:00:03] [━━━━━━━━━━━━━━━━━───] max-python (+1)
⠤ download & extract [00:00:03] [━━──────────────────] 21.10 MiB @ 2.34 MiB/s max-core
⠴ installing packages [00:00:03] [━━━━━━━━╾───────────] 5/12 numpy (+3) × failed to link ncurses-6.5-he02047a_1.conda
├─▶ failed to link 'share/terminfo/2/2621a'
├─▶ unexpected io operation while removing clobbered file
╰─▶ No such file or directory (os error 2)
if i remove the max package the magic commands run again, but obviously mojo is not available anymore.
Thanks for any ideas.
Steps to reproduce
install magic with:
curl -ssL https://magic.modular.com/3c7b6166-badc-49be-bb0f-0bd100dcb8b2 | bash
source /home/fam/.bashrc
init project:
magic init my-mojo-project --format mojoproject
run any of the commands mentioned before
Version Info
The text was updated successfully, but these errors were encountered: