-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Installing Prefect using Poetry on an M1 fails #6310
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
Comments
Hey! Nice to see you :) There's another installation error with Poetry at #6278 — sounds like we need to dedicate some attention to compatibility with it. |
Hm. Our published wheel explicitly includes the (some content omitted) [[package]]
name = "prefect"
version = "2.0.3"
[package.dependencies]
sqlalchemy = {version = ">=1.4.20,<1.4.33 || >1.4.33", extras = ["asyncio"]}
[[package]]
name = "sqlalchemy"
[package.dependencies]
greenlet = {version = "!=0.4.17", markers = "python_version >= \"3\" and (platform_machine == \"aarch64\" or platform_machine == \"ppc64le\" or platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"AMD64\" or platform_machine == \"win32\" or platform_machine == \"WIN32\")"}
[package.extras]
asyncio = ["greenlet (!=0.4.17)"] and
If I created a new poetry shell for isolation, I could reproduce your issue. Interestingly,
but if I run this command in my working conda environment, it does:
This seems like a poetry bug. |
Thanks for looking into this! Awesome to see you here. That matches what I'm seeing on my Poetry environment too. Does indeed seem like a Poetry bug. |
This issue is stale because it has been open 30 days with no activity. To keep this issue open remove stale label or comment. |
This issue was closed because it has been stale for 7 days with no activity. If this issue is important or you have more to add feel free to re-open it. |
First check
Bug summary
Installing Prefect on an M1 with Poetry skips the SQLAlchemy dependency greenlet.
It seems like this is a known issue with SQLAlchemy + Greenlet (see context) – and explicitly adding
sqlalchemy[asyncio]
as is done in Prefect's requirements.txt fixes with pip – but a Poetry install of Prefect on an M1 still fails.Reproduction
On an M1 machine:
poetry new test-project
poetry add prefect
In a new file, pipeline.py:
poetry run python3 pipeline.py
Error
Versions
Additional context
After manually adding greenlet (
poetry add greenlet
) this works fine! It looks like Poetry isn't picking up the extra insqlalchemy[asyncio]
.This might be outside of fair game for a Prefect issue, because it's an issue with a Prefect dependency – and only while using Poetry. Opening this issue because @madkinsz introduced me to Poetry :)
There are closed issues on SQLAlchemy (sqlalchemy/sqlalchemy#7714) and greenlet (python-greenlet/greenlet#234).
The text was updated successfully, but these errors were encountered: