Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Poetry shell command does not start shell

オープン
#21 コメント 8 件 リアクション 2 件 担当者 0 名 GitHub で見る

@kenttonino がすでに取り組んでいます。

2026年4月9日 から。

  • #57 @kenttonino による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
50/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python
領域
cli

調査の方向性

まず、文書化されている 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 (-vvv option) (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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python-poetry/poetry-plugin-shell のほかの issue

python-poetry/poetry-plugin-shell の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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