luxonis / depthai-experiments

Experimental projects we've done with DepthAI.
MIT License
801 stars 357 forks source link

ModuleNotFoundError: No module named 'blobconverter' even tho it is installed. #431

Closed DrBwts closed 1 year ago

DrBwts commented 1 year ago

I'm trying to run gen2-face-recognition on a Win 10 x64 machine, I created an evironment & ran,

python -m pip install -r requirements.txt

It all installed & so I tried to run main.py --name Nic and then got the followng error,

Traceback (most recent call last):
  File "D:\Depth_AI\depthai-experiments\gen2-face-recognition\main.py", line 4, in <module>
    import blobconverter
ModuleNotFoundError: No module named 'blobconverter'

So I checked to see if the blobconverter module has been installed,

conda list | findstr "blobconverter"
blobconverter             1.3.0                    pypi_0    pypi

Yep its there, reinstall anyway, same error. Any clue why this is happening?

Interstingly, when I open up a python console & import there is no problem,

Python 3.9.15 (main, Nov  4 2022, 16:35:55) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import blobconverter
>>>
Erol444 commented 1 year ago

Hi @DrBwts , could you try python -mpip install blobconverter -U?

DrBwts commented 1 year ago

It was the way I was calling the script. I should have used python main.py --name Nic

All working now my bad.