Giter VIP home page Giter VIP logo

Comments (11)

ichristen avatar ichristen commented on June 12, 2024

I suspect the issue was some failure with os.getcwd() involving the two slmsuite installations in the above situation. Would need to reproduce again.

os.add_dll_directory(os.getcwd())

from slmsuite.

ichristen avatar ichristen commented on June 12, 2024

Also noting that the pip install slmsuite was failing in the case.

from slmsuite.

ichristen avatar ichristen commented on June 12, 2024

Probably fixed in #13 (see addition of abspath(__file__)). Will reopen if the problem reappears.

from slmsuite.

lufermar avatar lufermar commented on June 12, 2024

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.

ichristen avatar ichristen commented on June 12, 2024

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.

ichristen avatar ichristen commented on June 12, 2024

@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.

lufermar avatar lufermar commented on June 12, 2024

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.

ichristen avatar ichristen commented on June 12, 2024

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.

lufermar avatar lufermar commented on June 12, 2024

Hi @ichristen,
that's the least I can do. If I copy BOTH .dll files:

  1. in MY current Python runtime directory AND the slmsuite.hardware.slms path it WORKS
  2. ONLY in MY current Python runtime directory it WORKS
  3. 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.

ichristen avatar ichristen commented on June 12, 2024

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.

lufermar avatar lufermar commented on June 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.