QuantumQuadrate / CsPyController

GNU Lesser General Public License v3.0
3 stars 3 forks source link

Andor requires dlls #1

Closed mfe5003 closed 7 years ago

mfe5003 commented 7 years ago

Not having the andor dlls installed will cause the controller to fail even if andor is not enabled. Temp fix: comment out the andor instrument & analyses or install dlls

kwnminho commented 7 years ago

Need to correct the location of the file. Instead of

self.dll = CDLL(r"D:\git\cspycontroller\python\Andor\atmcd64d.dll")

Try something like

self.dll=CDLL("C:\\Users\\Rb\\LabSoftware\\CsPyNewGit\\CsPyController\\python\\Andor\\atmcd64d.dll")
db314159 commented 7 years ago

I thought I had fixed that. Is that not on the github version? This is the DLL code I have:

try:
    self.dll = CDLL(r"D:\git\cspycontroller\python\Andor\atmcd64d.dll")
except Exception as e:
    logger.warning('Failed to load DLL for Andor (check path?): {}. Andor disabled.'.format(e))
    self.enable = False
    return

Also, if there's a way to specify the DLL location using a relative path, that would be better (since it's inside the repository directory). I tried that in the past but it didn't work.

mfe5003 commented 7 years ago

You're right. I must have either been running an older version or I misunderstood what was breaking.