JuliaPy / JuliaPy/PythonCall.jl

import of pyarrow fails

未關閉
#373 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Julia
星號
1.1k
分支
86
平均合併
1 天 22 小時
30 天內合併 PR
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
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。