Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mfx_lj / mfx_von_hamos_6crystal class names invalid? #40

Open
klauer opened this issue Aug 8, 2023 · 3 comments
Open

mfx_lj / mfx_von_hamos_6crystal class names invalid? #40

klauer opened this issue Aug 8, 2023 · 3 comments

Comments

@klauer
Copy link
Contributor

klauer commented Aug 8, 2023

[2023-08-08 14:28:45] - ERROR - Unable to load Happi entry: 'mfx_lj'
Traceback (most recent call last):
  File "/cds/home/k/klauer/Repos/typhos/typhos/cli.py", line 502, in create_devices
    device = happi_client.load_device(name=device_name)
  File "/cds/group/pcds/pyps/conda/py39/envs/pcds-5.7.3/lib/python3.9/site-packages/happi/client.py", line 369, in load_device
    return from_container(cntr, use_cache=use_cache)
  File "/cds/group/pcds/pyps/conda/py39/envs/pcds-5.7.3/lib/python3.9/site-packages/happi/loader.py", line 172, in from_container
    cls = import_class(item.device_class)
  File "/cds/group/pcds/pyps/conda/py39/envs/pcds-5.7.3/lib/python3.9/site-packages/happi/loader.py", line 243, in import_class
    mod = importlib.import_module(mod)
  File "/cds/group/pcds/pyps/conda/py39/envs/pcds-5.7.3/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pcdsdevices.liquid_jet'
[2023-08-08 14:28:47] - ERROR - Unable to load Happi entry: 'mfx_von_hamos_6crystal'
Traceback (most recent call last):
  File "/cds/group/pcds/pyps/conda/py39/envs/pcds-5.7.3/lib/python3.9/site-packages/happi/loader.py", line 246, in import_class
    return getattr(mod, cls)
AttributeError: module 'pcdsdevices.spectrometer' has no attribute 'VonHamos6Crystal'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/cds/home/k/klauer/Repos/typhos/typhos/cli.py", line 502, in create_devices
    device = happi_client.load_device(name=device_name)
  File "/cds/group/pcds/pyps/conda/py39/envs/pcds-5.7.3/lib/python3.9/site-packages/happi/client.py", line 369, in load_device
    return from_container(cntr, use_cache=use_cache)
  File "/cds/group/pcds/pyps/conda/py39/envs/pcds-5.7.3/lib/python3.9/site-packages/happi/loader.py", line 172, in from_container
    cls = import_class(item.device_class)
  File "/cds/group/pcds/pyps/conda/py39/envs/pcds-5.7.3/lib/python3.9/site-packages/happi/loader.py", line 248, in import_class
    raise ImportError("Unable to import %s from %s" %
ImportError: Unable to import VonHamos6Crystal from pcdsdevices.spectrometer
@tangkong
Copy link

tangkong commented Aug 8, 2023

I should schedule a monthly audit of our database. Here are the current instantiation errors for our database:

+------------------------------+---------------------+-----------------------------------------------------------------+
|             name             |        check        | error                                                           |
+------------------------------+---------------------+-----------------------------------------------------------------+
|           homs_env           | check_instantiation | No module named 'pcdsdevices.rtds_homs'                         |
|         las_rfof_01          | check_instantiation | Unable to import ItechRfofBase from pcdsdevices.lasers.rfof     |
|      lcp_las_h22_r0507       | check_instantiation | Unable to import LCP3_CMC_TC from pcdsdevices.fms               |
|      lcp_rix_h22_r0102       | check_instantiation | Unable to import LCP3_CMC_TC from pcdsdevices.fms               |
|      lcp_rix_h22_r0406       | check_instantiation | Unable to import LCP3_CMC_TC from pcdsdevices.fms               |
|           mfx_lib            | check_instantiation | No module named 'pcdsdevices.n_axis_device'                     |
|            mfx_lj            | check_instantiation | No module named 'pcdsdevices.liquid_jet'                        |
|    mfx_von_hamos_6crystal    | check_instantiation | Unable to import VonHamos6Crystal from pcdsdevices.spectrometer |
|            rtdsx0            | check_instantiation | not enough values to unpack (expected 2, got 1)                 |
| rtdsx0_solid_drilling_motion | check_instantiation | not enough values to unpack (expected 2, got 1)                 |
|         rtdsx0_test          | check_instantiation | Item rtdsx0_test does not have an associated Python class       |
|           sq1_lamp           | check_instantiation | No module named 'pcdsdevices.sq1'                               |
|           xcs__pwr           | check_instantiation | not enough values to unpack (expected 2, got 1)                 |
+------------------------------+---------------------+-----------------------------------------------------------------+

@klauer
Copy link
Contributor Author

klauer commented Aug 8, 2023

Am glad to see happi audit catching these

I have a bunch of cron jobs, I could add this to my list and update a confluence page...

@ZLLentz
Copy link
Member

ZLLentz commented Aug 8, 2023

seems like a mix of "thing I put into happi that works on my dev" and "thing that was probably an error"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants