Issues installing Modules CPAI

1RPC2

n3wb
Feb 13, 2025
1
0
United States
Hello all!

I've been having some issues with code project. Card is a Quadro P2000 and ran Yolo 5.6.2 successfully at one point.

I had it working initially and couldn't figure out why Licenseplate reader module wasn't seeing cudnn even though it was installed. I tried uninstalling and reinstalling and deleting all the files from program files. Reinstalled a few times.

Out of frustration I then decided to try blue onyx and had issues getting that running. Deleted that and now I'm trying to get CPAI working again. At least from what I read the fact it wasn't using my GPU for the license plate reader was due to me running Cuda 12.8, but now I can't get any modules installed.

This is my log for trying to install and attempting to run:


17:28:53: Preparing to install module 'ObjectDetectionYOLOv5-6.2'
17:28:53: Downloading module 'ObjectDetectionYOLOv5-6.2'
17:28:53:Installing module 'ObjectDetectionYOLOv5-6.2'
17:28:53:ObjectDetectionYOLOv5-6.2: 'chcp' is not recognized as an internal or external command,
17:28:53:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:53:ObjectDetectionYOLOv5-6.2: Installing CodeProject.AI Analysis Module
17:28:53:ObjectDetectionYOLOv5-6.2: ======================================================================
17:28:53:ObjectDetectionYOLOv5-6.2: CodeProject.AI Installer
17:28:53:ObjectDetectionYOLOv5-6.2: ======================================================================
17:28:53:ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
17:28:53:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:53:ObjectDetectionYOLOv5-6.2: 47.1Gb of -1Gb available on (No label) (Windows 10 x86_64 - windows)
17:28:53:ObjectDetectionYOLOv5-6.2: General CodeProject.AI setup
17:28:53:ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
17:28:53:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:53:ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
17:28:53:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:53:ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
17:28:53:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:53:ObjectDetectionYOLOv5-6.2: Checking for VC++ Redist...Downloading VC++ Redist files...BITS transfer failed. Trying Powershell....
17:28:53:ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
17:28:53:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:53:ObjectDetectionYOLOv5-6.2: Download failed. Sorry.
17:28:53:ObjectDetectionYOLOv5-6.2: Unable to download VC redist installer
17:28:53:ObjectDetectionYOLOv5-6.2: Creating Directories...done
17:28:53:ObjectDetectionYOLOv5-6.2: GPU support
17:28:53:ObjectDetectionYOLOv5-6.2: CUDA Present...No
17:28:54:ObjectDetectionYOLOv5-6.2: ROCm Present...No
17:28:54:ObjectDetectionYOLOv5-6.2: Checking for .NET 9.0...Checking runtimes...Upgrading: .NET aspnetcore is 0
17:28:54:ObjectDetectionYOLOv5-6.2: Current highest version is 0. Installing newer version.
17:28:54:ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
17:28:54:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:54:ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
17:28:54:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:54:ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
17:28:54:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:54:ObjectDetectionYOLOv5-6.2: Installing WinGet...Done.
17:28:54:ObjectDetectionYOLOv5-6.2: Could Not Find C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\Microsoft.VCLibs.x64.14.00.Desktop.appx
17:28:54:ObjectDetectionYOLOv5-6.2: Could Not Find C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\Microsoft.UI.Xaml.2.8.x64.appx
17:28:54:ObjectDetectionYOLOv5-6.2: Could Not Find C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
17:28:54:ObjectDetectionYOLOv5-6.2: Cleaning up...Done.
17:28:54:ObjectDetectionYOLOv5-6.2: 'winget' is not recognized as an internal or external command,
17:28:54:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:54:ObjectDetectionYOLOv5-6.2: ** You may need to restart this terminal (or VS Code if you're
17:28:54:ObjectDetectionYOLOv5-6.2: in VS Code) and rerun setup.bat for the rest of this setup
17:28:54:ObjectDetectionYOLOv5-6.2: script to work.
17:28:56:ObjectDetectionYOLOv5-6.2: Reading ObjectDetectionYOLOv5-6.2 settings.......done
17:28:56:ObjectDetectionYOLOv5-6.2: Installing module Object Detection (YOLOv5 6.2) 1.10.0 (Internal)
17:28:56:ObjectDetectionYOLOv5-6.2: Installing Python 3.7
17:28:56:ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
17:28:56:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:56:ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
17:28:56:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:56:ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
17:28:56:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:56:ObjectDetectionYOLOv5-6.2: Downloading Python 3.7 interpreter...BITS transfer failed. Trying Powershell....
17:28:56:ObjectDetectionYOLOv5-6.2: 'powershell' is not recognized as an internal or external command,
17:28:56:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:56:ObjectDetectionYOLOv5-6.2: Download failed. Sorry.
17:28:56:ObjectDetectionYOLOv5-6.2: 'robocopy' is not recognized as an internal or external command,
17:28:56:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:56:ObjectDetectionYOLOv5-6.2: '"C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\python.exe"' is not recognized as an internal or external command,
17:28:56:ObjectDetectionYOLOv5-6.2: operable program or batch file.
17:28:56:ObjectDetectionYOLOv5-6.2: Creating Virtual Environment (Shared)...done
17:28:56:ObjectDetectionYOLOv5-6.2: The system cannot find the path specified.
17:28:56:ObjectDetectionYOLOv5-6.2: Confirming we have Python 3.7 in our virtual environment...
17:28:56:Module ObjectDetectionYOLOv5-6.2 installed successfully.
17:28:56:
17:28:56:Module 'Object Detection (YOLOv5 6.2)' 1.10.0 (ID: ObjectDetectionYOLOv5-6.2)
17:28:56:Valid: True
17:28:56:Module Path: <root>\modules\ObjectDetectionYOLOv5-6.2
17:28:56:Module Location: Internal
17:28:56:AutoStart: True
17:28:56:Queue: objectdetection_queue
17:28:56:Runtime: python3.7
17:28:56:Runtime Location: Shared
17:28:56:FilePath: detect_adapter.py
17:28:56:Start pause: 1 sec
17:28:56: Parallelism: 0
17:28:56:LogVerbosity:
17:28:56: Platforms: all,!raspberrypi,!jetson
17:28:56:GPU Libraries: installed if available
17:28:56:GPU: use if supported
17:28:56:Accelerator:
17:28:56:Half Precision: enable
17:28:56:Environment Variables
17:28:56:APPDIR = <root>\modules\ObjectDetectionYOLOv5-6.2
17:28:56:CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\custom-models
17:28:56:MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\assets
17:28:56:MODEL_SIZE = Medium
17:28:56:USE_CUDA = True
17:28:56:YOLOv5_AUTOINSTALL = false
17:28:56:YOLOv5_VERBOSE = false
17:28:56:
17:28:56:Error trying to start Object Detection (YOLOv5 6.2) (detect_adapter.py)
17:28:56:Error is: An error occurred trying to start process 'C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Scripts\python' with working directory 'C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2'. The system cannot find the file specified.
17:28:56: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at CodeProject.AI.Server.Modules.ModuleProcessServices.StartProcess(ModuleConfig module, String installSummary)
17:28:56: Please check the CodeProject.AI installation completed successfully
17:28:56:Module ObjectDetectionYOLOv5-6.2 started successfully.
17:28:56:Installer exited with code 255
17:28:56:Call to run Install on module ObjectDetectionYOLOv5-6.2 has completed.
17:30:04:Update ObjectDetectionYOLOv5-6.2. Setting AutoStart=true
17:30:04:Restarting Object Detection (YOLOv5 6.2) to apply settings change
17:30:04:ObjectDetectionYOLOv5-6.2 has left the building
17:30:04:
17:30:04:Module 'Object Detection (YOLOv5 6.2)' 1.10.0 (ID: ObjectDetectionYOLOv5-6.2)
17:30:04:Valid: True
17:30:04:Module Path: <root>\modules\ObjectDetectionYOLOv5-6.2
17:30:04:Module Location: Internal
17:30:04:AutoStart: True
17:30:04:Queue: objectdetection_queue
17:30:04:Runtime: python3.7
17:30:04:Runtime Location: Shared
17:30:04:FilePath: detect_adapter.py
17:30:04:Start pause: 1 sec
17:30:04: Parallelism: 0
17:30:04:LogVerbosity:
17:30:04: Platforms: all,!raspberrypi,!jetson
17:30:04:GPU Libraries: installed if available
17:30:04:GPU: use if supported
17:30:04:Accelerator:
17:30:04:Half Precision: enable
17:30:04:Environment Variables
17:30:04:APPDIR = <root>\modules\ObjectDetectionYOLOv5-6.2
17:30:04:CUSTOM_MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\custom-models
17:30:04:MODELS_DIR = <root>\modules\ObjectDetectionYOLOv5-6.2\assets
17:30:04:MODEL_SIZE = Medium
17:30:04:USE_CUDA = True
17:30:04:YOLOv5_AUTOINSTALL = false
17:30:04:YOLOv5_VERBOSE = false
17:30:04:
17:30:04:Error trying to start Object Detection (YOLOv5 6.2) (detect_adapter.py)
17:30:04:Error is: An error occurred trying to start process 'C:\Program Files\CodeProject\AI\runtimes\bin\windows\python37\venv\Scripts\python' with working directory 'C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2'. The system cannot find the file specified.
17:30:04: at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at CodeProject.AI.Server.Modules.ModuleProcessServices.StartProcess(ModuleConfig module, String installSummary)
 
I am no expert, but it looks like the install program is not able to run PowerShell and some other basic stuff, what version of windows are you running, is the install being run by a user with administrative privileges?
Have you tried running the following command in an elevated terminal windows "SFC /scannow" this command will check your windows install and repair any missing or corrupt files.