sandialabs / pyscan

Scientific Measurement Toolbox
https://pyscan.readthedocs.io/en/latest/
MIT License
4 stars 3 forks source link

Fresh install error re: __init__.py and drivers testing #117

Closed plesiopterys closed 4 months ago

plesiopterys commented 4 months ago

Error code on fresh install


ModuleNotFoundError Traceback (most recent call last) Cell In[1], line 1 ----> 1 import pyscan as ps 2 import matplotlib.pyplot as plt 3 import numpy as np

File ~/anaconda3/envs/pyscan/lib/python3.11/site-packages/pyscan/init.py:2 1 from pyscan.measurement import ----> 2 from pyscan.drivers import 3 from pyscan.general import 4 from pyscan.plotting import

File ~/anaconda3/envs/pyscan/lib/python3.11/site-packages/pyscan/drivers/init.py:84 80 from .new_instrument import new_instrument 83 # Test Devices ---> 84 from .testing.test_voltage import TestVoltage 85 from .testing.test_instrument_driver import TestInstrumentDriver

ModuleNotFoundError: No module named 'pyscan.drivers.testing'

plesiopterys commented 4 months ago

Suggest putting pyscan.general import first, in addition to fixing this

plesiopterys commented 4 months ago

Try: May need init.py in the drivers/testing folder

Put pyscan.general import first

plesiopterys commented 4 months ago

Fixed directly in main by rsbrost , confirmed fresh install working without error by jjmah