Skip to content

spglib 2.1.0 fails on alpine/python3.11 #326

@tmcqueen-materials

Description

@tmcqueen-materials

We have a bunch of backend tooling built on running various pieces of python inside docker containers. With spglib 2.0.2, the command pip install spglib succeeds, and then use of spglib proceeds without issue.

However, as of spg 2.1.0 released yesterday, pip install spglib appears to succeed, but when attempting to use the package within python, it results in an error:

2023-09-11T20:21:37.802209516-04:00 stderr F     import spglib
2023-09-11T20:21:37.802219426-04:00 stderr F   File "/usr/local/lib/python3.11/site-packages/spglib/__init__.py", line 37, in <module>
2023-09-11T20:21:37.802277547-04:00 stderr F     from .spglib import (  # noqa: F401
2023-09-11T20:21:37.802290897-04:00 stderr F   File "/usr/local/lib/python3.11/site-packages/spglib/spglib.py", line 59, in <module>
2023-09-11T20:21:37.802341138-04:00 stderr F     from spglib import _spglib as spg
2023-09-11T20:21:37.802355758-04:00 stderr F ImportError: Error loading shared library libsymspg.so.2: No such file or directory (needed by /usr/local/lib/python3.11/site-packages/spglib/_spglib.cpython-311-x86_64-linux-musl.so)

I don't know what changed, but it would be great to restore compatibility with Alphine/python.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions