Click here to Skip to main content
15,916,398 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi I have installed codeProject.ai server for linux and run. It is running in my device as expected. But When I try install module which is YOLO v5.3.1 , It throws the below error :

Terminal
Trace Starting Background AI Modules
Trace Running module using: /usr/bin/codeproject.ai-server-2.5.4/modules/ObjectDetectionYOLOv5-3.1/bin/linux/python38/venv/bin/python3
Debug 
Debug Attempting to start ObjectDetectionYOLOv5-3.1 with /usr/bin/codeproject.ai-server-2.5.4/modules/ObjectDetectionYOLOv5-3.1/bin/linux/python38/venv/bin/python3 "/usr/bin/codeproject.ai-server-2.5.4/modules/ObjectDetectionYOLOv5-3.1/detect_adapter.py"
Trace Starting /usr...Ov5-3.1/bin/linux/python38/venv/bin/python3 "/usr...jectDetectionYOLOv5-3.1/detect_adapter.py"
Infor 
Infor ** Module 'Object Detection (YOLOv5 3.1)' 1.9.1 (ID: ObjectDetectionYOLOv5-3.1)
Infor ** Valid:         True
Infor ** Module Path:   <root>/modules/ObjectDetectionYOLOv5-3.1
Infor ** AutoStart:     True
Infor ** Queue:         objectdetection_queue
Infor ** Runtime:       python3.8
Infor ** Runtime Loc:   Local
Infor ** FilePath:      detect_adapter.py
Infor ** Pre installed: False
Infor ** Start pause:   1 sec
Infor ** Parallelism:   0
Infor ** LogVerbosity:
Infor ** Platforms:     all,!macos-arm64
Infor ** GPU Libraries: installed if available
Infor ** GPU Enabled:   enabled
Infor ** Accelerator:
Infor ** Half Precis.:  enable
Infor ** Environment Variables
Infor ** APPDIR         = <root>/modules/ObjectDetectionYOLOv5-3.1
Infor ** DATA_DIR       = /etc/codeproject/ai
Infor ** MODE           = MEDIUM
Infor ** MODELS_DIR     = <root>/modules/ObjectDetectionYOLOv5-3.1/assets
Infor ** PROFILE        = desktop_gpu
Infor ** TEMP_PATH      = <root>/modules/ObjectDetectionYOLOv5-3.1/tempstore
Infor ** USE_CUDA       = True
Infor ** YOLOv5_VERBOSE = false
Infor 
Infor Started Object Detection (YOLOv5 3.1) module
Error detect_adapter.py: Traceback (most recent call last):
Error detect_adapter.py:   File "/usr/bin/codeproject.ai-server-2.5.4/modules/ObjectDetectionYOLOv5-3.1/detect_adapter.py", line 14, in <module>
Error detect_adapter.py:     from request_data import RequestData
Error detect_adapter.py:   File "/usr/bin/codeproject.ai-server-2.5.4/modules/ObjectDetectionYOLOv5-3.1/../../SDK/Python/request_data.py", line 8, in <module>
Error detect_adapter.py:     from PIL import Image
Error detect_adapter.py: ModuleNotFoundError: No module named 'PIL'
Infor ** Module ObjectDetectionYOLOv5-3.1 has shutdown
Infor detect_adapter.py: has exited
Opening in existing browser session.
Debug Current Version is 2.5.4
Infor *** A new version 2.5.6 is available

How should i overcome this issue ?

What I have tried:

I have reinstalled the codeProject.ai and tried to install module again ( YOLO v8 )It got installed again as below:

Terminal
Debug 
Debug Attempting to start ObjectDetectionYOLOv8 with /usr/bin/codeproject.ai-server-2.5.4/runtimes/bin/linux/python38/venv/bin/python3 "/usr/bin/codeproject.ai-server-2.5.4/modules/ObjectDetectionYOLOv8/detect_adapter.py"
Trace Starting /usr...untimes/bin/linux/python38/venv/bin/python3 "/usr...s/ObjectDetectionYOLOv8/detect_adapter.py"
Infor 
Infor ** Module 'Object Detection (YOLOv8)' 1.3.1 (ID: ObjectDetectionYOLOv8)
Infor ** Valid:         True
Infor ** Module Path:   <root>/modules/ObjectDetectionYOLOv8
Infor ** AutoStart:     True
Infor ** Queue:         objectdetection_queue
Infor ** Runtime:       python3.8
Infor ** Runtime Loc:   Shared
Infor ** FilePath:      detect_adapter.py
Infor ** Pre installed: False
Infor ** Start pause:   1 sec
Infor ** Parallelism:   0
Infor ** LogVerbosity:
Infor ** Platforms:     all
Infor ** GPU Libraries: installed if available
Infor ** GPU Enabled:   enabled
Infor ** Accelerator:
Infor ** Half Precis.:  enable
Infor ** Environment Variables
Infor ** APPDIR              = <root>/modules/ObjectDetectionYOLOv8
Infor ** CPAI_HALF_PRECISION = force
Infor ** CUSTOM_MODELS_DIR   = <root>/modules/ObjectDetectionYOLOv8/custom-models
Infor ** MODELS_DIR          = <root>/modules/ObjectDetectionYOLOv8/assets
Infor ** MODEL_SIZE          = Medium
Infor ** USE_CUDA            = True
Infor ** YOLOv5_AUTOINSTALL  = false
Infor ** YOLOv5_VERBOSE      = false
Infor 
Infor Started Object Detection (YOLOv8) module
Error detect_adapter.py: Traceback (most recent call last):
Error detect_adapter.py:   File "/usr/bin/codeproject.ai-server-2.5.4/modules/ObjectDetectionYOLOv8/detect_adapter.py", line 12, in <module>
Error detect_adapter.py:     from request_data import RequestData
Error detect_adapter.py:   File "/usr/bin/codeproject.ai-server-2.5.4/modules/ObjectDetectionYOLOv8/../../SDK/Python/request_data.py", line 8, in <module>
Error detect_adapter.py:     from PIL import Image
Error detect_adapter.py: ModuleNotFoundError: No module named 'PIL'
Infor ** Module ObjectDetectionYOLOv8 has shutdown
Infor detect_adapter.py: has exited
Opening in existing browser session.
Debug Current Version is 2.5.4
Infor *** A new version 2.5.6 is available


The same error still available.
Posted
Updated 27-Mar-24 23:28pm
v2

1 solution

Please post your question in the CodeProject.AI Discussions[^] forum.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900