Has prefect removed the module prefect.infrastruct...
# ask-community
n
Has prefect removed the module prefect.infrastructure.docker ? Id yes, then what is the name of the new module
n
hi @Nitin Bansal - did you unintentionally install a newer version of
prefect
(which is where that module used to live)
what does
pip list | grep prefect
show?
n
prefect 2.20.9
n
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
I have deployed my flows using from prefect.deployments import Deployment
FOr this I need to get the image of my flow which is in nexus repo
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'"