flathub / flathub/com.visualstudio.code

Cannot use pyenv-installed python due to missing library

オープン
#174 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Shell
スター
217
フォーク
82
平均マージ
1日 7時間
マージ済み PR(30日)
1

説明

On my system, I installed a version of python using pyenv. The version of python is compiled by pyenv from source against libraries in the system, as normal

Visual Studio code cannot find this version of python. Looking at the logs I see:

```
Error 2020-08-19 01:13:50: Failed to get interpreter information for '/home/valmar/.pyenv/versions/om-py3/bin/python3' [Error: Command failed: "/home/valmar/.pyenv/versions/om-py3/bin/python3" "/home/valmar/.var/app/com.visualstudio.code/data/vscode/extensions/ms-python.python-2020.8.101144/pythonFiles/pyvsc-run-isolated.py" "/home/valmar/.var/app/com.visualstudio.code/data/vscode/extensions/ms-python.python-2020.8.101144/pythonFiles/interpreterInfo.py"
/home/valmar/.pyenv/versions/om-py3/bin/python3: error while loading shared libraries: libcrypt.so.2: cannot open shared object file: No such file or directory
```

libcrypt is installed in my system, but no in the Flatpak. Pyenv is quite a commonly used program. Would it be possible please to install the library in the flatpak?

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

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

調査の方向性

まず、issueに示されているpyenv実行ファイルについてインタープリターの検出を再現し、Flatpak環境でlibcrypt.so.2を調べます。Visual Studio Codeが、このpyenvでインストールされたPythonから、ライブラリが見つからないエラーなしにインタープリター情報を取得できれば完了です。

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

評価

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

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

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