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

AttributeError: 'Mole' object has no attribute 'precision' #12

Closed
yannnbingz opened this issue Mar 4, 2019 · 1 comment
Closed

AttributeError: 'Mole' object has no attribute 'precision' #12

yannnbingz opened this issue Mar 4, 2019 · 1 comment

Comments

@yannnbingz
Copy link

I have the latest PySCF 1.6 and mpi4pyscf, and run the following test:
OMP_NUM_THREADS=2 mpirun -np 2 python 01-parallel_hf.py
I get the following error:

Traceback (most recent call last):
File "/export/zgid/yanbing/softwareRepo/mpi4pyscf/init.py", line 32, in
mpi.pool.wait()
File "/export/zgid/yanbing/softwareRepo/mpi4pyscf/tools/mpi_pool.py", line 111, in wait
ans = self.function(*task) # task = worker_args
File "/export/zgid/yanbing/softwareRepo/mpi4pyscf/tools/mpi.py", line 486, in _init_on_workers
obj = cls(*args, **kwargs)
File "/export/zgid/yanbing/softwareRepo/pyscf/pyscf/pbc/df/mdf.py", line 331, in init
self.mesh = _mesh_for_valence(cell)
File "/export/zgid/yanbing/softwareRepo/pyscf/pyscf/pbc/df/mdf.py", line 302, in _mesh_for_valence
precision = cell.precision * 10
AttributeError: 'Mole' object has no attribute 'precision'
application called MPI_Abort(MPI_COMM_WORLD, 0) - process 1

sunqm added a commit to sunqm/mpi4pyscf that referenced this issue Mar 7, 2019
sunqm added a commit that referenced this issue Mar 7, 2019
Fix issue #12. cell object deserialization error
@sunqm
Copy link
Collaborator

sunqm commented Mar 7, 2019

Fixed in commit 88861a8

@sunqm sunqm closed this as completed Mar 7, 2019
sunqm added a commit that referenced this issue Feb 4, 2024
* Fix cell deserialization error due to pyscf updates. (issue #12)

* Fix work_stealing_partition

* Update dump_flags api

* Add files via upload

* Add files via upload

* Update 01-parallel_krhf_occ.py

* Update 01-parallel_krhf_occ.py

* Update 01-parallel_krhf_occ.py

---------

Co-authored-by: Qiming Sun <[email protected]>
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