-
Notifications
You must be signed in to change notification settings - Fork 98
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
error in import abilib #254
Comments
In the new version of pymatgen, SlotPickleMixin has been removed thus breaking backward compatibility. For the time being, one has to install an older version of pymargen with e.g.:
See also this pymatgen issue |
I have successfully installed the abipy using "pip install abipy --user". However, I can not execute abiopen.py in Ubuntu terminal! it says command not found. Could you please help me to find out what I am doing wrong? Thanks! |
You are using conda to manage your python installation so you need to activate the conda environment where abipy has been installed with e.g.:
in order to have the python scripts in $PATH. PS: The
or
|
I did the following: then I tested as before in ipython "from abipy import abilab" and it works. I can even see that abipy is installed where it says "The following NEW packages will be installed then I executed in terminal $ abipy and it says "abipy: command not found Any help please! |
Abipy is the name of the python package so it's normal that you cannot invoke it directly from the shell. For the full list of scripts installed by abipy see this page |
Hi Gmatteo, I can work with abilab in jupyter notbook, it works nicely, but I can not execute in terminal. I get the following error |
However, I can manually copy that abiopen.py into the working directory (where I am working on example), then it works with command ./abiopen.py. I don't know why does it not work just as $abiopen.py ? |
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
The text was updated successfully, but these errors were encountered: