JuliaPy / JuliaPy/PythonCall.jl

cannot import pyarrow with PythonCall

オープン
#339 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Julia
スター
1.1k
フォーク
86
平均マージ
1日 22時間
マージ済み PR(30日)
3

説明

**Affects:** PythonCall

**Describe the bug**

Cannot import pyarrow using PythonCall.jl

In a fresh environment / new folder:
```julia
using Pkg
Pkg.activate(".")
Pkg.add("CondaPkg")

using CondaPkg
CondaPkg.add("pyarrow")

Pkg.add("PythonCall")
using PythonCall
pyarrow = pyimport("pyarrow")
```

Result:
```julia
julia> pyarrow = pyimport("pyarrow")
ERROR: Python: ImportError: DLL load failed while importing lib: The specified procedure could not be found.
Python stacktrace:
[1]
@ C:\Users\beasont\condatest\.CondaPkg\env\Lib\site-packages\pyarrow\__init__.py:65
Stacktrace:
[1] pythrow()
@ PythonCall C:\Users\beasont\.julia\packages\PythonCall\1f5yE\src\err.jl:94
[2] errcheck
@ C:\Users\beasont\.julia\packages\PythonCall\1f5yE\src\err.jl:10 [inlined]
[3] pyimport(m::String)
@ PythonCall C:\Users\beasont\.julia\packages\PythonCall\1f5yE\src\concrete\import.jl:11
[4] top-level scope
@ REPL[11]:1
```

Info:
```julia
(condatest) pkg> conda st
CondaPkg Status C:\Users\beasont\condatest\CondaPkg.toml
Environment
C:\Users\beasont\condatest\.CondaPkg\env
Packages
pyarrow v12.0.1

(condatest) pkg> st
Status `C:\Users\beasont\condatest\Project.toml`
[992eb4ea] CondaPkg v0.2.18
[6099a3de] PythonCall v0.9.13

julia> versioninfo()
Julia Version 1.9.2
Commit e4ee485e90 (2023-07-05 09:39 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 32 × AMD Ryzen 9 5950X 16-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, znver3)
Threads: 1 on 32 virtual cores

```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start with the fresh-environment Julia reproducer using CondaPkg, PythonCall, and pyarrow on Windows, then inspect the PythonCall import path and the reported DLL-load stacktrace. Compare the package and runtime versions shown in the issue. Done means pyimport("pyarrow") succeeds in the reported setup without the ImportError.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
backend, devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。