nat-n / poethepoet

A task runner that works well with poetry.
https://poethepoet.natn.io/
MIT License
1.4k stars 58 forks source link

`Command not found: poe` Issue #128

Closed dschiller closed 1 year ago

dschiller commented 1 year ago

I am using poetry and want to use poe. I followed the install instruction as:

poetry run pip install poethepoet
Looking in indexes:
Collecting poethepoet
  Downloading fc9cf316f91b7c0147bed1421f053ae0d616b029cd4eb39aa1a1/poethepoet-0.18.1-py3-none-any.whl (69 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 69.6/69.6 kB 600.1 kB/s eta 0:00:00
Requirement already satisfied: pastel<0.3.0,>=0.2.1 in ./.venv/lib/python3.9/site-packages (from poethepoet) (0.2.1)
Requirement already satisfied: tomli>=1.2.2 in ./.venv/lib/python3.9/site-packages (from poethepoet) (2.0.1)
Installing collected packages: poethepoet
Successfully installed poethepoet-0.18.1

[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: pip install --upgrade pip

Executing it fails:

poetry run poe

Command not found: poe
dschiller commented 1 year ago

Solution:

poetry run pip uninstall poethepoet
poetry run pip install poethepoet
poetry run poe                     
Poe the Poet - A task runner that works well with poetry.
version 0.18.1

Result: No task specified.

USAGE
  poe [-h] [-v | -q] [--root PATH] [--ansi | --no-ansi] task [task arguments]

GLOBAL OPTIONS
  -h, --help     Show this help page and exit
  --version      Print the version and exit
  -v, --verbose  Increase command output (repeatable)
  -q, --quiet    Decrease command output (repeatable)
  -d, --dry-run  Print the task contents but don't actually run it
  --root PATH    Specify where to find the pyproject.toml
  --ansi         Force enable ANSI output
  --no-ansi      Force disable ANSI output

CONFIGURED TASKS
  test           Lint, type check and run tests with coverage
  lint           Lint the project
  tox            Run tests on all supported python versions
  lock           Update the poetry.lock file
  coverage       Run tests with coverage
  mypy           Validate typing in the project
  clean          Clean coverage and tox directories files
  report         Generate coverage report

Delete the .venv folder and reinstall poetry dependencies:

rm -rf .venv
poetry install