Updated to 2.5.6 and now things aren't working

Adam Hahler

Young grasshopper
Jan 13, 2017
38
9
I messed up when updating to 2.5.6 and forgot to uncheck the box about removing modules etc. So after updating I reinstalled the YOLOv5 6.2 module (the one I was using before). Now it won't start after installing the module. I'm getting this message in the log:

10:43:34:Started Object Detection (YOLOv5 6.2) module
10:43:35:detect_adapter.py: Traceback (most recent call last):
10:43:35:detect_adapter.py: File "C:\Program Files\CodeProject\AI\modules\ObjectDetectionYOLOv5-6.2\detect_adapter.py", line 13, in
10:43:35:detect_adapter.py: from module_runner import ModuleRunner
10:43:35:detect_adapter.py: File "../../SDK/Python\module_runner.py", line 30, in
10:43:35:detect_adapter.py: import aiohttp
10:43:35:detect_adapter.py: ModuleNotFoundError: No module named 'aiohttp'
10:43:35:Module ObjectDetectionYOLOv5-6.2 has shutdown
10:43:35:detect_adapter.py: has exited

How do I fix this?
 
Did you uninstall CodeProject and delete the CodeProject folders and reinstall per this post?

 
  • Like
Reactions: MikeLud1
It sucks we have to do that, but it seems to be the sure way to insure it works. I updated yesterday with this method and everything works.
 
  • Like
Reactions: MikeLud1
So interestingly enough, before I did a full uninstall and reinstall, I removed the YOLOv5 6.2 module and reinstalled, and now everything is working. So I guess I'm good to go for now.
 
  • Like
Reactions: MikeLud1
I did follow the article that @wittaj linked prior to trying to install CPAI 2.5.6, but still ended up with the same ModuleNotFoundError for aiohttp.

Uninstall and reinstall of ObjectDetectionYOLOv5-6.2 multiple times with "Do not use download cache" both enabled and disabled has yet to install a functional ObjectDetectionYOLOv5-6.2 or fix the ModuleNotFoundError for aiohttp.

I've posted details over in the CPAI forum.

@MikeLud1 One thing I curious about. The logs mention installing or verifying that Python 3.7 is installed, but I see both a python37 and python39 directory under C:\Program Files\CodeProject\AI\runtimes\bin\windows
Do the other folks successfully running CPAI 2.5.6 have both versions as well?
Any chance there is a version conflict here?
 
The following suggestion by user Jebus59 on the CPAI forum worked for me..

What worked for me with python packages not downloading was to change this following setting in /AI/setup.bat from false to true

REM Whether or not to install all python packages in one step (-r requirements.txt)
REM or step by step. Doing this allows the PIP manager to handle incompatibilities
REM better.
REM ** WARNING ** There is a big tradeoff on keeping the users informed and speed/
REM reliability. Generally one-step shouldn't be needed. But it often is. And it
REM often doesn't actually solve problems either. Overall it's safer, but not a
REM panacea
set oneStepPIP=true


and then manually run ..\..\setup on that module.
 
Last edited:
  • Like
Reactions: MikeLud1
Personally I think codeproject should only run in docker. But I do have one of my system running it in Windows and it has worked pretty flawlessly. You just have to make sure to completely uninstall and delete all folders before upgrading to a newer version