JuliaPy / JuliaPy/PythonCall.jl

import of pyarrow fails

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

説明

I observe a very strange behaviour that pyimport fails on windows if it was installed via conda-forge. If it was installed via pip, everything works fine.

I've opened an [issue on conda-forge pyarrow](https://github.com/conda-forge/arrow-cpp-feedstock/issues/1176), but maybe someone here has an idea...

MWE:

```julia
julia> ENV["JULIA_PYTHONCALL_EXE"] = "C:\\ProgramData\\mambaforge\\envs\\pyarrow_conda\\python.exe"
"C:\\ProgramData\\mambaforge\\envs\\pyarrow_conda\\python.exe"

julia> using PythonCall

julia> pyimport("pyarrow")
ERROR: Python: ImportError: DLL load failed while importing lib: Die angegebene Prozedur wurde nicht gefunden.
Python stacktrace:
[1]
@ C:\ProgramData\mambaforge\envs\pyarrow_conda\Lib\site-packages\pyarrow\__init__.py:65
Stacktrace:
[1] pythrow()
@ PythonCall C:\Users\\.julia\dev\PythonCall\src\err.jl:94
[2] errcheck
@ C:\Users\\.julia\dev\PythonCall\src\err.jl:10 [inlined]
[3] pyimport(m::String)
@ PythonCall C:\Users\\.julia\dev\PythonCall\src\concrete\import.jl:11
[4] top-level scope
@ REPL[3]:1
```

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

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

調査の方向性

Start by reproducing the Windows MWE with the conda-forge Python executable and pyarrow, then inspect pyarrow\__init__.py:65 and PythonCall's src/concrete/import.jl:11, src/err.jl:10, and src/err.jl:94. Compare the conda-forge and pip installations; done means the reported conda-forge import either works or the supported limitation and required fix are established.

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

評価

技術スタック
julia, python
領域
backend, operating-systems
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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