Skip to content

Add try/except import on LobsterSet module from pymatgen - #1437

Merged
JaGeo merged 2 commits into
materialsproject:mainfrom
tomdemeyere:lobster_import
Mar 26, 2026
Merged

JaGeo merged 2 commits into
materialsproject:mainfrom
tomdemeyere:lobster_import

Conversation

@tomdemeyere

Copy link
Copy Markdown
Contributor

Due to the recent pymatgen changes the LobsterSet class have been displaced without deprecation, for now a try/except approach seems like the best (but ugly) compromise. Fix #1436

@JaGeo

JaGeo commented Mar 25, 2026

Copy link
Copy Markdown
Member

@tomdemeyere there is a second change that we need to account for. The LobsterNeighbor class is at a different place as well. You could use try and except as well.

@JaGeo

JaGeo commented Mar 26, 2026

Copy link
Copy Markdown
Member

I should read more carefully. The bug shows up in LobsterPy.

I have started to fix it but the changes in pymatgen had just a few side effects.... DigiMatChem/LobsterPy#433

I will probably need another hour.

@JaGeo
JaGeo merged commit 9e6ee54 into materialsproject:main Mar 26, 2026
32 of 34 checks passed
cote3804 pushed a commit to cote3804/atomate2 that referenced this pull request Apr 2, 2026
…oject#1437)

* try/except import

* get new lobsterpy version

---------

Co-authored-by: jgeorge <janine.george@bam.de>
@tomdemeyere
tomdemeyere deleted the lobster_import branch April 29, 2026 08:11
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

Successfully merging this pull request may close these issues.

BUG: atomate2 0.0.23 ImportError 'LobsterSet' from 'pymatgen.io.vasp.sets'

2 participants