RustPython / RustPython/RustPython
[RFC] How to create a virtual environment for `rustpython` using `pipenv`?
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 22.4k
- Forks
- 1.5k
- Avg merge
- 16h 33m
- Merged PRs (30d)
- 165
Description
Chinese version
如何使用 pipenv 为 rustpython 创建虚拟环境?
我一般使用 pipenv 来创建和管理虚拟环境,来分隔不用的 python 解释器和 pip 包管理器。
但是 pipenv 目前似乎无法为 rustpython 创建虚拟环境。
╰─➤ pipenv install --python=/home/bot/opt/python/RustPython/target/release/rustpython
Creating a virtualenv for this project...
Pipfile: /home/bot/Desktop/code/lin/Pipfile
Using /home/bot/opt/python/RustPython/target/release/rustpython (3.10.0) to create virtualenv...
⠸ Creating virtual environment...TypeError: 'NoneType' object is not callable
✘ Failed creating virtual environment
Failed to create virtual environment.
我的 rustpython 是通过
git clone git@github.com:RustPython/RustPython.git然后cargo run --release获取的。
target/release/rustpython
关于运行平台的版本信息
─➤ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
关于 rustpython 的版本信息
─➤ /home/bot/opt/python/RustPython/target/release/rustpython --version
RustPython 0.1.2
关于 pipenv 的版本信息
╰─➤ pipenv --version
pipenv, version 2022.5.2
English version
How to create a virtual environment for rustpython using pipenv?
I generally use pipenv to create and manage virtual environments, to separate the python interpreter and the pip package manager when I'm not using it.
But pipenv currently doesn't seem to be able to create a virtual environment for rustpython.
╰─➤ pipenv install --python=/home/bot/opt/python/RustPython/target/release/rustpython
Creating a virtualenv for this project...
Pipfile: /home/bot/Desktop/code/lin/Pipfile
Using /home/bot/opt/python/RustPython/target/release/rustpython (3.10.0) to create virtualenv...
⠸ Creating virtual environment...TypeError: 'NoneType' object is not callable
✘ Failed creating virtual environment
Failed to create virtual environment.
My rustpython was fetched by
git clone git@github.com:RustPython/RustPython.gitand thencargo run --release.
target/release/rustpython
Version information about the running platform
─➤ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
Version information about rustpython
─➤ /home/bot/opt/python/RustPython/target/release/rustpython --version
RustPython 0.1.2
Version information about pipenv
╰─➤ pipenv --version
pipenv, version 2022.5.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No project file or test is named. Start by reproducing the reported pipenv install --python=.../rustpython command with RustPython 0.1.2, pipenv 2022.5.2, and Ubuntu 20.04; done means determining whether a virtual environment can be created or documenting the incompatibility and its cause.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100