Skip to content

error in import abilib #254

@rajeshatiitm

Description

@rajeshatiitm

Dear abipy developer,

I am using ubuntu 18.04 and abinit9. After installation using conda and running this command

"from abipy import abilab" I get the falling error:


ImportError Traceback (most recent call last)
Cell In [4], line 1
----> 1 from abipy import abilab

File ~/Desktop/abipy/abipy/abipy/init.py:18
12 del sys
14 #-----------------------------------------------------------------------------
15 # Setup the top level names
16 #-----------------------------------------------------------------------------
---> 18 from abipy.core import release
20 # Release data
21 author = ''

File ~/Desktop/abipy/abipy/abipy/core/init.py:3
1 """Core objects."""
2 # flake8: noqa
----> 3 from .kpoints import *
4 from .structure import *
5 from .symmetries import *

File ~/Desktop/abipy/abipy/abipy/core/kpoints.py:16
14 from monty.string import marquee
15 from pymatgen.core.lattice import Lattice
---> 16 from pymatgen.util.serialization import pmg_serialize, SlotPickleMixin
17 from abipy.iotools import ETSF_Reader
18 from abipy.tools.derivatives import finite_diff

ImportError: cannot import name 'SlotPickleMixin' from 'pymatgen.util.serialization' (/home/rd/miniconda3/envs/my_pymatgen/lib/python3.10/site-packages/pymatgen/util/serialization.py)


Could you please help to resolve the issue?

Many thanks and regards,
Rajesh

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