Can't use pydantic library in lookup plugin

Hi there

I tried to embed some python code as a plugin that uses pydantic library.

Seems that this does not work in combination with Ansible.

Did anybody have similiar issues?

I would really appreciate if you can give me a hint how to solve it.

Thank you very much in advance!

sample plugin code (copied from ‘file’ plugin)

(attachments)