flathub / flathub/com.visualstudio.code

Cannot use pyenv-installed python due to missing library

未关闭
#174 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Shell
星标
217
派生
82
平均合并
1 天 7 小时
30 天内合并 PR
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 摘要。