Traceback (most recent call last):


 "/root/.local/bin/pyinstaller", line 8, in <module>

sys.exit(run())


 "/root/.local/pipx/venvs/pyinstaller/lib/python3.8/site-packages/PyInstaller/__main__.py", line 114, in run

run_build(pyi_config, spec_file, **vars(args))


 "/root/.local/pipx/venvs/pyinstaller/lib/python3.8/site-packages/PyInstaller/__main__.py", line 65, in run_build

PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)


 "/root/.local/pipx/venvs/pyinstaller/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 725, in main

build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))


 "/root/.local/pipx/venvs/pyinstaller/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 672, in build

exec(code, spec_namespace)


 "/home/vagrant/script/test_pydantic.spec", line 6, in <module>

a = Analysis(['test_pydantic.py'],


 "/root/.local/pipx/venvs/pyinstaller/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 242, in __init__

self.__postinit__()


 "/root/.local/pipx/venvs/pyinstaller/lib/python3.8/site-packages/PyInstaller/building/datastruct.py", line 160, in __postinit__

self.assemble()


 "/root/.local/pipx/venvs/pyinstaller/lib/python3.8/site-packages/PyInstaller/building/build_main.py", line 420, in assemble

self.graph.process_post_graph_hooks()


 "/root/.local/pipx/venvs/pyinstaller/lib/python3.8/site-packages/PyInstaller/depend/analysis.py", line 367, in process_post_graph_hooks

module_hook.post_graph()


 "/root/.local/pipx/venvs/pyinstaller/lib/python3.8/site-packages/PyInstaller/depend/imphook.py", line 447, in post_graph

self._load_hook_module()


 "/root/.local/pipx/venvs/pyinstaller/lib/python3.8/site-packages/PyInstaller/depend/imphook.py", line 408, in _load_hook_module

self._hook_module = importlib_load_source(


 "/root/.local/pipx/venvs/pyinstaller/lib/python3.8/site-packages/PyInstaller/compat.py", line 598, in importlib_load_source

return mod_loader.load_module()


 "<frozen importlib._bootstrap_external>", line 462, in _check_name_wrapper


 "<frozen importlib._bootstrap_external>", line 962, in load_module


 "<frozen importlib._bootstrap_external>", line 787, in load_module


 "<frozen importlib._bootstrap>", line 265, in _load_module_shim


 "<frozen importlib._bootstrap>", line 702, in _load


 "<frozen importlib._bootstrap>", line 671, in _load_unlocked


 "<frozen importlib._bootstrap_external>", line 783, in exec_module


 "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed


 "/root/.local/pipx/venvs/pyinstaller/lib/python3.8/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks/hook-pydantic.py", line 35, in <module>

if not is_module_satisfies('pydantic >= 1.4'):


 "/root/.local/pipx/venvs/pyinstaller/lib/python3.8/site-packages/PyInstaller/utils/hooks/__init__.py", line 531, in is_module_satisfies

version = get_module_attribute(module_name, version_attr)


 "/root/.local/pipx/venvs/pyinstaller/lib/python3.8/site-packages/PyInstaller/utils/hooks/__init__.py", line 328, in get_module_attribute

raise AttributeError(
AttributeError: Module 'pydantic' has no attribute '__version__'

Traceback (most recent call last):


 "valid_rasa.py", line 9, in <module>

validator = Validator.from_files(
AttributeError: type object 'Validator' has no attribute 'from_files'
