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

Parallel-mol_dft example not working #23

Closed
moritzgubler opened this issue Dec 15, 2022 · 1 comment
Closed

Parallel-mol_dft example not working #23

moritzgubler opened this issue Dec 15, 2022 · 1 comment

Comments

@moritzgubler
Copy link

Hi @sunqm
Im am trying to use the mpi4pyscf plugin for pyscf and have just installed both packages with pip. The version of pyscf is 2.1.1 and the version of mpi4pyscf is 0.3.1.
When running the example 04-parallel_mol_dft.py I get the following error:
Traceback (most recent call last):
File "/home/moritz/.local/lib/python3.10/site-packages/mpi4pyscf/init.py", line 31, in
mpi.pool.wait()
File "/home/moritz/.local/lib/python3.10/site-packages/mpi4pyscf/tools/mpi_pool.py", line 111, in wait
ans = self.function(*task) # task = worker_args
File "/home/moritz/.local/lib/python3.10/site-packages/mpi4pyscf/tools/mpi.py", line 584, in _distribute_call
return fn(dev, args, **kwargs)
File "/home/moritz/.local/lib/python3.10/site-packages/mpi4pyscf/dft/rks.py", line 43, in get_veff
setup_grids(mf, dm)
File "/home/moritz/.local/lib/python3.10/site-packages/mpi4pyscf/dft/rks.py", line 114, in setup_grids
if abs(n-mol.nelectron) < rks.NELEC_ERROR_TOL
n:
AttributeError: module 'pyscf.dft.rks' has no attribute 'NELEC_ERROR_TOL'
Do you have an idea what could cause this? The error is triggered by line 24: "mf.run()". Is it possible that the version of pyscf and mpi4pyscf are not compatible? If so which versions are compatible?

Thanks a lot for your help.

@moritzgubler moritzgubler changed the title Parallel-mol_dft example not workin Parallel-mol_dft example not working Dec 15, 2022
@BallisticBill
Copy link

BallisticBill commented Sep 14, 2023

Any updates on this issue?

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