I recently installed the Spinnaker SDK and the PySpin library for use with Flir cameras (I followed the instructions on the website). However, when I tried to run the supplied Acquisition.py example file, I got the error "module 'pyspin' has no attribute 'System'"
A few other notes:
- For some reason, when I used pip to install PySpin, the module was installed with the name "pyspin" rather than "PySpin", even though it was written in the script as PySpin (e.g. import PySpin). Initially the script wasn't even able to find the module until I changed all the library names in the script to the lowercase version.
- I had an unrelated library, also called PySpin, on my computer from before. I used pip to uninstall the old PySpin (python -m pip uninstall PySpin) when I realized this and then reinstalled the "proper" library.
This problem seems to continue to exist: a library called 'pyspin' can be installed via pip, but that's not the correct library for spinnaker-operated hardware: "PySpin" - i.e. there seems to be a naming conflict.
The 'pyspin' - lowercase, seems to be a library that only generates a spinning text graphic, and nothing else - it has nothing at all to do with FLIR - and that's why you cant access the system etc. calls.
Typically, the advice to install the FLIR PySpin library seems to be "go and get the entire spinnaker package from FLIR and install it", though having done that process upwards of six times, I've still not managed to obtain the correct 'PySpin' library, and as far as I can find out, it's not available anywhere else.
If anyone at all can point to a github repo, FLIR repository or anything at all that has the correct 'PySpin' library, please post it here.