-
Notifications
You must be signed in to change notification settings - Fork 42
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
Hamamatsu camera symbol lookup error #291
Comments
My first thought is are you definitely using the same dll? I remember that Mick had a nightmare with the Andor cameras and eventually found that he had two different sets of dll's in different directories that were being accessed by the the vendor software and the python code. |
A system wide search shows only one SO files and the other symlinks to that file, which is actually the one pointed by the error: /usr/local/hamamatsu_dcam/api/modules/libdcamdig.so.4.0.6644 If I move the Hamamatsu tool to another place it still finds the camera, which I assume means that the SO is in the right place. I did some raw tests to find the function and it finds the pointer to the function >>> from ctypes import cdll, CDLL
>>> cdll.LoadLibrary("libdcamapi.so")
<CDLL 'libdcamapi.so', handle 1686b40 at 0x7fc806599710>
>>> libc = CDLL("libdcamapi.so")
>>> libc._Z12get_filepathPciS_
<_FuncPtr object at 0x7fc80641c7a0> |
The error you get is complaining about a missing symbol in You seem to be using DCAM-Api version "4.0.6644" while I was using version "4.0.5868" when developing this. I looked at the version I have and seems to not have that symbol. Maybe I send it to you? |
Indeed that seems to be like that.
|
I'm trying to connect with a Hamamatsu camera (ORCA-Spark) in Linux (Ubuntu 23.04) and I'm getting the following error when I try to get the list of cameras.
(venv) julio@img-mifobio:~/PycharmProjects/microscope$ python microscope/cameras/hamamatsu.py list-devices python: symbol lookup error: /usr/local/hamamatsu_dcam/api/modules/libdcamdig.so: undefined symbol: _Z12get_filepathPciS_
same error calling _list_devices directly or trying to initialize a camera with some id (0, "0", 1, "1").
I traced the error to line 230 (_DCAM_API.init)
I checked with Hamamatsu's own tool and it reports properly a camera connected:
Any idea of can be wrong?
The text was updated successfully, but these errors were encountered: