unable to use beautifulsoup
- 主要言語
- Julia
- スター
- 1.5k
- フォーク
- 186
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
The following seems to download/install beautifulsoup (or rather, state that it is already there).
do you happen to know why this fails?
```
julia> PyCall.pyimport_conda("beautifulsoup4","beautifulsoup4")
[ Info: Installing beautifulsoup4 via the Conda beautifulsoup4 package...
[ Info: Running `conda install -y beautifulsoup4` in root environment
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
ERROR: PyError (PyImport_ImportModule
The Python package beautifulsoup4 could not be found by pyimport. Usually this means
that you did not install beautifulsoup4 in the Python version being used by PyCall.
PyCall is currently configured to use the Julia-specific Python distribution
installed by the Conda.jl package. To install the beautifulsoup4 module, you can
use `pyimport_conda("beautifulsoup4", PKG)`, where PKG is the Anaconda
package the contains the module beautifulsoup4, or alternatively you can use the
Conda package directly (via `using Conda` followed by `Conda.add` etcetera).
Alternatively, if you want to use a different Python distribution on your
system, such as a system-wide Python (as opposed to the Julia-specific Python),
you can re-configure PyCall with that Python. As explained in the PyCall
documentation, set ENV["PYTHON"] to the path/name of the python executable
you want to use, run Pkg.build("PyCall"), and re-launch Julia.
)
ModuleNotFoundError("No module named 'beautifulsoup4'",)
Stacktrace:
[1] pyimport(::String) at C:\Users\bernhard.konig.ROOT_MILLIMAN\.julia\packages\PyCall\ttONZ\src\PyCall.jl:544
[2] pyimport_conda(::String, ::String, ::String) at C:\Users\bernhard.konig.ROOT_MILLIMAN\.julia\packages\PyCall\ttONZ\src\PyCall.jl:708
[3] pyimport_conda(::String, ::String) at C:\Users\bernhard.konig.ROOT_MILLIMAN\.julia\packages\PyCall\ttONZ\src\PyCall.jl:701
[4] top-level scope at none:0
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず Windows の失敗を再現し、スタックトレースで示された pyimport と pyimport_conda 周辺の PyCall.jl の箇所(544、701、708 行目)を調べます。Conda 環境にインストールされているパッケージと、PyCall が実際に使用している Python 環境を比較します。不一致または失敗を特定し、検証済みの再現によって挙動を文書化または修正できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- julia, python
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100