mabuchilab / Instrumental

Python-based instrumentation library from the Mabuchi Lab.
http://instrumental-lib.readthedocs.org/
GNU General Public License v3.0
120 stars 80 forks source link

"No module named 'instrumental.drivers'" #155

Closed IanSukarsa closed 1 year ago

IanSukarsa commented 1 year ago

When I do : from instrumental.drivers.cameras import uc480 I get : Traceback (most recent call last): File "<console>", line 1, in <module> ModuleNotFoundError: No module named 'instrumental.drivers' I tried importing instrumental, but the result was the same, any ideas?

natezb commented 1 year ago

It's possible you've installed the wrong package. You need to pip install instrumental-lib; there is another unrelated package on PyPI called instrumental.

IanSukarsa commented 1 year ago

Thanks, I did just that. Having another unrelated package called instrumental sure is a problem, how can I import uc480? from instrumental-lib.drivers.cameras import uc480 gives me a syntax error

natezb commented 1 year ago

It's only the "distribution" (i.e. the thing on PyPI) that needs to be named instrumental-lib.

Once you've installed it, you use the instrumental package, i.e. from instrumental.drivers.cameras import uc480.