Closed costrouc closed 1 year ago
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
@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'
@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?
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?
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.
I think this is what we were doing with 7c0287a84ba8303b12c97e397f2b24a0239b6b46, but that got removed in 5f86221f52fe439eec67d703ed5305e15a82f86d
@maresb if you have a moment, please take a look at #1127 :)
Thanks everyone!
We also backported to 11.x and 10.x. :)
Solution to issue cannot be found in 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.
Installed packages
Environment info