Spaces:
Build error
Build error
Add directory listings for conda diagnosis in start.sh
Browse files
start.sh
CHANGED
@@ -6,19 +6,28 @@ export CUDA_HOME="/usr/local/cuda"
|
|
6 |
|
7 |
echo "Attempting to locate and activate Conda environment..."
|
8 |
|
9 |
-
# Add a common Conda binary path to PATH
|
10 |
-
# This is crucial if conda is installed but not in the default PATH
|
11 |
export PATH="/opt/conda/bin:$PATH"
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
# 1. Try to find the 'conda' executable in the system's PATH
|
14 |
CONDA_EXEC=$(which conda)
|
15 |
|
16 |
if [ -z "$CONDA_EXEC" ]; then
|
17 |
-
echo "ERROR: 'conda' executable still not found in PATH
|
18 |
-
echo "This
|
19 |
-
exit 1
|
20 |
fi
|
21 |
|
|
|
22 |
echo "Found 'conda' executable at: $CONDA_EXEC"
|
23 |
|
24 |
# 2. Derive the base Conda installation path from the executable's location.
|
|
|
6 |
|
7 |
echo "Attempting to locate and activate Conda environment..."
|
8 |
|
9 |
+
# Add a common Conda binary path to PATH (keeping this just in case, but it's failing)
|
|
|
10 |
export PATH="/opt/conda/bin:$PATH"
|
11 |
|
12 |
+
# --- DIAGNOSTIC STEPS: List contents of common Conda installation directories ---
|
13 |
+
echo "Listing contents of /opt/:"
|
14 |
+
ls -la /opt/ || echo "ls /opt/ failed or directory not found."
|
15 |
+
echo "Listing contents of /usr/local/:"
|
16 |
+
ls -la /usr/local/ || echo "ls /usr/local/ failed or directory not found."
|
17 |
+
echo "Listing contents of /root/ (if accessible):"
|
18 |
+
ls -la /root/ || echo "ls /root/ failed or directory not found (may be permission denied)."
|
19 |
+
echo "--- END DIAGNOSTIC ---"
|
20 |
+
|
21 |
# 1. Try to find the 'conda' executable in the system's PATH
|
22 |
CONDA_EXEC=$(which conda)
|
23 |
|
24 |
if [ -z "$CONDA_EXEC" ]; then
|
25 |
+
echo "ERROR: 'conda' executable still not found in PATH."
|
26 |
+
echo "This strongly suggests Conda is either not installed in the base image 'elungky/gen3c:latest', or it's in a highly unusual and non-standard location."
|
27 |
+
exit 1 # Exit here, no point in continuing if conda isn't found
|
28 |
fi
|
29 |
|
30 |
+
# The following lines will only execute if CONDA_EXEC is not empty
|
31 |
echo "Found 'conda' executable at: $CONDA_EXEC"
|
32 |
|
33 |
# 2. Derive the base Conda installation path from the executable's location.
|