JuliaPy / JuliaPy/PythonCall.jl
Weird behavior importing lists from python to Julia
- 主要言語
- Julia
- スター
- 1.1k
- フォーク
- 86
- 平均マージ
- 1日 22時間
- マージ済み PR(30日)
- 3
説明
**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
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- julia, python
- 領域
- backend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100