sunjerry019 / nanosquared

Open Source M-Squared Measurement Automation using Dataray WinCamD and Ophir NanoScan. WinCamD and NanoScan code may be used independently
GNU General Public License v3.0
6 stars 1 forks source link

msl-loadlib Server32 unable to use numpy #37

Closed sunjerry019 closed 2 years ago

sunjerry019 commented 2 years ago

https://stackoverflow.com/questions/51087158/installing-numpy-with-pip-on-windows-10-for-python-3-7

sunjerry019 commented 2 years ago

Turns out that was not the reason, but for some reason, msl-loadlib, when loading the 32-bit server/DLL, tries to load cameras/__init__.py

The workaround, barring actually finding out why it does that, is to remove the 64bit paths using Server32.remove_site_packages_64bit() and then adding the try...except to catch the ModuleNotFoundError that results from that. We don't need numpy in the 32-bit server anyway

sunjerry019 commented 2 years ago

Fixed in a7f1ec6846afeba431be106199c1076bf0672533