python-andor icon indicating copy to clipboard operation
python-andor copied to clipboard

Doubt in installing the Modules

Open Spandan2003 opened this issue 2 years ago • 3 comments

Hi, I have finally started working on the Andor code. However, I am getting the MissingImport error whenever I try to run the test.py file. image I attempted to install the module by running pip install . and python setup.py install. However in both the cases I am getting an error image

As much as I understand I am missing a andor.lib file which causes the error. I am not able to understand where to get this file. I hope that you will guide me into at least being able to import the modules. I am extremely grateful to this code as it has helped me multiple times. Thanking You.

Spandan.

Spandan2003 avatar Apr 04 '23 10:04 Spandan2003

Hi Spandan,

at first glance it looks like you are missing the needed libraries: Do you have the AndorSDK installed? I would try this one: https://andor.oxinst.com/downloads/view/andor-sdk-2.104.30084.0 You need to have an account to download this but you can register with the serial number of your detector (at least that was how it was 5 years ago).

Also I only used this under linux, there might be some additional problems with using windows.

Best, Simon

sdickreuter avatar Apr 04 '23 16:04 sdickreuter

Even after installing the exact Andor drivers, atmcdLXd.h file is missing while installation? Should I replace 'LX' with 32 or 64?

DileepKottilil avatar Jul 11 '23 01:07 DileepKottilil

Hi,

it looks like Andor renamed their library which suggest that other things might have changed too. If you want to get it to work I would suggest starting by modifying this file: https://github.com/sdickreuter/python-andor/blob/fedfa2d8f9b44ab911c7002540cbe7acd4411f50/Andor/atmcdLXd.pxd Which could induce changes in the rest of python-andor, might be a lot of work.

Best, Simon

sdickreuter avatar Jul 11 '23 19:07 sdickreuter