[Python] AttributeError: module 'geoarrow.c._lib' has no attribute...

Discussão em 'Python' iniciado por Stack, Junho 5, 2025.

  1. Stack

    Stack Membro Participativo

    I am using KeplerGL maps library on a streamlit application.

    All worked fine until it did not. Here are the pinned libraries of a working code that suddenly stopped working:


    [tool.poetry.dependencies]
    python = "~3.12.0"
    streamlit = "^1.45.0"
    streamlit-keplergl = "^0.3.0"

    # ... many others here


    This is the error for an alpine:3 deployment:

    File "/app/src/k_tool/_pages/hello_kepler.py", line 7, in <module>
    from keplergl import KeplerGl
    File "/app/.venv/lib/python3.12/site-packages/keplergl/__init__.py", line 6, in <module>
    from .keplergl import *
    File "/app/.venv/lib/python3.12/site-packages/keplergl/keplergl.py", line 18, in <module>
    import geoarrow.pyarrow as ga
    File "/app/.venv/lib/python3.12/site-packages/geoarrow/pyarrow/__init__.py", line 10, in <module>
    from geoarrow.c.lib import GeometryType, Dimensions, CoordType, EdgeType, CrsType
    File "/app/.venv/lib/python3.12/site-packages/geoarrow/c/__init__.py", line 13, in <module>
    from .lib import GeometryType, Dimensions, CoordType, EdgeType, CrsType
    File "/app/.venv/lib/python3.12/site-packages/geoarrow/c/lib.py", line 13, in <module>
    class GeometryType:
    File "/app/.venv/lib/python3.12/site-packages/geoarrow/c/lib.py", line 26, in GeometryType
    GEOMETRY = _lib.GEOARROW_GEOMETRY_TYPE_GEOMETRY
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


    The page hello_kepler.py simply shows the map to an empty streamlit page.

    Any idea which system C++ libraries are suddenly missing, or being silently upgraded and made incompatible?

    Continue reading...

Compartilhe esta Página