Skip to content

Unable to find c_libraries #122

Description

@b2jia

We are trying to set up storm-control in the Kosuri lab but are running into difficulty executing the emulation test (ie. python hal4000.py xml/none_config.xml). We added a .pth file to our Python path, and we believe there's no need to compile the C helper libraries since we are using a 64 bit computer. Yet, when we run the emulation test, we see the following error:

Please let us know if there are any additional details to help with this diagnosis!

python hal4000.py xml/none_config.xml
Logging Error! Could not open C:/Data/logs/hal4000_16.out
  Logging is disabled.
Loading modules
  hal
  aotf
  camera1
  daq
  display
Traceback (most recent call last):
  File "hal4000.py", line 755, in <module>
    hal = HalCore(config = config,
  File "hal4000.py", line 447, in __init__
    a_module = importlib.import_module(module_params.get("module_name"))
  File "C:\ProgramData\Anaconda3\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\ProgramData\Anaconda3\lib\site-packages\storm_control\hal4000\display\display.py", line 13, in <module>
    import storm_control.hal4000.display.cameraViewers as cameraViewers
  File "C:\ProgramData\Anaconda3\lib\site-packages\storm_control\hal4000\display\cameraViewers.py", line 11, in <module>
    import storm_control.hal4000.display.cameraFrameViewer as cameraFrameViewer
  File "C:\ProgramData\Anaconda3\lib\site-packages\storm_control\hal4000\display\cameraFrameViewer.py", line 27, in <module>
    import storm_control.hal4000.qtWidgets.qtCameraGraphicsScene as qtCameraGraphicsScene
  File "C:\ProgramData\Anaconda3\lib\site-packages\storm_control\hal4000\qtWidgets\qtCameraGraphicsScene.py", line 13, in <module>
    import storm_control.hal4000.halLib.c_image_manipulation_c as c_image
  File "C:\ProgramData\Anaconda3\lib\site-packages\storm_control\hal4000\halLib\c_image_manipulation_c.py", line 19, in <module>
    import storm_control.c_libraries.loadclib as loadclib
ModuleNotFoundError: No module named 'storm_control.c_libraries'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions