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

BUG: Reference to deprecated pymatgen.analysis.defects #965

Open
benrich37 opened this issue Aug 27, 2024 · 2 comments
Open

BUG: Reference to deprecated pymatgen.analysis.defects #965

benrich37 opened this issue Aug 27, 2024 · 2 comments

Comments

@benrich37
Copy link

benrich37 commented Aug 27, 2024

Line 11 of common.schemas.defects.py imports from pymatgen.analysis.defects, which appears to have been deprecated from the latest version of pymatgen (see for explanation, lack of defects submodule, existence of outdated import1, existence of outdated import2 )

I do not use this module, but its functionality is tested in the vasp conftest and thus throws an error when running pytest on the whole repo. This could maybe be an easy fix by adding the new package as a dependency and by redirecting old imports (for context I am starting up on helping add a new workflow and am trying to make sure my environment is fully up to snuff before beginning on my test-checks)

@JaGeo
Copy link
Member

JaGeo commented Aug 27, 2024

Thank you for reporting this.

As a fast solution: If you install atomate2 with strict, there should be no error.

But I agree, this is an issue that should be addressed.

@benrich37
Copy link
Author

Thank you! I'm okay with its existence knowing that it's not just a problem on my end. I'm having trouble installing with strict to fix this issue (pip install -e '.[strict]' gives the error code pasted below) but that is a separate issue that is likely an issue on my end for a reason I don't understand yet (installing with either tests or dev seems to uninstall fireworks, phonopy, ase, torch, and abipy so my environment has those installed manually through pip at the moment)

ERROR: Could not find a version that satisfies the requirement quippy-ase==0.9.14; extra == "strict" (from atomate2[strict]) (from versions: none)
ERROR: No matching distribution found for quippy-ase==0.9.14; extra == "strict"

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

2 participants