Wrong python path when updating PyCall on NixOS
- 主要言語
- Julia
- スター
- 1.5k
- フォーク
- 186
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When trying to update PyCall on NixOS the build script does not pick up the correct python binary for my nix environment and fails while building with this error:
>Error: Error building `PyCall`:
│ PREFIX=/home/christoph/.julia/conda/3
│ Unpacking payload ...
│ /home/christoph/.julia/conda/3/installer.sh: line 404: /home/christoph/.julia/conda/3/conda.exe: No such file or directory
│ /home/christoph/.julia/conda/3/installer.sh: line 406: /home/christoph/.julia/conda/3/conda.exe: No such file or directory
│ ┌ Info: No system-wide Python was found; got the following error:
│ │ Base.IOError("could not spawn setenv(`/nix/store/1ysl29qhalc442cnjxpsbg4apmzl77w9-python3-3.7.5-env/bin/python3.7
...
when the newer and correct Python binary for this particular nix environment is:
>/nix/store/bgqm5mslbcn42cx52qm45275gvsw85gv-python3-3.7.6-env/bin/python
Nuking `~/.julia/` and trying to install PyCall from scratch works though. My best guess is that PyCall somewhere stores the path to the Python binary it finds when installed for the first time and tries to keep using that even though nix has moved python to a different directory.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
The issue names the PyCall build script and the Python-selection path but no repository files or tests. Start by tracing how an update selects and stores the Python binary, then reproduce the update on NixOS. Done means an existing PyCall installation uses the current environment's Python path instead of a stale Nix store path.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- build-system, operating-systems
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100