-
Notifications
You must be signed in to change notification settings - Fork 209
/
Copy pathdiagnostic.bat
100 lines (83 loc) · 4.44 KB
/
diagnostic.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
@echo off
cd %~dp0..
echo Starting diagnostic... > .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
@REM echo current time
echo %date% %time% >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
echo CD: %cd% >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
echo where git (before calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
call where git >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
echo where python (before calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
call where python >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
echo where conda (before calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
call where conda >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
echo where node (before calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
call where node >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
call %~dp0activate.bat
echo: >> .\installer_scripts\diagnostic.txt
echo where git (after calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
call where git >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
echo where python (after calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
call where python >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
echo where conda (after calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
call where conda >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
echo where node (after calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
call where node >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
@REM versions
echo python --version: >> .\installer_scripts\diagnostic.txt 2>&1
call python --version >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
echo node --version: >> .\installer_scripts\diagnostic.txt 2>&1
call node --version >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
echo conda --version: >> .\installer_scripts\diagnostic.txt 2>&1
call conda --version >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
@REM git status
echo git status: >> .\installer_scripts\diagnostic.txt 2>&1
call git status >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
@REM git log HEAD~1..HEAD
echo git log HEAD~1..HEAD: >> .\installer_scripts\diagnostic.txt 2>&1
call git log HEAD~1..HEAD >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
@REM package managers
echo pip list: >> .\installer_scripts\diagnostic.txt 2>&1
call pip list >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
echo conda list: >> .\installer_scripts\diagnostic.txt 2>&1
call conda list >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
echo npm list -g: >> .\installer_scripts\diagnostic.txt 2>&1
call npm list -g >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
@REM core packages
echo pip show python-dotenv gradio torch torchaudio torchvision: >> .\installer_scripts\diagnostic.txt 2>&1
call pip show python-dotenv gradio torch torchaudio torchvision >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
@REM .gpu
echo .gpu: >> .\installer_scripts\diagnostic.txt 2>&1
type .\installer_scripts\.gpu >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
@REM .major_version
echo .major_version: >> .\installer_scripts\diagnostic.txt 2>&1
type .\installer_scripts\.major_version >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
@REM .python_version
echo .python_version: >> .\installer_scripts\diagnostic.txt 2>&1
type .\installer_scripts\.python_version >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt
@REM npm list ./react-ui/package.json
echo npm list --prefix ./react-ui/ >> .\installer_scripts\diagnostic.txt 2>&1
call npm list --prefix ./react-ui/ >> .\installer_scripts\diagnostic.txt 2>&1
echo: >> .\installer_scripts\diagnostic.txt