JuliaPy / JuliaPy/PyCall.jl

Does not find python library even though it has correct path.

オープン
#450 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Julia
スター
1.5k
フォーク
186
PR マージ指標
30日以内にマージされた PR はありません

説明

My Python executable is at: `/usr/nld/python-3.4.3-desktop/bin/python3`
The associated lib is at: `/usr/nld/python-3.4.3-desktop/lib/libpython3.4m.a`

I do:
```julia
julia> ENV["PYTHON"] = "/usr/nld/python-3.4.3-desktop/bin/python3"
"/usr/nld/python-3.4.3-desktop/bin/python3"

julia> Pkg.build("PyCall")
INFO: Building Conda
INFO: Building PyCall
===============================================[ ERROR: PyCall ]================================================

LoadError: Couldn't find libpython; check your PYTHON environment variable.

The python executable we tried was /usr/nld/python-3.4.3-desktop/bin/python3 (= version 3.4);
the library names we tried were String["libpython3.4m.a", "libpython3.4m", "libpython3.4", "libpython"]
and the library paths we tried were String["/usr/nld/python-3.4.3-desktop/lib", "/usr/nld/python-3.4.3-desktop/lib", "/usr/nld/python-3.4.3-desktop", "/usr/nld/python-3.4.3-desktop/lib"]
while loading /home/datseris/.julia/v0.6/PyCall/deps/build.jl, in expression starting on line 255

================================================================================================================

================================================[ BUILD ERRORS ]================================================

WARNING: PyCall had build errors.

- packages with build errors remain installed in /home/datseris/.julia/v0.6
- build the package(s) and all dependencies with `Pkg.build("PyCall")`
- build a single package by running its `deps/build.jl` script

================================================================================================================
```

which is weird, because the program states that it looks at the correct path *and* it has tried the correct name. Is there any way to fix? or any way to pass directly the library path like `ENV["PYTHONLIB"]` ?

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Start by reproducing the PyCall build with ENV["PYTHON"] set to the executable in the report, then inspect deps/build.jl around line 255 and the reported library/path checks. Determine why the listed libpython3.4m.a is rejected, and consider the requested direct library-path configuration. Done means the build locates the supplied Python library and completes successfully.

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

評価

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

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

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