Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'PySpin' #3

Open
Leungfranklin opened this issue May 9, 2019 · 11 comments
Open

ImportError: cannot import name 'PySpin' #3

Leungfranklin opened this issue May 9, 2019 · 11 comments

Comments

@Leungfranklin
Copy link

The captioned error is displaying in running program. However, I have already 'PIP install pyspin'

@iotaka
Copy link

iotaka commented May 16, 2019

is a different pyspin, they choose name already used by other project more or less for all the tools ...

https://www.flir.com/products/spinnaker-sdk/

this is the correct one

@Ranjith-RN
Copy link

Ranjith-RN commented Feb 18, 2020

ImportError: cannot import name 'PySpin'

@iotaka
Copy link

iotaka commented Feb 27, 2020

ImportError: cannot import name 'PySpin'

you have to install https://www.flir.com/products/spinnaker-sdk/

@talha484
Copy link

Dear!
Kindly list the steps to install the correct one.
I am having a tough time doing it.

@nimble00
Copy link
Owner

try this:
from pyspin import PySpin
instead of
import PySpin

@talha484
Copy link

talha484 commented May 13, 2020 via email

@PavelKatunin
Copy link

Could somebody please tell me how I correctly configure conda or venv on macOS to resolve this naming conflict please ?

@nimble00
Copy link
Owner

Please explain more, what is the naming conflict?

@nimble00 nimble00 reopened this Jul 11, 2020
@emull00
Copy link

emull00 commented Mar 11, 2021

Naming conflict exists because the PySpin software required to interface with spinnaker-related hardware shares the same name as 'pyspin', and also with 'pySPIN', neither of these libraries can be used to operate spinnaker-related hardware - for example, the library 'pyspin' accessible with pip, is a library for a spinning text graphic, not the required library to interface with FLIR cameras: "PySpin'

I've been unable to actually re-install the spinnaker-related 'PySpin' https://www.flir.com/products/spinnaker-sdk/ note that the download is now at :https://flir.app.boxcn.net/v/SpinnakerSDK - but simply reinstalling this does not fix the problem, the entire python PySpin libraries have to be installed:

'PySpin' can be imported from FLIR, but from a slightly different access to the SDK. E.g. for ubuntu:
https://flir.app.boxcn.net/v/SpinnakerSDK -> Linux -> Ubuntu18.04 -> python
in this directory are all the Spinnaker and platform-dependent packages. E.g
running python 3.6 x86 with spinnaker SDK version 2.3.0.77, get
spinnaker_python-2.3.0.77-Ubuntu18.04-cp36-cp36m-linux_x86_64.tar.gz

@i880
Copy link

i880 commented Nov 4, 2021

please some body help why the system tell that`s AttribueError

@antortjim
Copy link

This instruction did not work for me either

from pyspin import PySpin

but indeed, as hinted at in the comment from @emull00 here #3 (comment) one needs to download TWO .tar.gz from the box site from flir (at least on Ubuntu):

One with the SDK
And one with the Python wrappers / modules needed
This second one is inside the python folder, which lives in the same folder as the tar.gz for the SK (at least in Ubuntu)

Mind the Python module is distributed as a wheel and only a python 3.8 version is available. But at least 3 different archs are offered.

I was able to solve this issues after installing the sdk

sudo sh install_spinnaker.sh

and the wheel

pip install spinnaker_python-2.5.0.80-cp38-cp38-linux_x86_64.whl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants