I work on the open source at prefect, sorry you're having trouble and thanks for the reproduction steps!
are you able to share the full stack trace? its odd to me that from prefect.docker import DockerImage
would raise that error
also, please feel free to copy this writeup into a GitHub discussion (https://github.com/PrefectHQ/prefect/discussions), which is the best place to ask these sorts of questions
otherwise, feel free to join our slack if you want to chat with us or ask other prefect users questions
https://communityinviter.com/apps/prefect-community/prefect-community