Skip to content

Some plugins entry_points infomation not properly displayed #350

@unkcpz

Description

@unkcpz

At some point, aiida-vibroscopy and aiida-quantumespresso not display the entry points information.
I narrow down the problem caused by dependencies of aiida-quantumespresso -> pymatgen (what can I say...) is missing.

From aiida-registry side, we need more detail log for the install test that when things failed, the error message can propagated to the CI log for debug.

Failed to load entry point 'quantumespresso.pw.base':
Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/site-packages/aiida/plugins/entry_point.py", line 278, in load_entry_point
    loaded_entry_point = entry_point.load()
  File "/opt/conda/lib/python3.10/site-packages/importlib_metadata/__init__.py", line 211, in load
    module = import_module(match.group('module'))
  File "/opt/conda/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/opt/conda/lib/python3.10/site-packages/aiida_quantumespresso/workflows/pw/base.py", line 9, in <module>
    from aiida_quantumespresso.calculations.functions.create_kpoints_from_distance import create_kpoints_from_distance
  File "/opt/conda/lib/python3.10/site-packages/aiida_quantumespresso/calculations/__init__.py", line 18, in <module>
    from aiida_quantumespresso.data.hubbard_structure import HubbardStructureData
  File "/opt/conda/lib/python3.10/site-packages/aiida_quantumespresso/data/hubbard_structure.py", line 8, in <module>
    from pymatgen.core import Lattice, PeriodicSite
ModuleNotFoundError: No module named 'pymatgen'

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