Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pw_migrate: command not found #221

Closed
Pithikos opened this issue Apr 4, 2023 · 2 comments · Fixed by #223
Closed

pw_migrate: command not found #221

Pithikos opened this issue Apr 4, 2023 · 2 comments · Fixed by #223

Comments

@Pithikos
Copy link

Pithikos commented Apr 4, 2023

Describe the bug
pw_migrate script not available on fresh install (Python 3.9, Ubuntu 20.04.6 LTS)

To Reproduce

$ pip install peewee-migrate
Requirement already satisfied: peewee-migrate in /home/myuser/myproject/.venv/lib/python3.9/site-packages (1.7.0)
Requirement already satisfied: click in /home/myuser/myproject/.venv/lib/python3.9/site-packages (from peewee-migrate) (8.1.3)
Requirement already satisfied: peewee<4,>=3 in /home/myuser/myproject/.venv/lib/python3.9/site-packages (from peewee-migrate) (3.15.4)
$ pw_migrate --help
pw_migrate: command not found
@NickKush
Copy link

NickKush commented Apr 7, 2023

I have the same problem in version 1.7.0.

1.6.6 works normal.

@enpaul
Copy link
Contributor

enpaul commented Apr 8, 2023

This appears to be due to the migration to Poetry/pyproject.toml. Adding the below to pyproject.toml should fix the issue:

[tool.poetry.scripts]
pw_migrate = "peewee_migrate.cli:cli"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants