Closed prjemian closed 2 weeks ago
AttributeError: module 'apsbss' has no attribute 'api_bss'
The _write_cycle_data()
method fails: https://github.com/BCDA-APS/apstools/blob/791afbc8f5047229ea888546151a6ca4f8709366/apstools/devices/aps_cycle.py#L86
Bit rot since apsbss dropped attribute api_bss
: https://github.com/BCDA-APS/apstools/blob/791afbc8f5047229ea888546151a6ca4f8709366/apstools/devices/aps_cycle.py#L109
The fix is to call the dm
package directly (which was not available at the time _write_cycle_data()
was written). But this code will succeed only on workstations where the DM tools are installed. For now, indicate how to get the table data from dm
and update the YAML file by hand.
By using dm
package directly, it is possible to drop the apsbss
package as a requirement for apstools.
There is a pending major revision of apsbss
package: https://github.com/BCDA-APS/apsbss/issues/14
Last entry now: https://github.com/BCDA-APS/apstools/blob/ece96632cb919c34c18bc200645189a5632fa576/apstools/devices/aps_cycle_info.yml#L137-L139