Error with spglib installation

342 views
Skip to first unread message

Arseniy Otlyotov

unread,
Sep 12, 2022, 12:36:05 PM9/12/22
to 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)

unread,
Sep 13, 2022, 5:55:31 AM9/13/22
to 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

unread,
Sep 14, 2022, 8:13:37 AM9/14/22
to cp2k
Dear Matthias,

thank you for the help!

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

captain mus

unread,
Sep 29, 2022, 10:56:39 PM9/29/22
to 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)

unread,
Sep 30, 2022, 3:59:19 AM9/30/22
to 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

unread,
Sep 30, 2022, 6:58:30 PM9/30/22
to 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

unread,
Oct 4, 2022, 3:24:32 AM10/4/22
to 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)

unread,
Oct 4, 2022, 3:45:47 AM10/4/22
to 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

Reply all
Reply to author
Forward
0 new messages