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

Conda-unpack does not fix prefix #386

Open
2 tasks done
Sieboldianus opened this issue Jan 11, 2025 · 0 comments
Open
2 tasks done

Conda-unpack does not fix prefix #386

Sieboldianus opened this issue Jan 11, 2025 · 0 comments
Labels
type::bug describes erroneous operation, use severity::* to classify the type

Comments

@Sieboldianus
Copy link

Sieboldianus commented Jan 11, 2025

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

I have successfully exported my conda envs about a year ago on our University's HPC using conda-pack (following the docs).

Now I want to restore the envs.

Restore environment:

conda --version
> conda 4.12.0
cd /data/horse/ws/s7777-p_lv_mobicart_2425
mkdir -p intro_env
tar -xzf ~/2024-01-16_Environments_archive_conda-pack/intro_env.tar.gz -C intro_env

Test:

./intro_env/bin/python
./intro_env/bin/python --version
> Python 3.10.13
source intro_env/bin/activate
conda-unpack
pip list
> -bash: /data/horse/ws/s7777-p_lv_mobicart_2425/intro_env/bin/pip: 
>     /data/horse/ws/s7777-p_lv_mobicart_2324/workshop_envs/intro_env3/bin/python3.10: 
>         bad interpreter: No such file or directory

This is the old prefix from a year ago:

/data/horse/ws/s7777-p_lv_mobicart_2324/workshop_envs/intro_env3/

This is the new prefix (folder):

/data/horse/ws/s7777-p_lv_mobicart_2425/intro_env/
conda-unpack --version
>conda-unpack 0.7.1

Additional Context

I could fix the issue by installing conda-prefix-replacement:

conda install -c conda-forge conda-prefix-replacement
cpr rehome /data/horse/ws/s7777-p_lv_mobicart_2425/intro_env \
    --old-prefix /data/horse/ws/s7777-p_lv_mobicart_2324/workshop_envs/intro_env3
pip list
> Package                  Version
> ------------------------ ------------
> adjustText               0.7.3
> affine                   2.4.0
> asttokens                2.4.1
> ...

But I thought this was what conda-unpack was for?

@Sieboldianus Sieboldianus added the type::bug describes erroneous operation, use severity::* to classify the type label Jan 11, 2025
@github-project-automation github-project-automation bot moved this to 🆕 New in 🧭 Planning Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug describes erroneous operation, use severity::* to classify the type
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant