diagnostic.bat 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. @echo off
  2. cd %~dp0..
  3. echo Starting diagnostic... > .\installer_scripts\diagnostic.txt 2>&1
  4. echo: >> .\installer_scripts\diagnostic.txt
  5. @REM echo current time
  6. echo %date% %time% >> .\installer_scripts\diagnostic.txt 2>&1
  7. echo: >> .\installer_scripts\diagnostic.txt
  8. echo CD: %cd% >> .\installer_scripts\diagnostic.txt 2>&1
  9. echo: >> .\installer_scripts\diagnostic.txt
  10. echo where git (before calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
  11. call where git >> .\installer_scripts\diagnostic.txt 2>&1
  12. echo: >> .\installer_scripts\diagnostic.txt
  13. echo where python (before calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
  14. call where python >> .\installer_scripts\diagnostic.txt 2>&1
  15. echo: >> .\installer_scripts\diagnostic.txt
  16. echo where conda (before calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
  17. call where conda >> .\installer_scripts\diagnostic.txt 2>&1
  18. echo: >> .\installer_scripts\diagnostic.txt
  19. echo where node (before calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
  20. call where node >> .\installer_scripts\diagnostic.txt 2>&1
  21. echo: >> .\installer_scripts\diagnostic.txt
  22. call %~dp0activate.bat
  23. echo: >> .\installer_scripts\diagnostic.txt
  24. echo where git (after calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
  25. call where git >> .\installer_scripts\diagnostic.txt 2>&1
  26. echo: >> .\installer_scripts\diagnostic.txt
  27. echo where python (after calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
  28. call where python >> .\installer_scripts\diagnostic.txt 2>&1
  29. echo: >> .\installer_scripts\diagnostic.txt
  30. echo where conda (after calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
  31. call where conda >> .\installer_scripts\diagnostic.txt 2>&1
  32. echo: >> .\installer_scripts\diagnostic.txt
  33. echo where node (after calling activate.bat): >> .\installer_scripts\diagnostic.txt 2>&1
  34. call where node >> .\installer_scripts\diagnostic.txt 2>&1
  35. echo: >> .\installer_scripts\diagnostic.txt
  36. @REM versions
  37. echo python --version: >> .\installer_scripts\diagnostic.txt 2>&1
  38. call python --version >> .\installer_scripts\diagnostic.txt 2>&1
  39. echo: >> .\installer_scripts\diagnostic.txt
  40. echo node --version: >> .\installer_scripts\diagnostic.txt 2>&1
  41. call node --version >> .\installer_scripts\diagnostic.txt 2>&1
  42. echo: >> .\installer_scripts\diagnostic.txt
  43. echo conda --version: >> .\installer_scripts\diagnostic.txt 2>&1
  44. call conda --version >> .\installer_scripts\diagnostic.txt 2>&1
  45. echo: >> .\installer_scripts\diagnostic.txt
  46. @REM git status
  47. echo git status: >> .\installer_scripts\diagnostic.txt 2>&1
  48. call git status >> .\installer_scripts\diagnostic.txt 2>&1
  49. echo: >> .\installer_scripts\diagnostic.txt
  50. @REM git log HEAD~1..HEAD
  51. echo git log HEAD~1..HEAD: >> .\installer_scripts\diagnostic.txt 2>&1
  52. call git log HEAD~1..HEAD >> .\installer_scripts\diagnostic.txt 2>&1
  53. echo: >> .\installer_scripts\diagnostic.txt
  54. @REM package managers
  55. echo pip list: >> .\installer_scripts\diagnostic.txt 2>&1
  56. call pip list >> .\installer_scripts\diagnostic.txt 2>&1
  57. echo: >> .\installer_scripts\diagnostic.txt
  58. echo conda list: >> .\installer_scripts\diagnostic.txt 2>&1
  59. call conda list >> .\installer_scripts\diagnostic.txt 2>&1
  60. echo: >> .\installer_scripts\diagnostic.txt
  61. echo npm list -g: >> .\installer_scripts\diagnostic.txt 2>&1
  62. call npm list -g >> .\installer_scripts\diagnostic.txt 2>&1
  63. echo: >> .\installer_scripts\diagnostic.txt
  64. @REM core packages
  65. echo pip show python-dotenv gradio torch torchaudio torchvision: >> .\installer_scripts\diagnostic.txt 2>&1
  66. call pip show python-dotenv gradio torch torchaudio torchvision >> .\installer_scripts\diagnostic.txt 2>&1
  67. echo: >> .\installer_scripts\diagnostic.txt
  68. @REM .gpu
  69. echo .gpu: >> .\installer_scripts\diagnostic.txt 2>&1
  70. type .\installer_scripts\.gpu >> .\installer_scripts\diagnostic.txt 2>&1
  71. echo: >> .\installer_scripts\diagnostic.txt
  72. @REM .major_version
  73. echo .major_version: >> .\installer_scripts\diagnostic.txt 2>&1
  74. type .\installer_scripts\.major_version >> .\installer_scripts\diagnostic.txt 2>&1
  75. echo: >> .\installer_scripts\diagnostic.txt
  76. @REM .python_version
  77. echo .python_version: >> .\installer_scripts\diagnostic.txt 2>&1
  78. type .\installer_scripts\.python_version >> .\installer_scripts\diagnostic.txt 2>&1
  79. echo: >> .\installer_scripts\diagnostic.txt
  80. @REM npm list ./react-ui/package.json
  81. echo npm list --prefix ./react-ui/ >> .\installer_scripts\diagnostic.txt 2>&1
  82. call npm list --prefix ./react-ui/ >> .\installer_scripts\diagnostic.txt 2>&1
  83. echo: >> .\installer_scripts\diagnostic.txt