-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cd "$(dirname "$0")/.." | ||
|
||
export MICROMAMBA_EXE="./installer_files/mamba/micromamba" | ||
|
||
echo "Generating diagnostic..." | ||
|
||
$MICROMAMBA_EXE run -p ./installer_files/env ./diagnostic_inner.sh | ||
|
||
echo "Diagnostic generated." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
#!/bin/bash | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
echo "Starting diagnostic..." > ./installer_scripts/diagnostic.txt | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
|
||
# Log current time | ||
echo "$(date)" >> ./installer_scripts/diagnostic.txt | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
|
||
echo "CD: $(pwd)" >> ./installer_scripts/diagnostic.txt | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
echo "which git (before calling activate.sh):" >> ./installer_scripts/diagnostic.txt | ||
which git >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
echo "which python (before calling activate.sh):" >> ./installer_scripts/diagnostic.txt | ||
which python >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
echo "which conda (before calling activate.sh):" >> ./installer_scripts/diagnostic.txt | ||
which conda >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
echo "which node (before calling activate.sh):" >> ./installer_scripts/diagnostic.txt | ||
which node >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
|
||
source "$(dirname "$0")/activate.sh" | ||
|
||
echo "" >> ./installer_scripts/diagnostic.txt | ||
echo "which git (after calling activate.sh):" >> ./installer_scripts/diagnostic.txt | ||
which git >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
echo "which python (after calling activate.sh):" >> ./installer_scripts/diagnostic.txt | ||
which python >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
echo "which conda (after calling activate.sh):" >> ./installer_scripts/diagnostic.txt | ||
which conda >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
echo "which node (after calling activate.sh):" >> ./installer_scripts/diagnostic.txt | ||
which node >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
|
||
# Log versions | ||
echo "python --version:" >> ./installer_scripts/diagnostic.txt | ||
python --version >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
echo "node --version:" >> ./installer_scripts/diagnostic.txt | ||
node --version >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
echo "conda --version:" >> ./installer_scripts/diagnostic.txt | ||
conda --version >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
|
||
# Git status and log | ||
echo "git status:" >> ./installer_scripts/diagnostic.txt | ||
git status >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
echo "git log HEAD~1..HEAD:" >> ./installer_scripts/diagnostic.txt | ||
git log HEAD~1..HEAD >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
|
||
# Package managers | ||
echo "pip list:" >> ./installer_scripts/diagnostic.txt | ||
pip list >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
echo "conda list:" >> ./installer_scripts/diagnostic.txt | ||
conda list >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
echo "npm list -g:" >> ./installer_scripts/diagnostic.txt | ||
npm list -g >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
|
||
# Core packages | ||
echo "pip show python-dotenv gradio torch torchaudio torchvision:" >> ./installer_scripts/diagnostic.txt | ||
pip show python-dotenv gradio torch torchaudio torchvision >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
|
||
# Configuration files | ||
echo ".gpu:" >> ./installer_scripts/diagnostic.txt | ||
cat ./installer_scripts/.gpu >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
|
||
echo ".major_version:" >> ./installer_scripts/diagnostic.txt | ||
cat ./installer_scripts/.major_version >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
|
||
echo ".python_version:" >> ./installer_scripts/diagnostic.txt | ||
cat ./installer_scripts/.python_version >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt | ||
|
||
# npm list in react-ui | ||
echo "npm list --prefix ./react-ui/" >> ./installer_scripts/diagnostic.txt | ||
npm list --prefix ./react-ui/ >> ./installer_scripts/diagnostic.txt 2>&1 | ||
echo "" >> ./installer_scripts/diagnostic.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters