|
Thanks Sean, that solved it!
|
|
|
|
|
I noticed that ALPR is having the same issue. I did the same handling, and the ALPR was working after that.
02:27:05:Module 'License Plate Reader' 3.1.0 (ID: ALPR)
02:27:05:Valid: True
02:27:05:Module Path: <root>\modules\ALPR
02:27:05:Module Location: Internal
02:27:05:AutoStart: True
02:27:05:Queue: alpr_queue
02:27:05:Runtime: python3.9
02:27:05:Runtime Location: Local
02:27:05:FilePath: ALPR_adapter.py
02:27:05:Start pause: 3 sec
02:27:05:Parallelism: 0
02:27:05:LogVerbosity:
02:27:05:Platforms: all
02:27:05:GPU Libraries: installed if available
02:27:05:GPU: use if supported
02:27:05:Accelerator:
02:27:05:Half Precision: enable
02:27:05:Environment Variables
02:27:05:AUTO_PLATE_ROTATE = True
02:27:05:CROPPED_PLATE_DIR = <root>\Server\wwwroot
02:27:05:MIN_COMPUTE_CAPABILITY = 6
02:27:05:MIN_CUDNN_VERSION = 7
02:27:05:OCR_OPTIMAL_CHARACTER_HEIGHT = 60
02:27:05:OCR_OPTIMAL_CHARACTER_WIDTH = 30
02:27:05:OCR_OPTIMIZATION = True
02:27:05:PLATE_CONFIDENCE = 0.7
02:27:05:PLATE_RESCALE_FACTOR = 2
02:27:05:PLATE_ROTATE_DEG = 0
02:27:05:REMOVE_SPACES = False
02:27:05:ROOT_PATH = <root>
02:27:05:SAVE_CROPPED_PLATE = False
02:27:05:
02:27:05:Started License Plate Reader module
02:27:05:Installer exited with code 0
02:27:05:ALPR_adapter.py: RuntimeError: module compiled against ABI version 0x1000009 but this version of numpy is 0x2000000
02:27:05:ALPR_adapter.py: Traceback (most recent call last):
02:27:05:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR_adapter.py", line 16, in
02:27:05:ALPR_adapter.py: from ALPR import init_detect_platenumber, detect_platenumber
02:27:05:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR.py", line 7, in
02:27:05:ALPR_adapter.py: import utils.tools as tool
02:27:05:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ALPR\utils\tools.py", line 2, in
02:27:05:ALPR_adapter.py: import cv2
02:27:05:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv\lib\site-packages\cv2\__init__.py", line 181, in
02:27:05:ALPR_adapter.py: bootstrap()
02:27:05:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv\lib\site-packages\cv2\__init__.py", line 153, in bootstrap
02:27:05:ALPR_adapter.py: native_module = importlib.import_module("cv2")
02:27:05:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python39\lib\importlib\__init__.py", line 127, in import_module
02:27:05:ALPR_adapter.py: return _bootstrap._gcd_import(name[level:], package, level)
02:27:06:ALPR_adapter.py: ImportError: numpy.core.multiarray failed to import
02:27:06:Module ALPR has shutdown
02:27:06:ALPR_adapter.py: has exited
|
|
|
|
|
Hello guys,
I am having an annoying issue with Codeproject. When I am installing it, it is working well but if I restart my PC under windows 10, it is not starting anymore. The solution I found :
- Uninstall it
- Deleting every linked file with program Everything
- Cleaning the registry by removing every key that contain codeproject
- Install again...
This is quite "heavy" to do at each restart. I searched out why CodeProject is not starting and I found that the server can't start and provide error :
The {4991D34B-80A1-4291-83B6-3328366B9097} server did not register with DCOM before the time limit expired.
Anyone could help me please ?
Thanks !
|
|
|
|
|
Thanks very much for your report. Could you please share your System Info tab from your CodeProject.AI Server dashboard?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
Sure, let me do the uninstallation process and installation process to get access to the tab.
By the way, trying to start the server manually trough the link does not work also
|
|
|
|
|
Here you are : (new installation is in progress)
Server version: 2.6.5
System: Windows
Operating System: Windows (Microsoft Windows 10.0.19045)
CPUs: AMD Ryzen 7 5700X 8-Core Processor (AMD)
1 CPU x 8 cores. 16 logical processors (x64)
GPU (Primary): AMD Radeon RX 6700 (10 GiB) (Advanced Micro Devices, Inc.)
Driver: 31.0.24033.1003
System RAM: 16 GiB
Platform: Windows
BuildConfig: Release
Execution Env: Native
Runtime Env: Production
Runtimes installed:
.NET runtime: 7.0.10
.NET SDK: Not found
Default Python: 3.8.5
Go: Not found
NodeJS: Not found
Rust: Not found
Video adapter info:
AMD Radeon RX 6700:
Driver Version 31.0.24033.1003
Video Processor AMD Radeon Graphics Processor (0x73DF)
System GPU info:
GPU 3D Usage 3%
GPU RAM Usage 900,4 MiB
Global Environment variables:
CPAI_APPROOTPATH = <root>
CPAI_PORT = 32168
|
|
|
|
|
I also see this recently.
I am manually starting Code Project.
|
|
|
|
|
By using the link in Windows Start menu ?
Because doing this doesn't change anything for me
|
|
|
|
|
Usually I have to go to services.msc to start Code Project.
Windows key+R services.msc
I've just been seeing it not start when I restart the machine, even though the service is set to Automatic. Registering the app...
Man, that's a blast from the past.
I don't remember what we used to do. (I have been retired from IT for a while now.)
|
|
|
|
|
Maybe regsvr32 <dll name="">?
|
|
|
|
|
Have you tried the solution in this link?
cheers
Chris Maunder
|
|
|
|
|
Hello,
After weeks of test on a different PC etc... I finally found out the issue.
CodeProject was working like a charm on my test PC until I install Comodo Security Suite. It started to randomly start and crash till it never start again.
I fully uninstall Comodo Security Suite and it started to work like a charm again...
|
|
|
|
|
I checked all the model to install using the setup installer. Then when I tried to start the "License Plate Reader 3.1.0", i'm getting the following error and the status is changing to 'Failed to Start'
11:20:40:ALPR_adapter.py: RuntimeError: module compiled against ABI version 0x1000009 but this version of numpy is 0x2000000
11:20:40:ALPR_adapter.py: Traceback (most recent call last):
11:20:40:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR_adapter.py", line 16, in
11:20:40:ALPR_adapter.py: from ALPR import init_detect_platenumber, detect_platenumber
11:20:40:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ALPR\ALPR.py", line 7, in
11:20:40:ALPR_adapter.py: import utils.tools as tool
11:20:40:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ALPR\utils\tools.py", line 2, in
11:20:40:ALPR_adapter.py: import cv2
11:20:40:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv\lib\site-packages\cv2\__init__.py", line 181, in
11:20:40:ALPR_adapter.py: bootstrap()
11:20:40:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ALPR\bin\windows\python39\venv\lib\site-packages\cv2\__init__.py", line 153, in bootstrap
11:20:40:ALPR_adapter.py: native_module = importlib.import_module("cv2")
11:20:40:ALPR_adapter.py: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python39\lib\importlib\__init__.py", line 127, in import_module
11:20:40:ALPR_adapter.py: return _bootstrap._gcd_import(name[level:], package, level)
11:20:40:ALPR_adapter.py: ImportError: numpy.core.multiarray failed to import
I also did reinstall with "Remove previously installed modules" and installed (the ones that were pre-selected), then installed License Plate Reader from the server (install modules). Still getting the same error when starting it.
|
|
|
|
|
Try uninstalling one more time then reinstall using Do not use download cache
|
|
|
|
|
It looks like Numpy 2.0 was just released and it is not backward compatible.
We will need to correct some requirements.txt files to take this into account.
"Mistakes are prevented by Experience. Experience is gained by making mistakes."
|
|
|
|
|
So this Numpy issue is prohibiting OCR/License Plate Reader modules from functioning properly? Is that accurate?
|
|
|
|
|
See:
Re: (FIXED) CPAI update from 2.6.2 to 2.6.5 - YOLOv8 installation issues
This fixed my ALPR issue that had the same symptoms. I just changed to the identical path, but with /ALPR/place of /ObjectDetectionYOLOv8/
|
|
|
|
|
similar numpy error when starting coral
12:33:58:Started Object Detection (Coral) module
12:34:00:objectdetection_coral_adapter.py: A module that was compiled using NumPy 1.x cannot be run in
12:34:00:objectdetection_coral_adapter.py: NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
12:34:00:objectdetection_coral_adapter.py: versions of NumPy, modules must be compiled with NumPy 2.0.
12:34:00:objectdetection_coral_adapter.py: Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
12:34:00:objectdetection_coral_adapter.py: If you are a user of the module, the easiest solution will be to
12:34:00:objectdetection_coral_adapter.py: downgrade to 'numpy<2' or try to upgrade the affected module.
12:34:00:objectdetection_coral_adapter.py: We expect that some modules will need time to support NumPy 2.
12:34:00:objectdetection_coral_adapter.py: Traceback (most recent call last): File "C:\bin\code_project\runtimes\bin\windows\python39\lib\threading.py", line 930, in _bootstrap
12:34:00:objectdetection_coral_adapter.py: self._bootstrap_inner()
12:34:00:objectdetection_coral_adapter.py: File "C:\bin\code_project\runtimes\bin\windows\python39\lib\threading.py", line 973, in _bootstrap_inner
12:34:00:objectdetection_coral_adapter.py: self.run()
12:34:00:objectdetection_coral_adapter.py: File "C:\bin\code_project\runtimes\bin\windows\python39\lib\threading.py", line 910, in run
12:34:00:objectdetection_coral_adapter.py: self._target(*self._args, **self._kwargs)
12:34:00:objectdetection_coral_adapter.py: File "C:\bin\code_project\runtimes\bin\windows\python39\lib\concurrent\futures\thread.py", line 77, in _worker
12:34:00:objectdetection_coral_adapter.py: work_item.run()
12:34:00:objectdetection_coral_adapter.py: File "C:\bin\code_project\runtimes\bin\windows\python39\lib\concurrent\futures\thread.py", line 52, in run
12:34:00:objectdetection_coral_adapter.py: result = self.fn(*self.args, **self.kwargs)
12:34:00:objectdetection_coral_adapter.py: File "C:\bin\code_project\modules\ObjectDetectionCoral\objectdetection_coral_adapter.py", line 48, in initialise
12:34:00:objectdetection_coral_adapter.py: self.enable_GPU = self.system_info.hasCoralTPU
12:34:00:objectdetection_coral_adapter.py: File "C:\bin\code_project\modules\ObjectDetectionCoral\../../SDK/Python\system_info.py", line 344, in hasCoralTPU
12:34:00:objectdetection_coral_adapter.py: from pycoral.utils.edgetpu import list_edge_tpus
12:34:00:objectdetection_coral_adapter.py: File "C:\bin\code_project\modules\ObjectDetectionCoral\bin\windows\python39\venv\lib\site-packages\pycoral\utils\edgetpu.py", line 24, in
12:34:00:objectdetection_coral_adapter.py: from pycoral.pybind._pywrap_coral import GetRuntimeVersion as get_runtime_version
12:34:00:objectdetection_coral_adapter.py: AttributeError: _ARRAY_API not found
|
|
|
|
|
I'd like to start by mentioning that CP.AI works beautifully... when it works.
Usually, that happens after I spend several hours fixing its installation after each update. This is a process that is, and has been in DIRE need of improvement for the last couple years since I started using CP.AI.
Updating from 2.6.2 to 2.6.5 is no different.
2.6.2 worked perfectly for months (that is, since about a day after I upgraded, because the first day was spent fixing the update process). Using YOLOv8 and License Plate Reader on a dedicated machine hosting Blue Iris, with an RTX 4060 as GPU.
I installed 2.6.5 - the default modules checked were YOLOv5 .NET and YOLOv5 6.2; since I use none, I unchecked them and checked YOLOv8 and License Plate Reader. Much to my surprise, once everything was installed, I found out that my options were ignored. It happens, I guess.
I uninstalled those modules and clicked "Install" (with "Do not use cache enabled") next to YOLOv8 module.
Nothing.
After several attempts, I restarted the CP.AI service - still nothing, no reaction to pressing the button for YOLOv8 module.
Running out of options, I restarted the whole PC and reinstalled CP.AI 2.6.5, once again checking YOLOv8 and License Plate Reader only.
Surprisingly, this time, the modules started installing... there is hope.
But both YOLOv8 and ALPR modules failed to install and start properly.
Log is below:
<pre>18:07:31:Installing module 'ObjectDetectionYOLOv8'
18:07:31:ObjectDetectionYOLOv8: Installing CodeProject.AI Analysis Module
18:07:31:ObjectDetectionYOLOv8: ======================================================================
18:07:31:ObjectDetectionYOLOv8: CodeProject.AI Installer
18:07:31:ObjectDetectionYOLOv8: ======================================================================
18:07:31:ObjectDetectionYOLOv8: 868.3Gb of 976Gb available on BIBoot
18:07:31:ObjectDetectionYOLOv8: General CodeProject.AI setup
18:07:31:ObjectDetectionYOLOv8: Creating Directories...done
18:07:31:ObjectDetectionYOLOv8: GPU support
18:07:31:ObjectDetectionYOLOv8: CUDA Present...Yes (CUDA 12.4, cuDNN 9.1)
18:07:31:ObjectDetectionYOLOv8: ROCm Present...No
18:07:31:ObjectDetectionYOLOv8: Checking for .NET 7.0...Checking SDKs...Upgrading: .NET is 0
18:07:31:ObjectDetectionYOLOv8: Current version is 0. Installing newer version.
18:07:31:ObjectDetectionYOLOv8: 'winget' is not recognized as an internal or external command,
18:07:31:ObjectDetectionYOLOv8: operable program or batch file.
18:07:33:ObjectDetectionYOLOv8: Reading ObjectDetectionYOLOv8 settings.......done
18:07:33:ObjectDetectionYOLOv8: Installing module Object Detection (YOLOv8) 1.4.3
18:07:33:Module ALPR started successfully.
18:07:33:ObjectDetectionYOLOv8: Installing Python 3.9
18:07:33:ObjectDetectionYOLOv8: Python 3.9 is already installed
18:07:38:ObjectDetectionYOLOv8: Creating Virtual Environment (Local)...done
18:07:38:ObjectDetectionYOLOv8: Confirming we have Python 3.9 in our virtual environment...present
18:07:38:ObjectDetectionYOLOv8: Installing Python packages for Object Detection (YOLOv8)
18:07:38:ObjectDetectionYOLOv8: [0;Installing GPU-enabled libraries: If available
18:07:40:ObjectDetectionYOLOv8: Ensuring Python package manager (pip) is installed...done
18:07:48:ObjectDetectionYOLOv8: Ensuring Python package manager (pip) is up to date...done
18:07:48:ObjectDetectionYOLOv8: Python packages specified by requirements.windows.cuda.txt
18:08:43:ObjectDetectionYOLOv8: - Installing PyTorch, an open source machine learning framework...(✅ checked) done
18:09:57:ObjectDetectionYOLOv8: - Installing TorchVision, for working with computer vision models...(✅ checked) done
18:11:46:ObjectDetectionYOLOv8: - Installing Ultralytics package for object detection in images...(✅ checked) done
18:11:47:ObjectDetectionYOLOv8: Installing Python packages for the CodeProject.AI Server SDK
18:11:48:ObjectDetectionYOLOv8: Ensuring Python package manager (pip) is installed...done
18:11:50:ObjectDetectionYOLOv8: Ensuring Python package manager (pip) is up to date...done
18:11:50:ObjectDetectionYOLOv8: Python packages specified by requirements.txt
18:11:51:ObjectDetectionYOLOv8: - Installing Pillow, a Python Image Library...Already installed
18:11:52:ObjectDetectionYOLOv8: - Installing Charset normalizer...Already installed
18:11:56:ObjectDetectionYOLOv8: - Installing aiohttp, the Async IO HTTP library...(✅ checked) done
18:11:58:ObjectDetectionYOLOv8: - Installing aiofiles, the Async IO Files library...(✅ checked) done
18:11:59:ObjectDetectionYOLOv8: - Installing py-cpuinfo to allow us to query CPU info...Already installed
18:12:00:ObjectDetectionYOLOv8: - Installing Requests, the HTTP library...Already installed
18:12:01:ObjectDetectionYOLOv8: Scanning modulesettings for downloadable models...Processing model list
18:14:52:ObjectDetectionYOLOv8: Downloading YOLOv8 Object Detection all sizes...Expanding...done.
18:14:52:ObjectDetectionYOLOv8: Copying contents of objectdetection-coco-yolov8-pt-nsmlx.zip to assets...done
18:18:04:ObjectDetectionYOLOv8: Downloading YOLOv8 Object Segmentation all sizes...Expanding...done.
18:18:04:ObjectDetectionYOLOv8: Copying contents of objectsegmentation-coco-yolov8-pt-nsmlx.zip to assets...done
18:18:34:ObjectDetectionYOLOv8: Downloading YOLOv8 Object Custom models...Expanding...done.
18:18:34:ObjectDetectionYOLOv8: Copying contents of objectdetection-custom-yolov8-pt-m.zip to custom-models...done
18:18:38:ObjectDetectionYOLOv8: A module that was compiled using NumPy 1.x cannot be run in
18:18:38:ObjectDetectionYOLOv8: NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
18:18:38:ObjectDetectionYOLOv8: versions of NumPy, modules must be compiled with NumPy 2.0.
18:18:38:ObjectDetectionYOLOv8: Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
18:18:38:ObjectDetectionYOLOv8: If you are a user of the module, the easiest solution will be to
18:18:38:ObjectDetectionYOLOv8: downgrade to 'numpy<2' or try to upgrade the affected module.
18:18:38:ObjectDetectionYOLOv8: We expect that some modules will need time to support NumPy 2.
18:18:38:ObjectDetectionYOLOv8: Traceback (most recent call last): File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\detect_adapter.py", line 20, in
18:18:38:ObjectDetectionYOLOv8: from detect import do_detection
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\detect.py", line 11, in
18:18:38:ObjectDetectionYOLOv8: from ultralytics import YOLO
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\ultralytics\__init__.py", line 5, in
18:18:38:ObjectDetectionYOLOv8: from ultralytics.data.explorer.explorer import Explorer
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\ultralytics\data\__init__.py", line 3, in
18:18:38:ObjectDetectionYOLOv8: from .base import BaseDataset
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\ultralytics\data\base.py", line 12, in
18:18:38:ObjectDetectionYOLOv8: import cv2
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\cv2\__init__.py", line 181, in
18:18:38:ObjectDetectionYOLOv8: bootstrap()
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\cv2\__init__.py", line 153, in bootstrap
18:18:38:ObjectDetectionYOLOv8: native_module = importlib.import_module("cv2")
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python39\lib\importlib\__init__.py", line 127, in import_module
18:18:38:ObjectDetectionYOLOv8: return _bootstrap._gcd_import(name[level:], package, level)
18:18:38:ObjectDetectionYOLOv8: AttributeError: _ARRAY_API not found
18:18:38:ObjectDetectionYOLOv8: Traceback (most recent call last):
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\detect_adapter.py", line 20, in
18:18:38:ObjectDetectionYOLOv8: from detect import do_detection
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\detect.py", line 11, in
18:18:38:ObjectDetectionYOLOv8: from ultralytics import YOLO
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\ultralytics\__init__.py", line 5, in
18:18:38:ObjectDetectionYOLOv8: from ultralytics.data.explorer.explorer import Explorer
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\ultralytics\data\__init__.py", line 3, in
18:18:38:ObjectDetectionYOLOv8: from .base import BaseDataset
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\ultralytics\data\base.py", line 12, in
18:18:38:ObjectDetectionYOLOv8: import cv2
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\cv2\__init__.py", line 181, in
18:18:38:ObjectDetectionYOLOv8: bootstrap()
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\cv2\__init__.py", line 153, in bootstrap
18:18:38:ObjectDetectionYOLOv8: native_module = importlib.import_module("cv2")
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python39\lib\importlib\__init__.py", line 127, in import_module
18:18:38:ObjectDetectionYOLOv8: return _bootstrap._gcd_import(name[level:], package, level)
18:18:38:ObjectDetectionYOLOv8: ImportError: numpy.core.multiarray failed to import
18:18:38:ObjectDetectionYOLOv8: Self test: Self-test passed
18:18:38:ObjectDetectionYOLOv8: Module setup time 00:11:06.29
18:18:38:ObjectDetectionYOLOv8: Setup complete
18:18:38:ObjectDetectionYOLOv8: Total setup time 00:11:06.94
18:18:38:Module ObjectDetectionYOLOv8 installed successfully.
18:18:38:Module ObjectDetectionYOLOv8 not configured to AutoStart.
18:18:38:Installer exited with code 0
Now, I am not a Python developer, therefore I don't know how to resolve this. I do see there are two separate problems:
1.
18:07:31:ObjectDetectionYOLOv8: Checking for .NET 7.0...Checking SDKs...Upgrading: .NET is 0
18:07:31:ObjectDetectionYOLOv8: Current version is 0. Installing newer version.
18:07:31:ObjectDetectionYOLOv8: 'winget' is not recognized as an internal or external command,
18:07:31:ObjectDetectionYOLOv8: operable program or batch file.
2.
<pre>18:18:38:ObjectDetectionYOLOv8: A module that was compiled using NumPy 1.x cannot be run in
18:18:38:ObjectDetectionYOLOv8: NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
18:18:38:ObjectDetectionYOLOv8: versions of NumPy, modules must be compiled with NumPy 2.0.
18:18:38:ObjectDetectionYOLOv8: Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
18:18:38:ObjectDetectionYOLOv8: If you are a user of the module, the easiest solution will be to
18:18:38:ObjectDetectionYOLOv8: downgrade to 'numpy<2' or try to upgrade the affected module.
18:18:38:ObjectDetectionYOLOv8: We expect that some modules will need time to support NumPy 2.
18:18:38:ObjectDetectionYOLOv8: Traceback (most recent call last): File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\detect_adapter.py", line 20, in
18:18:38:ObjectDetectionYOLOv8: from detect import do_detection
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\detect.py", line 11, in
18:18:38:ObjectDetectionYOLOv8: from ultralytics import YOLO
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\ultralytics\__init__.py", line 5, in
18:18:38:ObjectDetectionYOLOv8: from ultralytics.data.explorer.explorer import Explorer
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\ultralytics\data\__init__.py", line 3, in
18:18:38:ObjectDetectionYOLOv8: from .base import BaseDataset
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\ultralytics\data\base.py", line 12, in
18:18:38:ObjectDetectionYOLOv8: import cv2
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\cv2\__init__.py", line 181, in
18:18:38:ObjectDetectionYOLOv8: bootstrap()
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\cv2\__init__.py", line 153, in bootstrap
18:18:38:ObjectDetectionYOLOv8: native_module = importlib.import_module("cv2")
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python39\lib\importlib\__init__.py", line 127, in import_module
18:18:38:ObjectDetectionYOLOv8: return _bootstrap._gcd_import(name[level:], package, level)
18:18:38:ObjectDetectionYOLOv8: AttributeError: _ARRAY_API not found
18:18:38:ObjectDetectionYOLOv8: Traceback (most recent call last):
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\detect_adapter.py", line 20, in
18:18:38:ObjectDetectionYOLOv8: from detect import do_detection
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\detect.py", line 11, in
18:18:38:ObjectDetectionYOLOv8: from ultralytics import YOLO
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\ultralytics\__init__.py", line 5, in
18:18:38:ObjectDetectionYOLOv8: from ultralytics.data.explorer.explorer import Explorer
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\ultralytics\data\__init__.py", line 3, in
18:18:38:ObjectDetectionYOLOv8: from .base import BaseDataset
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\ultralytics\data\base.py", line 12, in
18:18:38:ObjectDetectionYOLOv8: import cv2
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\cv2\__init__.py", line 181, in
18:18:38:ObjectDetectionYOLOv8: bootstrap()
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\lib\site-packages\cv2\__init__.py", line 153, in bootstrap
18:18:38:ObjectDetectionYOLOv8: native_module = importlib.import_module("cv2")
18:18:38:ObjectDetectionYOLOv8: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python39\lib\importlib\__init__.py", line 127, in import_module
18:18:38:ObjectDetectionYOLOv8: return _bootstrap._gcd_import(name[level:], package, level)
18:18:38:ObjectDetectionYOLOv8: ImportError: numpy.core.multiarray failed to import
I attempted to fix the first issue by manually installing .NET 7.0 - which resolved exactly nothing. Same error messages appeared.
So, once again, I am at someone else's pity to help me successfully finalize the update.
Thank you!
|
|
|
|
|
I have resolved NumPy 2.0.0 error by downgrading to NumPy 1.23.0
For those which experience a similar issue, here are the steps:
1. Open a Command Prompt in Admin mode;
2. Navigate to the YOLOv8 installation folder, Scripts subfolder. In my case, the full path was
C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv8\bin\windows\python39\venv\Scripts>
3. Activate the virtual environment by typing:
activate
4. Run the following command:
pip install numpy==1.23.0
This will uninstall NumPy 2.0.0 and replace it with NumPy 1.23.0
Afterwards, the YOLOv8 module will start and run successfully.
At this point, I am too tired and fed up to even attempt installing other modules. At least Blue Iris sends info to CP.AI and detections are successfully processed.
|
|
|
|
|
This helped with reverting the Coral Module back to 2.2.2 as well. Thank you so much!!
|
|
|
|
|
YOLO5.Net stops running after an hour or two even though it's supposed to stop / start with Blue Iris. The Blue Iris Server is running. The CodeProjectAI server indicates it is still on-line.
How can I prevent YOLOv5.net from stopping?
19:25:51:System: Windows
19:25:51:Operating System: Windows (Microsoft Windows 11 version 10.0.22631)
19:25:51:CPUs: 13th Gen Intel(R) Core(TM) i7-1360P (Intel)
19:25:51: 1 CPU x 12 cores. 16 logical processors (x64)
19:25:51:GPU (Primary): Intel(R) Iris(R) Xe Graphics (128 MiB) (Intel Corporation)
19:25:51: Driver: 31.0.101.5522
19:25:51:System RAM: 32 GiB
19:25:51:Platform: Windows
19:25:51:BuildConfig: Release
19:25:51:Execution Env: Native
19:25:51:Runtime Env: Production
19:25:51:Runtimes installed:
19:25:51: .NET runtime: 8.0.3
19:25:51: .NET SDK: 8.0.202
19:25:51: Default Python: Not found
19:25:51: Go: Not found
19:25:51: NodeJS: Not found
19:25:51: Rust: Not found
19:25:51:App DataDir: C:\ProgramData\CodeProject\AI
19:25:51:Video adapter info:
19:25:51: Intel(R) Iris(R) Xe Graphics:
19:25:51: Driver Version 31.0.101.5522
19:25:51: Video Processor Intel(R) Iris(R) Xe Graphics Family
19:25:51:STARTING CODEPROJECT.AI SERVER
19:25:51:RUNTIMES_PATH = C:\Program Files\CodeProject\AI\runtimes
19:25:51:PREINSTALLED_MODULES_PATH = C:\Program Files\CodeProject\AI\preinstalled-modules
19:25:51:DEMO_MODULES_PATH = C:\Program Files\CodeProject\AI\src\demos\modules
19:25:51:EXTERNAL_MODULES_PATH =
19:25:51:MODULES_PATH = C:\Program Files\CodeProject\AI\modules
19:25:51:PYTHON_PATH = \bin\windows\%PYTHON_NAME%\venv\Scripts\python
19:25:51:Data Dir = C:\ProgramData\CodeProject\AI
19:25:51:Server version: 2.6.5
19:25:55:
19:25:55:Module 'Face Processing' 1.10.2 (ID: FaceProcessing)
19:25:55:Valid: True
19:25:55:Module Path: <root>\modules\FaceProcessing
19:25:55:Module Location: Internal
19:25:55:AutoStart: True
19:25:55:Queue: faceprocessing_queue
19:25:55:Runtime: python3.7
19:25:55:Runtime Location: Shared
19:25:55:FilePath: intelligencelayer\face.py
19:25:55:Start pause: 3 sec
19:25:55:Parallelism: 0
19:25:55:LogVerbosity:
19:25:55:Platforms: all,!jetson
19:25:55:GPU Libraries: installed if available
19:25:55:GPU: use if supported
19:25:55:Accelerator:
19:25:55:Half Precision: enable
19:25:55:Environment Variables
19:25:55:APPDIR = <root>\modules\FaceProcessing\intelligencelayer
19:25:55:DATA_DIR = C:\ProgramData\CodeProject\AI
19:25:55:MODE = MEDIUM
19:25:55:MODELS_DIR = <root>\modules\FaceProcessing\assets
19:25:55:PROFILE = desktop_gpu
19:25:55:USE_CUDA = True
19:25:55:YOLOv5_AUTOINSTALL = false
19:25:55:YOLOv5_VERBOSE = false
19:25:55:
19:25:55:Started Face Processing module
19:25:57:Server: This is the latest version
19:28:35:Sending shutdown request to python/FaceProcessing
19:28:49:face.py: Face Processing started.
19:28:50:Module FaceProcessing has shutdown
19:28:50:face.py: has exited
19:29:08:FaceProcessing went quietly
Logging level
|
|
|
|
|
Thanks very much for your report. Let's start with unchecking that box, Auto start/stop with Blue Iris.
Independent of Blue Iris, if you leave CodeProject.AI Server open and running, using it in the Explorer, does it the server or modules go offline?
Thanks,
Sean Ewington
CodeProject
|
|
|
|
|
when this problem initially occurred, CodeProject was starting and stopping correctly when Blue Iris started and stopped, but YOLOv5.net would never start even when CodeProject started. I had to manualy restart YOLOv5.net to get it to run, but it would shut down within 2 hours even if I left Blue Iris up. Same with the Blue Iris server running. I tried unchecking and rechecking the box without any success.
I uninstalled both Blue Iris and Code Project and reinstalled everything. Now everything is running OK with the box checked, but never shuts down with Blue Iris even with the Blue Iris Server not running. Checking or unchecking the box doesn't seem to make a difference.
|
|
|
|
|
If I already have cropped plates is it possible to bypass detecting what is a plate and just submit a cropped plate to the OCR part and return the plate?
|
|
|
|
|