Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

using PyPlot hangs/kills julia 1.8.5 or 1.9.0 on MacOS

Abierto
#567 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

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

Línea de trabajo

Reproduce el fallo usando los comandos de lanzamiento proporcionados de Julia 1.8/1.9, LD_LIBRARY_PATH y using Conda, using PyCall y después using PyPlot en macOS. Comprueba la instalación de matplotlib de Conda indicada y el conflicto anterior de MKL dylib; se considera terminado cuando using PyPlot se completa sin quedarse bloqueado ni salir con Killed: 9.

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

Descripción

using PyPlot hangs or kills julia 1.8.5 or 1.9.0 on MacOS

Synopsis

using PyPlot hangs julia. No progress for >10 hours. No error message. User ^C exits julia with Killed: 9.

With repeated testing, behavior has evolved to crash immediately with Killed: 9, where it had hung.

Demonstration

Carefully recursively force-removed the conda directory $HOME/.julia/conda, which seems to be shared between julia 1.8 and 1.9.

Start julia, making sure dynamic dependencies are consistent with the conda python installation.

LD_LIBRARY_PATH="$HOME/.julia/conda/3/lib" /Applications/Julia-1.8.app/Contents/Resources/julia/bin/julia

or

LD_LIBRARY_PATH="$HOME/.julia/conda/3/lib" /Applications/Julia-1.9.app/Contents/Resources/julia/bin/julia

Make sure julia is using the conda python distribution and build PyCall.

ENV["PYTHON"]=""
]build PyCall
    Building Conda ─→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/e32a90da027ca45d84678b826fffd3110bb3fc90/build.log`
    Building PyCall → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/62f417f6ad727987c755549e9cd88c46578da562/build.log`
...

Quit and restart julia, then run

using PyPlot

Since we started by wiping ~/.julia/conda, matplotlib is not installed. Conda is automatically deployed to install it:

[ Info: Installing matplotlib via the Conda matplotlib package...
[ Info: Running `conda install -y matplotlib` in root environment
...
Executing transaction: done

It hangs there.

Kill julia with ^C -> Killed: 9.

Try again now that matplotlib is installed:

LD_LIBRARY_PATH="$HOME/.julia/conda/3/lib" /Applications/Julia-1.8.app/Contents/Resources/julia/bin/julia
ENV["PYTHON"]=""
using PyPlot

Result: It just hangs immediately. So, I think probably conda installs matplotlib (maybe OK?), but julia is unable to use it.

I have to kill julia with ^C -> Killed: 9.

Trying again.

LD_LIBRARY_PATH="$HOME/.julia/conda/3/lib" /Applications/Julia-1.8.app/Contents/Resources/julia/bin/julia
ENV["PYTHON"]=""
using Conda  # returns
using PyCall  # returns
using PyPlot  # crashes
Killed: 9

Crashes and exits.

Even wiping .julia/conda again, it just crashes now with Killed: 9

Background

PyPlot had previously been working for me.
The first sign of trouble was an MKL dylib conflict error message and crash when running using PyPlot.
Unfortunately after many ^Cs I can't find that error message.

I updated julia's conda after that. Then I got the behavior reported above.

Lenguaje dominante
Julia
Estrellas
488
Forks
90
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de JuliaPy/PyPlot.jl

Todos los issues de JuliaPy/PyPlot.jl

Issues similares

Más issues de Julia

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.