Hello, I am very new to prefect. I work in poetry 1.1.8. I installed prefect-aws, and follow the document https://prefecthq.github.io/prefect-aws/, but got error
ModuleNotFoundError: No module named 'prefect.workers'
. I cannot find the solution via google search. Can anyone help?
✅ 1
m
Miguel Moncada
05/04/2023, 9:07 AM
What
prefect
&
prefect-aws
versions are you running?
m
Min Shi
05/04/2023, 9:22 AM
prefect version
Warning! Failed to load collection 'prefect_aws': ModuleNotFoundError: No module named 'prefect.workers'
Version: 2.82
API version: 0.8.4
Python version: 3.8.6
Git commit: afbed19d
Built: Fri, Feb 17, 2023 10:02 AM
OS/Arch: linux/x86_64
Profile: default
Server type: cloud
Min Shi
05/04/2023, 9:22 AM
[[package]]
name = "prefect-aws"
version = "0.3.1"
description = "Prefect collection of tasks and subflows to integrate with AWS"
category = "main"
optional = false
python-versions = ">=3.7"
m
Miguel Moncada
05/04/2023, 9:24 AM
TL;DR Try upgrading prefect to the latest version, or at least to
2.10.5
this should be the minimum required version for
prefect-aws
v0.3.1
according to the requirements.txt file
The workers module seems to have been moved away from the experimental submodule (ref)
m
Min Shi
05/04/2023, 9:27 AM
Yes, the problem is solved. 2.82 is the default version when I install prefect using poetry. Thank you very much!
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.