project-teachable-sorter icon indicating copy to clipboard operation
project-teachable-sorter copied to clipboard

No module named 'FLIR.flir' Error Message

Open rob26r opened this issue 5 years ago • 4 comments

Has anyone else seen the error message below? I'm using the same FLIR camera they used in the tutorial.

pi@raspberrypi:~/project-teachable-sorter/Sorter $ python3 sorter.py --flir
Traceback (most recent call last):
  File "sorter.py", line 158, in <module>
    import FLIR
  File "/home/pi/project-teachable-sorter/Sorter/FLIR/__init__.py", line 18, in <module>
    from .flir import FlirBFS
ModuleNotFoundError: No module named 'FLIR.flir'

How can I fix this? Thanks.

rob26r avatar Feb 06 '20 03:02 rob26r

@rob26r did you manage to fix this?

I am working from memory here - an intern of ours had the same issue and the short-cut/workaround was just to move the FLIR script into the same folder as the script - an issue with the referencing it seems.

Let me know if you haven't sorted it and can advise. They also left out a lot of the FLIR camera requirements - shutter speed etc.

matallan avatar Mar 29 '20 09:03 matallan

What kind of camera you r using?

moorka2820 avatar Jul 16 '20 05:07 moorka2820

Does this issue still persist ?

manoj7410 avatar Jul 22 '21 12:07 manoj7410

In the FLIR folder there is a file named init.py

.flir shoud be .FLIR The folder name is all caps so I assume .FLIR should be all caps

#from .flir import FlirBFS

from .FLIR import FlirBFS

slingen avatar Apr 17 '24 02:04 slingen