Has prefect removed the module prefect.infrastructure.docker ? Id yes, then what is the name of the new module
n
Nate
10/18/2024, 1:19 AM
hi @Nitin Bansal - did you unintentionally install a newer version of
prefect
(which is where that module used to live)
Nate
10/18/2024, 1:19 AM
what does
pip list | grep prefect
show?
n
Nitin Bansal
10/18/2024, 1:24 AM
prefect 2.20.9
n
Nate
10/18/2024, 1:29 AM
generally speaking integration related things have moved to their respective integrations, so whatever you're trying to import from
prefect.infrastructure.docker
should probably be imported from
prefect_docker
feel free to share what it is that you're trying to do!
n
Nitin Bansal
10/18/2024, 1:55 AM
I have deployed my flows using
from prefect.deployments import Deployment
Nitin Bansal
10/18/2024, 1:55 AM
FOr this I need to get the image of my flow which is in nexus repo
Nitin Bansal
10/18/2024, 1:56 AM
I was using
Copy code
from prefect.infrastructure.docker import DockerContainer, DockerRegistry
which was working fine, but today when I again initiated my pipeline then I am getting an error that :"ModuleNotFoundError: No module named 'prefect.infrastructure.docker'"
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.