JuliaPy / JuliaPy/PyCall.jl

libstdc++.so.6: version `GLIBCXX_3.4.30' not found

Abierto
#999 5 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Julia
Estrellas
1.5k
Forks
186
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I'm encountering an issue where:

1. A Conda package is built against libc 3.4.30 (in this case, python-casacore).
2. Conda ships with libc 3.4.30.
3. Running `ldd libcasa_casa.so` shows that casa is correctly linked to the Conda version of libc.
4. If I enter the Julia-managed conda (`~/.julia/3/bin/python`) and `import casacore.tables` it works fine.

BUT, when I `pyimport("casacore.tables")` I get the following error:


ImportError("/home/torrance/julia-1.7.3/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/torrance/.julia/conda/3/lib/python3.9/site-packages/casacore/tables/../../../../libcasa_tables.so.7)")

It looks like to me that when run in the context of Julia, the `pyimport` statement wants to preferentially link against the Julia supplied libc, and not the Conda supplied libc. Moreover, the Julia supplied libc is at version 3.4.29.

Is this choice to link against the Julia libc a deliberate choice? If so, how to we mitigate this kind of issue happening each time Conda and Julia libc versions aren't aligned?

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

The report names no source files or tests; begin by reproducing the `pyimport("casacore.tables")` failure and comparing it with the working `import casacore.tables` in the Julia-managed Conda environment. Trace how PyCall loads Julia's bundled libstdc++ versus Conda's library, then define completion as an explained and verified mitigation for the GLIBCXX version mismatch.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
anaconda, julia, python
Área
backend, operating-systems
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.