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

Erro when trying to add #3270

Open
2 tasks done
lucaskbobadilla opened this issue Mar 4, 2025 · 1 comment
Open
2 tasks done

Erro when trying to add #3270

lucaskbobadilla opened this issue Mar 4, 2025 · 1 comment

Comments

@lucaskbobadilla
Copy link

lucaskbobadilla commented Mar 4, 2025

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

pixi add python
    ✔ validate cache       22 packages in 1s 371ms
    ⠈ download & extract   [00:00:02] [━━━━━───────────────] 11.82 MiB @ 2.30 MiB/s ncurses (+2)
    ⠈ installing packages  [00:00:02] [━━━━━━━━━━━━━━━━━╾──]    19/22                                                                                                                                       Error: 
  × failed to fetch tk-8.6.13-noxft_h4845f30_101.conda
  ├─▶ an io error occurred: failed to unpack `/home/ilm254/.cache/rattler/cache/pkgs/tk-8.6.13-noxft_h4845f30_101/lib/tcl8.6/encoding/euc-cn.enc`
  ├─▶ failed to unpack `/home/ilm254/.cache/rattler/cache/pkgs/tk-8.6.13-noxft_h4845f30_101/lib/tcl8.6/encoding/euc-cn.enc`
  ├─▶ failed to unpack `lib/tcl8.6/encoding/euc-cn.enc` into `/home/ilm254/.cache/rattler/cache/pkgs/tk-8.6.13-noxft_h4845f30_101/lib/tcl8.6/encoding/euc-cn.enc`
  ╰─▶ Permission denied (os error 13)

Issue description

Hello I am using pixi 0.41.4 and I started to get this error when I simply try to add anything. This was not happening before. When I simply try to add python this is happening.

Any ideas?

Expected behavior

pixi add python
    ✔ validate cache       22 packages in 1s 371ms
    ⠈ download & extract   [00:00:02] [━━━━━───────────────] 11.82 MiB @ 2.30 MiB/s ncurses (+2)
    ⠈ installing packages  [00:00:02] [━━━━━━━━━━━━━━━━━╾──]    19/22                                                                                                                                       Error: 
  × failed to fetch tk-8.6.13-noxft_h4845f30_101.conda
  ├─▶ an io error occurred: failed to unpack `/home/ilm254/.cache/rattler/cache/pkgs/tk-8.6.13-noxft_h4845f30_101/lib/tcl8.6/encoding/euc-cn.enc`
  ├─▶ failed to unpack `/home/ilm254/.cache/rattler/cache/pkgs/tk-8.6.13-noxft_h4845f30_101/lib/tcl8.6/encoding/euc-cn.enc`
  ├─▶ failed to unpack `lib/tcl8.6/encoding/euc-cn.enc` into `/home/ilm254/.cache/rattler/cache/pkgs/tk-8.6.13-noxft_h4845f30_101/lib/tcl8.6/encoding/euc-cn.enc`
  ╰─▶ Permission denied (os error 13)
@ruben-arts
Copy link
Contributor

It looks like your cache got corrupted. You could clean the cache by running pixi clean cache --conda to remove these files. To avoid the removal of the full cache you could also go into the /home/ilm254/.cache/rattler/cache/pkgs dir and only remove the folders that are represented in the error like tk in this example.

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

No branches or pull requests

2 participants