Comments (11)
I suspect the issue was some failure with os.getcwd()
involving the two slmsuite installations in the above situation. Would need to reproduce again.
from slmsuite.
Also noting that the pip install slmsuite
was failing in the case.
from slmsuite.
Probably fixed in #13 (see addition of abspath(__file__)
). Will reopen if the problem reappears.
from slmsuite.
Hi,
I tried to use the current package with a Santec SLM and get the message "SLMFunc.dll couldn't be found". I checked that it was not missing any dependency so I do not know how to fix it. Do you have any idea?
thx
from slmsuite.
Hi @lufermar ,
A few questions and a suggestion:
- Are you using the pipy (
pip install slmsuite
) version of slmsuite, or using a local github version (git clone
)? - Could you send the full error trace?
- Did you copy the .dll files (SLMFunc.dll, FTD3XX.dll) provided by Santec anywhere (usually they will send a USB drive with the SLM)?
- You might try copying them into either your current Python runtime directory or the slmsuite.hardware.slms path (please see this and this)
Best,
Ian
from slmsuite.
@lufermar , as a last comment, could you also check whether the Santec-provided GUI (installer included on the USB) is working. This will help eliminate OS- or system- related issues. What OS are you using?
from slmsuite.
Dear @ichristen,
I solved the problem, but let me try to answer everything just in case someone else has the same issue:
- I use the pipe
- I copied the .dll files
- I copied BOTH FILES in BOTH FOLDERS
The GUI worked and I am using Windows 10.
Best,
Luis
from slmsuite.
Hi @lufermar ,
Just for our info, does it really not work if the files are not copied into both paths? I find this surprising because the .dlls should be loaded into the python runtime when the slmsuite.hardware.slms.santec
file is imported, and this should be a one-time thing and look for the .dlls in one directory. We will also edit the docs to make this procedure more clear. Is there anything that we can put into the error message that would help?
Best,
Ian
from slmsuite.
Hi @ichristen,
that's the least I can do. If I copy BOTH .dll files:
- in MY current Python runtime directory AND the slmsuite.hardware.slms path it WORKS
- ONLY in MY current Python runtime directory it WORKS
- ONLY in the slmsuite.hardware.slms path it DOESN'T WORK
I get the error message when I execute the cell in Jupyter that imports Santec
. The message I receive is:
santec.py: Santec DLLs not installed. Install these to use Santec SLMs. ... (this is the message from the script)... Original error: could not find module 'SLMFunc.dll' (or one of its dependencies). Try using the full path with constructor syntax
.
Hope it helps,
L
from slmsuite.
Okay, @tpr0p, so it seems that the runtime directory is most important under pip
install. We should modify the docs to reflect this.
- Modify current docs to correct for
pip
behavior. - Look into a default install directory option for .dlls. It seems that many open-source packages opt to make sure the .dlls are in the current path, but maybe there's a more elegant option.
from slmsuite.
@ichristen,
I tried to see if the issue (#9 (comment)) happened with another laptop and it seems that in this case you just need to follow the tutorial that you provide and not my recommendation. I will see if I can see why. Hope this information helps.
from slmsuite.
Related Issues (20)
- slmsuite.holography.toolbox.smallest_distance unexpected behavior HOT 1
- Clean up true 2D support for cameras/SLMs with non-square pixels. HOT 1
- DataRay Camera support HOT 3
- `take` does not work properly for stacks of images. HOT 1
- `averaging` flag for cameras HOT 1
- `Filesystem` camera
- Cameras update HOT 2
- AL Loop for Weights HOT 1
- Wavefront calibration over a field of view HOT 3
- gradient-based optimization for phase and amplitude objectives HOT 1
- Unusual behavior with `take` using even pixel number.
- Some AlliedVision cameras don't have binning attributes.
- Some corrections for MRAF in the package
- Allied Vision Vimba-X Support HOT 2
- MindVision HOT 2
- `pylablib` Cameras
- Numpy 2.0.0 support HOT 3
- Basler
- cuda.cu was not included in the 0.1.0 wheel.
- Remove `opencv-python` (`cv2`) as a dependency.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slmsuite.