Skip to content

Instantly share code, notes, and snippets.

@majkinetor
Last active October 26, 2023 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save majkinetor/5cbb4fa6866bff8706e70aad0337506a to your computer and use it in GitHub Desktop.
Save majkinetor/5cbb4fa6866bff8706e70aad0337506a to your computer and use it in GitHub Desktop.
Code Project AI Torch missing

Code Project AI: Torch missing bug report

Reported on: https://www.codeproject.com/Articles/5322557/CodeProject-AI-Server-AI-the-easy-way?msg=5968469#xx5968469xx

System info

Server version:   2.2.4-Beta
Operating System: Windows (Microsoft Windows 11 version 10.0.22621)
CPUs:             12th Gen Intel(R) Core(TM) i7-12700H (Intel)
                  1 CPU x 14 cores. 20 logical processors (x64)
GPU:              NVIDIA GeForce RTX 3070 Ti Laptop GPU (8 GiB) (NVIDIA) 
                  Driver: 536.23 CUDA: 12.2 (max supported: 12.2) Compute: 8.6
System RAM:       32 GiB
Target:           Windows
BuildConfig:      Release
Execution Env:    Native
Runtime Env:      Production
.NET framework:   .NET 7.0.12
Video adapter info:
  NVIDIA GeForce RTX 3070 Ti Laptop GPU:
    Driver Version     31.0.15.3623
    Video Processor    NVIDIA GeForce RTX 3070 Ti Laptop GPU
  Intel(R) Iris(R) Xe Graphics:
    Driver Version     31.0.101.4146
    Video Processor    Intel(R) Iris(R) Xe Graphics Family
System GPU info:
  GPU 3D Usage       4%
  GPU RAM Usage      569 MiB
Global Environment variables:
  CPAI_APPROOTPATH = <root>
  CPAI_PORT        = 32168

Server Log

01:48:58:Operating System: Windows (Microsoft Windows 11 version 10.0.22621)
01:48:58:CPUs:             12th Gen Intel(R) Core(TM) i7-12700H (Intel)
01:48:58:                  1 CPU x 14 cores. 20 logical processors (x64)
01:48:58:GPU:              NVIDIA GeForce RTX 3070 Ti Laptop GPU (8 GiB) (NVIDIA)
01:48:58:                  Driver: 536.23 CUDA: 12.2 (max supported: 12.2) Compute: 8.6
01:48:58:System RAM:       32 GiB
01:48:58:Target:           Windows
01:48:58:BuildConfig:      Release
01:48:58:Execution Env:    Native
01:48:58:Runtime Env:      Production
01:48:58:.NET framework:   .NET 7.0.12
01:48:58:App DataDir:      C:\ProgramData\CodeProject\AI
01:48:58:Video adapter info:
01:48:58:  NVIDIA GeForce RTX 3070 Ti Laptop GPU:
01:48:58:    Driver Version     31.0.15.3623
01:48:58:    Video Processor    NVIDIA GeForce RTX 3070 Ti Laptop GPU
01:48:58:  Intel(R) Iris(R) Xe Graphics:
01:48:58:    Driver Version     31.0.101.4146
01:48:58:    Video Processor    Intel(R) Iris(R) Xe Graphics Family
01:48:58:STARTING CODEPROJECT.AI SERVER
01:48:58:RUNTIMES_PATH             = C:\Program Files\CodeProject\AI\runtimes
01:48:58:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
01:48:58:MODULES_PATH              = C:\Program Files\CodeProject\AI\modules
01:48:58:PYTHON_PATH               = \bin\windows\%PYTHON_RUNTIME%\venv\scripts\Python
01:48:58:Data Dir                  = C:\ProgramData\CodeProject\AI
01:48:58:Server version:   2.2.4-Beta
01:49:04:Server: This is the latest version
01:49:16:Preparing to install module 'FaceProcessing'
01:49:16:Downloading module 'FaceProcessing'
01:49:17:Installing module 'FaceProcessing'
01:49:17:FaceProcessing:              Installing CodeProject.AI Analysis Module                
01:49:17:FaceProcessing: ========================================================================
01:49:17:FaceProcessing:                    CodeProject.AI Installer                             
01:49:17:FaceProcessing: ========================================================================
01:49:17:FaceProcessing: Checking GPU support                                                  
01:49:17:FaceProcessing: CUDA Present...True
01:49:17:FaceProcessing: Allowing GPU Support: Yes
01:49:17:FaceProcessing: Allowing CUDA Support: Yes
01:49:17:FaceProcessing: General CodeProject.AI setup                                          
01:49:17:FaceProcessing: Creating Directories...Done
01:49:17:FaceProcessing: Processing Core SDK                                                   
01:49:17:FaceProcessing: Installing module FaceProcessing 1.7                                  
01:49:17:FaceProcessing: Checking for python37 download...Present
01:49:17:FaceProcessing: Creating Virtual Environment (Shared)...Python 3.7 Already present
01:49:17:FaceProcessing: Enabling our Virtual Environment...Done
01:49:17:FaceProcessing: Confirming we have Python 3.7...present
01:49:18:FaceProcessing: Ensuring Python package manager (pip) is installed...Done
01:49:27:FaceProcessing: Ensuring Python package manager (pip) is up to date...Done
01:49:27:FaceProcessing: Choosing Python packages from requirements.windows.cuda.txt
01:51:32:FaceProcessing: ERROR: Package 'sympy' requires a different Python: 3.7.9 not in '>=3.8'
01:51:38:FaceProcessing: Installing Packages into Virtual Environment...Success
01:51:41:FaceProcessing: Downloading YOLO models...already exists...Expanding...Done.
01:51:42:FaceProcessing: Installing Server SDK support:
01:51:43:FaceProcessing: Ensuring Python package manager (pip) is installed...Done
01:51:51:FaceProcessing: Ensuring Python package manager (pip) is up to date...Done
01:51:51:FaceProcessing: Choosing Python packages from requirements.txt
01:51:58:FaceProcessing: Installing Packages into Virtual Environment...Success
01:51:58:FaceProcessing: Setup complete                                                        
01:51:58:Module FaceProcessing installed successfully.
01:51:58:
01:51:58:Module 'Face Processing' 1.7 (ID: FaceProcessing)
01:51:58:Module Path:   C:\Program Files\CodeProject\AI\modules\FaceProcessing
01:51:58:AutoStart:     True
01:51:58:Queue:         faceprocessing_queue
01:51:58:Platforms:     windows,linux,linux-arm64,macos,macos-arm64
01:51:58:GPU:           Support enabled
01:51:58:Parallelism:   0
01:51:58:Accelerator:
01:51:58:Half Precis.:  enable
01:51:58:Runtime:       python37
01:51:58:Runtime Loc:   Shared
01:51:58:FilePath:      intelligencelayer\face.py
01:51:58:Pre installed: False
01:51:58:Start pause:   3 sec
01:51:58:LogVerbosity:
01:51:58:Valid:         True
01:51:58:Environment Variables
01:51:58:APPDIR             = %CURRENT_MODULE_PATH%\intelligencelayer
01:51:58:DATA_DIR           = %DATA_DIR%
01:51:58:MODE               = MEDIUM
01:51:58:MODELS_DIR         = %CURRENT_MODULE_PATH%\assets
01:51:58:PROFILE            = desktop_gpu
01:51:58:USE_CUDA           = True
01:51:58:YOLOv5_AUTOINSTALL = false
01:51:58:YOLOv5_VERBOSE     = false
01:51:58:
01:51:58:Started Face Processing module
01:51:58:Installer exited with code 0
01:51:59:face.py: Traceback (most recent call last):
01:51:59:face.py:   File "C:\Program Files\CodeProject\AI\modules\FaceProcessing\intelligencelayer\face.py", line 35, in 
01:51:59:face.py:     import torch
01:51:59:face.py: ModuleNotFoundError: No module named 'torch'
01:51:59:Module FaceProcessing has shutdown
01:51:59:face.py: has exited
01:52:01:Module FaceProcessing started successfully.

Faces installation

16:46:58:Call to Uninstall on module FaceProcessing has completed.
16:47:06:Preparing to install module 'FaceProcessing'
16:47:06:Downloading module 'FaceProcessing'
16:47:06:Installing module 'FaceProcessing'
16:47:06:FaceProcessing:              Installing CodeProject.AI Analysis Module                
16:47:06:FaceProcessing: ========================================================================
16:47:07:FaceProcessing:                    CodeProject.AI Installer                             
16:47:07:FaceProcessing: ========================================================================
16:47:07:FaceProcessing: Checking GPU support                                                  
16:47:07:FaceProcessing: CUDA Present...True
16:47:07:FaceProcessing: Allowing GPU Support: Yes
16:47:07:FaceProcessing: Allowing CUDA Support: Yes
16:47:07:FaceProcessing: General CodeProject.AI setup                                          
16:47:07:FaceProcessing: Creating Directories...Done
16:47:07:FaceProcessing: Processing Core SDK                                                   
16:47:07:FaceProcessing: Installing module FaceProcessing 1.7                                  
16:47:07:FaceProcessing: Checking for python37 download...Present
16:47:07:FaceProcessing: Creating Virtual Environment (Shared)...Python 3.7 Already present
16:47:07:FaceProcessing: Enabling our Virtual Environment...Done
16:47:07:FaceProcessing: Confirming we have Python 3.7...present
16:47:08:FaceProcessing: Ensuring Python package manager (pip) is installed...Done
16:47:16:FaceProcessing: Ensuring Python package manager (pip) is up to date...Done
16:47:16:FaceProcessing: Choosing Python packages from requirements.windows.cuda.txt
16:49:26:FaceProcessing: ERROR: Package 'sympy' requires a different Python: 3.7.9 not in '>=3.8'
16:49:32:FaceProcessing: Installing Packages into Virtual Environment...Success
16:49:35:FaceProcessing: Downloading YOLO models...already exists...Expanding...Done.
16:49:35:FaceProcessing: Installing Server SDK support:
16:49:36:FaceProcessing: Ensuring Python package manager (pip) is installed...Done
16:49:44:FaceProcessing: Ensuring Python package manager (pip) is up to date...Done
16:49:44:FaceProcessing: Choosing Python packages from requirements.txt
16:49:52:FaceProcessing: Installing Packages into Virtual Environment...Success
16:49:52:FaceProcessing: Setup complete                                                        
16:49:52:Module FaceProcessing installed successfully.
16:49:52:
16:49:52:Module 'Face Processing' 1.7 (ID: FaceProcessing)
16:49:52:Module Path:   C:\Program Files\CodeProject\AI\modules\FaceProcessing
16:49:52:AutoStart:     True
16:49:52:Queue:         faceprocessing_queue
16:49:52:Platforms:     windows,linux,linux-arm64,macos,macos-arm64
16:49:52:GPU:           Support enabled
16:49:52:Parallelism:   0
16:49:52:Accelerator:
16:49:52:Half Precis.:  enable
16:49:52:Runtime:       python37
16:49:52:Runtime Loc:   Shared
16:49:52:FilePath:      intelligencelayer\face.py
16:49:52:Pre installed: False
16:49:52:Start pause:   3 sec
16:49:52:LogVerbosity:
16:49:52:Valid:         True
16:49:52:Environment Variables
16:49:52:APPDIR             = %CURRENT_MODULE_PATH%\intelligencelayer
16:49:52:DATA_DIR           = %DATA_DIR%
16:49:52:MODE               = MEDIUM
16:49:52:MODELS_DIR         = %CURRENT_MODULE_PATH%\assets
16:49:52:PROFILE            = desktop_gpu
16:49:52:USE_CUDA           = True
16:49:52:YOLOv5_AUTOINSTALL = false
16:49:52:YOLOv5_VERBOSE     = false
16:49:52:
16:49:52:Started Face Processing module
16:49:52:Installer exited with code 0
16:49:52:Call to Install on module FaceProcessing has completed.
16:49:52:face.py: Traceback (most recent call last):
16:49:52:face.py:   File "C:\Program Files\CodeProject\AI\modules\FaceProcessing\intelligencelayer\face.py", line 35, in 
16:49:52:face.py:     import torch
16:49:52:face.py: ModuleNotFoundError: No module named 'torch'
16:49:52:Module FaceProcessing has shutdown
16:49:52:face.py: has exited
16:49:55:Module FaceProcessing started successfully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment