-
Notifications
You must be signed in to change notification settings - Fork 77
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
ValueError: Cannot find library '('uc480' , 'ueye_api')' #55
Comments
I have a couple of ideas:
|
Thanks for your prompt reply. Does it work on both python 2 and 3? |
Yes, it should; it's possible there are latent bugs, though. I personally use it with Python 3 these days. |
I have a mess with installations of both python 2 and python 3. I also realized that the version that I had was 32 bit. I friend of mind just got it working with the 64 bit version of python. As soon as I fix my installations, I think it should work (with the 64 bit). I will let you know. |
Now I'm getting (with Python 3 64bit): My friend does see this module with python 2 |
Ok, so I installed python 2 and it now loads |
Try enabling logging and running uc480's
|
You can post the log here if you need to. Also, if you post another exception, it'll be most useful with the full backtrace so we can see exactly where it came from. |
Nate, It's still printing an empty array. Where is the logging saved? |
When you enable logging as shown above, the logs will be printed on the terminal. If you want to save to a file instead, you should be able to use the |
There is nothing being printed in the command line. Also, I noticed that if I remove the PATH for the dll and run from instrumental.drivers.cameras import uc480 after that, it still seems to work, but the array is still empty when I list instruments. I don't see any difference between having the dll on PATH or not. |
My error: I forgot the logging system was recently changed. Instead, try this:
|
This is what it prints in addition to the empty array when I type uc480.list_instruments(): |
|
Did your output get truncated somehow? There should be a lot more log output, like dozens or hundreds of lines. |
I don't know if the output is truncated. Do you see many more lines when you run those commands? What do you think is going on? |
If I start logging before importing Are you running any other application that might be using the camera when you're trying to do this? You also might check what
returns. This is calling the Thorlabs library more directly. |
Nate, I get zero cameras when I run that command. and also the same [ INFO] debugging line. |
When I run the same commands but without the USB cable connected, I get the same results and identical logs. It's still not seeing the camera for some reason. This is the camera that I'm using, by the way: It works on ThorCam just fine. ~Daniel |
This is one of the Thorlabs "Scientific" cameras, which means it uses the TSI library, not uc480. You'll have to make sure that If this isn't working, post the debug output you get from running:
|
I get no log output and still printing an empty array when I run those lines you told me. tsi_sdk.dll was already on path. |
I'm not sure what more to tell you at this point; you'll probably have to do some deeper digging yourself. I'd recommend importing The driver uses |
No worries. Thanks for your help. ~Daniel |
Hi Daniel, have you managed to get it work? I'm using a CS2100M-USB camera and I'm getting the same issue than you, tsi.list_instruments() returns an empty array. |
Yeah I did, but not with Instrumental. I am using the C API that comes with
the software and ImageMagick to get TIF image files (or basically any
format you want). It’s working great and it’s quite fast. I can send you
the code if you like.
…-Daniel
On Thu, Sep 27, 2018 at 3:52 AM birdyberth ***@***.***> wrote:
Hi Daniel, have you managed to get it work? I'm using a CS2100M-USB camera
and I'm getting the same issue than you, tsi.list_instruments() returns an
empty array.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#55 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhTYTI1WQxIj19oKuGszkOrvmrRIZphnks5ufC9IgaJpZM4VM3Hj>
.
|
@danielmtzz Are you referring to the C++ API, or has Thorlabs recently released a C API for its scientific cameras? I'd also be interested in seeing the code. |
@natezb and @birdyberth: The Thorlabs "ThorCam" software that I downloaded (version 3.1.0) also included a C API in the installation directory. For me, this is in (using 64-bit version): C:\Program Files\Thorlabs\Scientific Imaging\Scientific Camera Support\SDK\SDK\Native Compact Scientific Camera Toolkit I was able to get it to work just fine, but every time that I took an image, the data was being stored temporarily in a buffer (in a C array of unsigned shorts). Let me organize the code a bit and write a friendly README so that you guys can easily build the code and get it going. I will ge this to you guys tomorrow the latest. ~Daniel |
I checked on my ThorCam install (v3.0.0), and that SDK directory existed, but only had a single Installing v3.1.1 just now, there does appear to be a new C API! This is good news as it should let us replace the hacky C++ wrapper with a C-based one using NiceLib. In the 3.1.1 version, the ZIP archive is of It also appears (noted in the I'll open an issue aimed at adding support for this new API. |
Here's the code guys @natezb @birdyberth . Hope it helps. Let me know if there are problems or ways to make it better. It's been a long time since I've written code in plain C. https://github.com/danielmtzz/ArmCamera_CS2100M-USB @natezb It would be great to incorporate ImageMagick and the C API with python ;) |
Wow thanks a lot Daniel, I'll give it a try! |
Hello I'm trying to run the following camera. https://www.thorlabs.com/thorproduct.cfm?partnumber=CS505CU When I try to view what instruments are connected it sees a camera that uses the UC480 but not the TSI libraries. I added the path as it was mentioned on a previous comment on this thread. However, its still not able to be seen. I tried the following and got the message as seen below. from instrumental.drivers.cameras import tsi Any suggestion as to what is going on? Thanks! -Berto |
That error may indicate a bug that's leading to the header file not being properly installed. However, as I indicated in the other thread, Instrumental does not yet support your camera, which is a Thorlabs "Compact Scientific" camera. The TSI driver only supports Thorlabs "Scientific" cameras. #64 has more details. |
I'm getting an error when I try to import:
from instrumental.drivers.cameras import uc480
ValueError: Cannot find library '('uc480' , 'ueye_api')'
I added the correct folders to my PATH, but it's still not working. The camera works just fine with ThorCam.
Windows 64 bit. Can you please help?
The text was updated successfully, but these errors were encountered: