Poetry shell command does not start shell
評価
調査の方向性
まず、文書化されている macOS のコマンドシーケンスを再現し、poetry shell コマンドの処理を調査します。すでに有効化された仮想環境から実行した場合の動作を確認します。完了条件は、仮想環境がすでにアクティブであると報告するのではなく、poetry shell が期待されるサブシェルを開くことです。
索引モデルが issue の本文から書いたものです。
説明
-
I am on the latest Poetry version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption) (Not applicable). -
OS version and name: macos 10.15.6
-
Poetry version: 1.0.10
-
Link of a Gist with the contents of your pyproject.toml file: N/A
Issue
The basic issue is that poetry shell cannot be invoked within a virtual environment. Based on how this runs, I think the expectation is that we install poetry into the system.
My expectation is that I can invoke a poetry shell and drop into a standard virtual environment (i.e. a subshell that runs similar to vex).
Reproduceable steps:
`which python3` -m venv ~/.test-venv
. ~/.test-venv/bin/activate
pip install --upgrade pip poetry
deactivate
~/.test-venv/bin/poetry shell
The error will be something like:
Skipping virtualenv creation, as specified in config file.
Virtual environment already activated: ~/.test-venv
However, the virtual environment is not active.
- 主要言語
- Python
- スター
- 141
- フォーク
- 10
- 平均マージ
- 59分
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
python-poetry/poetry-plugin-shell のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
python-poetry/poetry-plugin-shell#43 · コメント 1 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
python-poetry/poetry-plugin-shell#42 · コメント 4 件 · リアクション 15 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
python-poetry/poetry-plugin-shell#40 · コメント 4 件 · リアクション 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
python-poetry/poetry-plugin-shell#37 · コメント 3 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
python-poetry/poetry-plugin-shell#34 · コメント 1 件 ·
python-poetry/poetry-plugin-shell の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
collective/icalendar#1968 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Deferred from #1869: Complete the companion pytest guardrail update noted in the PR description...オープン
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
NousResearch/hermes-agent#140958 ·
メンテナーはふだん 1 日以内に返信
-
Bug triage/confirmed
難易度 2/5 半日 初心者へのやさしさ 85/100
agentscope-ai/agentscope#3355 ·
メンテナーはふだん 2 日以内に返信