aiidateam / aiida-registry

Find plugins for AiiDA
http://aiidateam.github.io/aiida-registry
Other
16 stars 66 forks source link

Revert "Add load_profile to entrypoints analyse" #316

Closed unkcpz closed 7 months ago

unkcpz commented 7 months ago

Reverts aiidateam/aiida-registry#314

unkcpz commented 7 months ago

I need to revert it back since the change make even aiida-core get an error

Traceback (most recent call last):
  File "/tmp/scripts/./bin/analyze_entrypoints.py", line 20, in 
    aiida.load_profile()
  File "/opt/conda/lib/python3.10/site-packages/aiida/manage/configuration/__init__.py", line 165, in load_profile
    return get_manager().load_profile(profile, allow_switch)
  File "/opt/conda/lib/python3.10/site-packages/aiida/manage/manager.py", line 117, in load_profile
    profile = self.get_config().get_profile(profile)
  File "/opt/conda/lib/python3.10/site-packages/aiida/manage/configuration/config.py", line 446, in get_profile
    raise exceptions.ProfileConfigurationError(
aiida.common.exceptions.ProfileConfigurationError: no default profile defined: None
{'CONFIG_VERSION': {'CURRENT': 9, 'OLDEST_COMPATIBLE': 9}, 'profiles': {}}