https://prefect.io logo
Title
j

Joshua Greenhalgh

06/30/2022, 2:51 PM
I thought I would have a play with 2.0 today - tried running the code here -> https://orion-docs.prefect.io/tutorials/first-steps/ - get following error?
ValueError: the greenlet library is required to use this function. No module named 'greenlet'
Any ideas?
Running on M1 - installed with poetry...
k

Khuyen Tran

06/30/2022, 2:51 PM
I assume your run
poetry add "prefect>=2.0b"
?
j

Joshua Greenhalgh

06/30/2022, 2:52 PM
==2.0b1
trying without the pin
same error
hmmm - if I use pip it works 😞
k

Khuyen Tran

06/30/2022, 2:57 PM
yeah I often got problems when using poetry on an M1. Let me see if I can reproduce your error
j

Joshua Greenhalgh

06/30/2022, 2:59 PM
k

Khuyen Tran

06/30/2022, 3:02 PM
I was able to installed correct with poetry when running this command:
poetry add "prefect>=2.0b"
I’m using an M1
Have you tried to create a new environment then install Prefect 2.0 with poetry to see if it works?
:upvote: 1
j

Joshua Greenhalgh

07/01/2022, 12:57 PM
Hey - have tried the above with no luck - will try to make a repro to see if its purely a me issue!