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

Activating read-only conda environment with arrow installed #1126

Closed
1 task done
costrouc opened this issue Jul 25, 2023 · 9 comments · Fixed by #1127
Closed
1 task done

Activating read-only conda environment with arrow installed #1126

costrouc opened this issue Jul 25, 2023 · 9 comments · Fixed by #1127
Labels

Comments

@costrouc
Copy link
Member

costrouc commented Jul 25, 2023

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

When we create a conda environment with this package installed in a read-only environment I get the following error when I attempt to activate the environment.

mkdir: cannot create directory ‘/home/conda/rag-llm/envs/rag-llm-ai-toolbox/share/gdb/auto-load//home/conda/rag-llm/envs’: Permission denied
ln: failed to create symbolic link '/home/conda/rag-llm/envs/rag-llm-ai-toolbox/share/gdb/auto-load//home/conda/rag-llm/envs/rag-llm-ai-toolbox/lib/libarrow.so.1100.0.0-gdb.py': No such file or directory
/home/conda/rag-llm/envs/rag-llm-ai-toolbox/etc/conda/activate.d/libarrow_activate.sh ERROR: Failed to create symlink from '/home/conda/rag-llm/envs/rag-llm-ai-toolbox/share/gdb/auto-load/replace_this_section_with_absolute_slashed_path_to_CONDA_PREFIX/lib/libarrow.so.1100.0.0-gdb.py' to '/home/conda/rag-llm/envs/rag-llm-ai-toolbox/share/gdb/auto-load//home/conda/rag-llm/envs/rag-llm-ai-toolbox/lib/libarrow.so.1100.0.0-gdb.py'

Installed packages

Not relevant.

Environment info

Not relevant.
@h-vetinari
Copy link
Member

Can you try if arrow 12 works for you? If so, we just have to backport some of the fixes for the activation script to 11.0.x

@kcpevey
Copy link

kcpevey commented Jul 26, 2023

@h-vetinari The same thing is happening with pyarrow 12.0.0 when I run conda activate.

conda activate argo
mkdir: cannot create directory ‘/home/conda/argo/share/gdb/auto-load//home/conda/envs’: Permission denied
ln: failed to create symbolic link '/home/conda/argo/share/gdb/auto-load//home/conda/argo/lib/libarrow.so.1200.1.0-gdb.py': No such file or directory
/home/conda/argo/etc/conda/activate.d/libarrow_activate.sh ERROR: Failed to create symlink from 'argo/share/gdb/auto-load/replace_this_section_with_absolute_slashed_path_to_CONDA_PREFIX/lib/libarrow.so.1200.1.0-gdb.py' to '/home/conda/argo/share/gdb/auto-load//home/conda/argo/lib/libarrow.so.1200.1.0-gdb.py'

@h-vetinari h-vetinari changed the title Activating read-only conda envirionment with arrow installed Activating read-only conda environment with arrow installed Jul 27, 2023
@h-vetinari
Copy link
Member

h-vetinari commented Jul 27, 2023

@maresb, this sounds similar to your #1032. Since you did all the work on #1033 & #1065, perhaps you'd be interested/able to help on this?

@maresb
Copy link
Contributor

maresb commented Jul 28, 2023

Given the current setup, I don't see any way that a read-only environment can be supported for first-time activation.

Maybe a workaround could be to activate the environment once before making it read-only?

@h-vetinari
Copy link
Member

Given the current setup, I don't see any way that a read-only environment can be supported for first-time activation.

If you remove the requirement to create the symlink, we should be able to make it work I think? Few people will use gdb, probably fewer than those stuck in read-only environments. I'd prefer to remove gdb-integration before breaking the latter. But if we can just bail out when we have no rights, that would be the best of both worlds.

@h-vetinari
Copy link
Member

I think this is what we were doing with 7c0287a, but that got removed in 5f86221

@h-vetinari
Copy link
Member

h-vetinari commented Jul 28, 2023

@maresb if you have a moment, please take a look at #1127 :)

h-vetinari added a commit to h-vetinari/arrow-cpp-feedstock that referenced this issue Jul 28, 2023
h-vetinari added a commit to h-vetinari/arrow-cpp-feedstock that referenced this issue Jul 28, 2023
Reinstate 7c0287a

Closes conda-forge#1126

Also consistently use punctionation at the end of log messages.
h-vetinari added a commit to h-vetinari/arrow-cpp-feedstock that referenced this issue Jul 28, 2023
Reinstate 7c0287a

Closes conda-forge#1126

Also consistently use punctionation at the end of log messages.
h-vetinari added a commit to h-vetinari/arrow-cpp-feedstock that referenced this issue Jul 28, 2023
Reinstate 7c0287a

Closes conda-forge#1126

Also consistently use punctionation at the end of log messages.
h-vetinari added a commit to h-vetinari/arrow-cpp-feedstock that referenced this issue Jul 28, 2023
Reinstate 7c0287a

Closes conda-forge#1126

Also consistently use punctionation at the end of log messages.
h-vetinari added a commit to h-vetinari/arrow-cpp-feedstock that referenced this issue Jul 28, 2023
Reinstate 7c0287a

Closes conda-forge#1126

Also consistently use punctionation at the end of log messages.
h-vetinari added a commit to h-vetinari/arrow-cpp-feedstock that referenced this issue Jul 28, 2023
Reinstate 7c0287a

Closes conda-forge#1126

Also consistently use punctionation at the end of log messages.
h-vetinari added a commit to h-vetinari/arrow-cpp-feedstock that referenced this issue Jul 28, 2023
Reinstate 7c0287a

Closes conda-forge#1126

Also consistently use punctionation at the end of log messages.
@costrouc
Copy link
Member Author

costrouc commented Aug 2, 2023

Thanks everyone!

@h-vetinari
Copy link
Member

We also backported to 11.x and 10.x. :)

raulcd pushed a commit to raulcd/arrow-cpp-feedstock that referenced this issue Sep 15, 2023
Reinstate 7c0287a

Closes conda-forge#1126

Also consistently use punctionation at the end of log messages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants