Error with spglib installation

Yametazamwa mara 354
Ruka hadi kwenye ujumbe wa kwanza ambao haujasomwa

Arseniy Otlyotov

hayajasomwa,
12 Sep 2022, 12:36:0512/09/2022
kwa cp2k
Dear CP2K developers and users,
could I ask your advice on a small technical question.
I'm trying to install CP2K with 

./install_cp2k_toolchain.sh 

and facing an error with spglib:

spglib-1.16.2.tar.gz is found
Installing from scratch into /home/soft/programs/cp2k/cp2k-2022.1/tools/toolchain/install/spglib-1.16.2
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
ERROR: (./scripts/stage7/install_spglib.sh, line 40) Non-zero exit code detected.

This seems to appear because of the outdated link in the script to


I tried installing spglib with 

pip install --user spglib

but it did not fix the error. Could you, please, advise how to install this lib correctly?

Krack Matthias (PSI)

hayajasomwa,
13 Sep 2022, 05:55:3113/09/2022
kwa cp...@googlegroups.com

Hi

 

This problem has been reported and fixed recently, see issue https://github.com/cp2k/cp2k/issues/2262

 

HTH

 

Matthias

--
You received this message because you are subscribed to the Google Groups "cp2k" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cp2k+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cp2k/6bb0b38d-c0f1-401b-943e-51aa6012dfd7n%40googlegroups.com.

Arseniy Otlyotov

hayajasomwa,
14 Sep 2022, 08:13:3714/09/2022
kwa cp2k
Dear Matthias,

thank you for the help!

вторник, 13 сентября 2022 г. в 12:55:31 UTC+3, Matthias Krack:

captain mus

hayajasomwa,
29 Sep 2022, 22:56:3929/09/2022
kwa cp2k
HI Matthias

Thank you for your information.  I recently download the tar.bz2 of the latest CP2K(cp2k.2022.1) but in the file "install_spglib.sh"  the github address is still the old one " https://github.com/atztogo/spglib/archive/v${spglib_ver}.tar.gz \".. I tried to change manually to "https://github.com/spglib/spglib/archive/v${spglib_ver}.tar.gz \" as showed on the link you provided. It does download the "spglib-1.16.2.tar.gz" and placed it at build directory. However, the problem is the tar file is empty (0 k) and return the same error as miose had. Any advise ?

Sincerely
MUS

Krack Matthias (PSI)

hayajasomwa,
30 Sep 2022, 03:59:1930/09/2022
kwa cp...@googlegroups.com

Hi MUS

 

That’s the strange, the download of https://github.com/spglib/spglib/archive/v1.16.2.tar.gz  works for me.

 

Matthias

captain mus

hayajasomwa,
30 Sep 2022, 18:58:3030/09/2022
kwa cp2k
HI Matthias

Thanks for your info. Now it works. What I'm doing is change the link "https://github.com/spglib/spglib/archive/v${spglib_ver}.tar.gz \" to the one you write "https://github.com/spglib/spglib/archive/v1.16.2.tar.gz \" , and before that I delete the spglib-1.16.2.tar.gz (with 0 size) at  build directory. Once again thanks for the advise, and have a nice day

Sincerely
MUS

Shivam Gupta

hayajasomwa,
4 Okt 2022, 03:24:3204/10/2022
kwa cp2k
Dear Matt

I was facing the same problem while installing spglib. I have manually downloaded downloaded  https://github.com/spglib/spglib/archive/v1.16.2.tar.gz and extracted in the "/home/biomedical/cp2k/cp2k-9.1/tools/toolchain/install" folder. but still it shows the following error.

Please guide me over it.

Thanks

==================== Installing spglib ====================
spglib-1.16.2.tar.gz is found
Installing from scratch into /home/biomedical/cp2k/cp2k-9.1/tools/toolchain/install/spglib-1.16.2


gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
ERROR: (./scripts/stage7/install_spglib.sh, line 40) Non-zero exit code detected.

Krack Matthias (PSI)

hayajasomwa,
4 Okt 2022, 03:45:4704/10/2022
kwa cp...@googlegroups.com

Hi

 

You have to delete the tar file in the folder cp2k/tools/toolchain/build in which the libs are built. Just remove that build folder. For an installation from scratch, it is the best to remove the build as well as the install folder in cp2k/tools/toolchain.

 

HTH

 

Matthias

Jibu wote
Mjibu mchapishaji
Sambaza
Ujumbe 0 mpya