Skip to content

Ophyd cannot import name 'FileStoreBulkWrite' #181

@yugangzhang

Description

@yugangzhang

We are trying to use xspress3 at 11id. I found we are actually using hxntools for controlling xspress3, here is the code

  2                                       ZebraPulse,
  3                                       ZebraFrontOutput12,
  4                                       ZebraFrontOutput3,
  5                                       ZebraFrontOutput4,
  6                                       ZebraRearOutput,
  7                                       ZebraGate,
  8                                       ZebraAddresses)
  9 
 10 from hxntools.detectors.xspress3 import (XspressTrigger,
 11                                          Xspress3Detector,
 12                                          Xspress3Channel)

In the new dev env, we don't install hxntools, so I conda install hxtools first. After that, when running the above import code, I got an error message,

In [751]: %run -i /home/xf11id/.ipython/profile_collection/startup/98-xspress3.py
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
~/.ipython/profile_collection/startup/98-xspress3.py in <module>()
----> 1 from hxntools.detectors.zebra import (EpicsSignalWithRBV, 
      2                                       ZebraPulse,
      3                                       ZebraFrontOutput12,
      4                                       ZebraFrontOutput3,
      5                                       ZebraFrontOutput4,

~/conda_envs/dev/lib/python3.6/site-packages/hxntools/detectors/__init__.py in <module>()
----> 1 from .timepix import (TimepixDetector, HxnTimepixDetector)
      2 from .xspress3 import (Xspress3Detector, Xspress3HDF5Handler)
      3 from .zebra import (HxnZebra, Zebra)
      4 from .merlin import HxnMerlinDetector
      5 from .beamstatus import BeamStatusDetector

~/conda_envs/dev/lib/python3.6/site-packages/hxntools/detectors/timepix.py in <module>()
     12 from ophyd.areadetector import (EpicsSignalWithRBV as SignalWithRBV, CamBase)
     13 from .utils import makedirs
---> 14 from .trigger_mixins import (HxnModalTrigger, FileStoreBulkReadable)
     15 
     16 

~/conda_envs/dev/lib/python3.6/site-packages/hxntools/detectors/trigger_mixins.py in <module>()
      6                           Component as Cpt, Device)
      7 from ophyd import (Signal, )
----> 8 from ophyd.areadetector.filestore_mixins import FileStoreBulkWrite
      9 
     10 from filestore.api import bulk_insert_datum

ImportError: cannot import name 'FileStoreBulkWrite' 

I tried to conda update ophyd, but it did not help. Please advise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions