JuliaPy / JuliaPy/PythonCall.jl
Weird behavior importing lists from python to Julia
- Lenguaje dominante
- Julia
- Estrellas
- 1.1k
- Forks
- 86
- Merge medio
- 1 d 22 h
- PR fusionados (30 d)
- 3
Descripción
**Affects:** JuliaCall
**Describe the bug**
I'm getting weird crashes when I transfer a list from Python to Julia. This does not happen with PyJulia. Minimum working example below.
```
>>> from juliacall import Main as jl
>>> jl.x = [1., 2.]
>>> jl.seval("show(x)")
Any["s", "h", "o", "w", "(", "x", ")"]
>>> jl.x = 1
>>> jl.seval("show(x)")
1
>>> from julia import Main
>>> Main.x = [1., 2.]
>>> Main.eval("show(x)")
[1.0, 2.0]
```
**Your system**
- Windows 11 Pro 22H2
- Julia 1.9.2; Python 3.11, JuliaCall 0.9.13
```
C:\Users\drood>pip list
Package Version
---------------- -------
fortls 2.13.0
json5 0.9.14
julia 0.6.1
juliacall 0.9.13
juliapkg 0.1.10
numpy 1.25.0
packaging 23.1
pip 23.2
psutil 5.9.5
semantic-version 2.10.0
setuptools 65.5.0
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start by reproducing the Python-to-Julia list transfer with the provided JuliaCall and PyJulia examples on the stated versions. Inspect the conversion path for Python lists and compare the resulting Julia value with the scalar case; done means lists transfer without producing the shown character array or crashing, with regression coverage added if the relevant test location is found.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- julia, python
- Área
- backend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100