Add an error message if file locking is not supported
Checklist
- I added a descriptive title
- I searched open requests and couldn't find a duplicate
What is the idea?
Add an error message if file locking is not supported.
Why is this needed?
Conda may be running a few hours without indications of a deadlock because file locking is not supported.
What should happen?
If file locking is not supported and required by conda, it should fail early on instead of running for a few hours before failing.
Additional Context
I was unable to install new packages on my conda environment and though it may be broken. After some trial and error, I decided to install move to a fresh anaconda installation, and create a new environment but conda failed after a few hours, supposedly because file locking was not available on our system.
If conda requires file locking, I would like this feature to be Implemented.
Here is the error I got:
...
File ".../anaconda3/lib/python3.11/site-packages/conda/gateways/disk/lock.py", line 59, in __enter__
fcntl.lockf(
OSError: [Errno 37] No locks available
`$ .../anaconda3/bin/conda create -n fseft python=3.11 -y`
environment variables:
CIO_TEST=<not set>
CONDA_ROOT=.../anaconda3
CURL_CA_BUNDLE=<not set>
LD_PRELOAD=<not set>
PATH=.../anaconda3/bin:/usr/local/sbin:/usr/l
ocal/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/sn
ap/bin
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
active environment : None
user config file : .../.condarc
populated config files :
conda version : 24.1.2
conda-build version : 24.1.2
python version : 3.11.7.final.0
solver : libmamba (default)
virtual packages : __archspec=1=cascadelake
__conda=24.1.2=0
__cuda=11.4=0
__glibc=2.27=0
__linux=4.15.0=0
__unix=0=0
base environment : .../anaconda3 (writable)
conda av data dir : .../anaconda3/etc/conda
conda av metadata url : None
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : .../anaconda3/pkgs
.../.conda/pkgs
envs directories : .../anaconda3/envs
.../.conda/envs
platform : linux-64
user-agent : conda/24.1.2 requests/2.31.0 CPython/3.11.7 Linux/4.15.0-197-generic ubuntu/18.04.6 glibc/2.27 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.6 aau/0.4.3 c/LOjItEifpMzBAGMKrbUbwg s/OFnsg3lTuePlGdjAKdYoxg e/Wb8hgRYPNk76MKN_MSNJ9w
UID:GID : 8575:8212
netrc file : None
offline mode : False