Klemen Strojan
06/30/2020, 5:35 AMprefect register -f flows/my_flow.py
. I got an error Error: no such option: -f
. When I register the flow with flow.register()
it becomes available in UI but I am unable to run it, the tasks are pending and I can see this error Failed to load and execute Flow's environment: ModuleNotFoundError("No module named 'github'")
. I am using 0.12.1
and Cloud. Any ideas?josh
06/30/2020, 11:37 AMprefect register flow -f ...
Klemen Strojan
06/30/2020, 11:52 AMprefect auth login -t $prefect_user_token
prefect register flow -f flows/my_flow.py --project Dev_project
prefect agent start -t $prefect_runner_token
Should I specify the agent somehow?josh
06/30/2020, 11:55 AMgithub
extras installed.Klemen Strojan
06/30/2020, 12:08 PMpip install "prefect[github]"
changed the error to
Failed to load and execute Flow's environment: UnknownObjectException(404, {'message': 'Not Found', 'documentation_url': '<https://developer.github.com/v3/repos/#get'}>)
pointing me to GitHub API docs. I had to set proper permissions for Access Token (repo), and now it works 🙂
Thanks!josh
06/30/2020, 12:08 PM