Skip to content

AttributeError: 'Molecule' object has no attribute '__values__' from python or KeyError: 'loop' in Jupyter notebook #5

@AssoliLan

Description

@AssoliLan

Hi,

I installed MultiPredict as https://multirefpredict.readthedocs.io/en/latest/installation.html (cd dev_tools/conda_envs is cd dev_tools/condaenvs in my installation)

If I install jupyter nootbook from multiref enviroment and use it to open Example.ipynb, it leads to Kernel error. If I click Kernel error it lead to KeyError: 'loop'.

If I created a python file

import MultirefPredict
import qcelemental

mol = qcelemental.models.Molecule.from_data("""
O                 0.000000000000     0.000000000000    -0.068516245955
H                 0.000000000000    -0.790689888800     0.543701278274
H                 0.000000000000     0.790689888800     0.543701278274
""")

b1 = MultirefPredict.diagnostic_factory("B1",molecule=mol, molname="water", record=False).computeDiagnostic()

I got

Traceback (most recent call last):
  File "test.py", line 8, in <module>
    """)
  File "/home/.../intel/oneapi/intelpython/latest/envs/multiref/lib/python3.6/site-packages/qcelemental/models/molecule.py", line 559, in from_data
    return cls(orient=orient, validate=validate, **input_dict)
  File "/home/.../intel/oneapi/intelpython/latest/envs/multiref/lib/python3.6/site-packages/qcelemental/models/molecule.py", line 126, in __init__
    values = self.__values__
AttributeError: 'Molecule' object has no attribute '__values__'

what would be the reason for it and how to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions