seekcamera-python icon indicating copy to clipboard operation
seekcamera-python copied to clipboard

version = versions[-1] ~~~~~~~~^^^^ IndexError: list index out of range

Open Salvantore opened this issue 1 year ago • 3 comments

When I download and install Seek thermal SDK, and run the code I get this error, I don't know how to fix it, hope you can fix it for me

Salvantore avatar May 18 '24 16:05 Salvantore

It looks like you don't have SEEKTHERMAL_LIB_DIR in your environment as noted in the "Other dependencies" section of the README.

tmullanix avatar May 18 '24 16:05 tmullanix

What should I do to fix that error? I downloaded Seek_Thermal_SDK_4.4.2.20 and set up the path C:\Program Files\Seek Thermal\Seek Thermal SDK\Seek_Thermal_SDK_4.4.2.20\x64-windows\lib . I wonder if there is any way to fix the error version = versions[-1] ~~~~~~~~^^^^ IndexError: list index out of range? please let me know

Salvantore avatar May 19 '24 08:05 Salvantore

While it looks like the "else" case could use a little clean-up, you are only getting there because the SEEKTHERMAL_LIB_DIR variable is not in the environment. Please open a new "command prompt" and type "set". SEEKTHERMAL_LIB_DIR should be in the list.

image

tmullanix avatar May 19 '24 17:05 tmullanix

image When I follow your instructions I get the error RuntimeError: Failed to load seekcamera.dll from C:\Program Files\Seek Thermal\Seek Thermal SDK\Seek_Thermal_SDK_4.4.2.20\x64-windows\lib\seekcamera.dll \seekcamera.dll

songucci1 avatar May 23 '24 14:05 songucci1

Is the Seek Thermal 4.4.2.20 SDK installed in c:\Program Files\Seek Thermal\Seek _Thermal_SDK?

tmullanix avatar May 23 '24 15:05 tmullanix

yes i have installed thermal camera sdk library image

songucci1 avatar May 23 '24 15:05 songucci1

The env variable should not have seekcamera.dll in it. That automatically gets appended.

env

tmullanix avatar May 23 '24 16:05 tmullanix

I don't get what you mean. Can you show how to fix this error?

songucci1 avatar May 23 '24 16:05 songucci1

Set the env variable through Windows System Properties->Environment Variables. Select SEEKTHERMAL_LIB_DIR (or create it if you don't have one) and set it to the directory of the dll. Do not include the dll in the name though. Hit "OK" for all of these and then open a new command prompt to pick up the new variable.

image

tmullanix avatar May 23 '24 16:05 tmullanix

Thank you. I did it

songucci1 avatar May 23 '24 16:05 songucci1

Great

tmullanix avatar May 23 '24 16:05 tmullanix