Python is not able to load modules from CFFI and other native bindings.

Hi there, after we updated Windmill on July 4th, Windmill is not able to import modules from “argon2-cffi” and “pydantic-core”. Both are using CFFI or other native CPython. Our Windmill Version is EE v1.360.1 The python package updated in the lock file. Can someone please assist us troubleshooting this. ExecutionErr: ExitCode: 1, last log lines: che/pip/minio==7.2.7/minio/crypto.py", line 23, in <module> from argon2.low_level import Type, hash_secret_raw File "/tmp/windmill/cache/pip/argon2-cffi==23.1.0/argon2/init.py", line 7, in <module> from . import exceptions, low_level, profiles File "/tmp/windmill/cache/pip/argon2-cffi==23.1.0/argon2/low_level.py", line 17, in <module> from _argon2_cffi_bindings import ffi, lib File "/tmp/windmill/cache/pip/argon2-cffi-bindings==21.2.0/_argon2_cffi_bindings/init.py", line 3, in <module> from ._ffi import ffi, lib ModuleNotFoundError: No module named '_cffi_backend' ExecutionErr: ExitCode: 1, last log lines: ^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/windmill/cache/pip/pydantic==2.8.2/pydantic/networks.py", line 11, in <module> from pydantic_core import MultiHostUrl, PydanticCustomError, Url, core_schema File "/tmp/windmill/cache/pip/pydantic-core==2.20.1/pydantic_core/init.py", line 6, in <module> from ._pydantic_core import ( ModuleNotFoundError: No module named 'pydantic_core._pydantic_core'
5 Replies
rubenf
rubenf4mo ago
Hi @Alexander Eisele , we would need to dig into this but it would surprise me that it would be related to the upgrade. Are you an EE customer so we can assign one of our engineer into this?
Alexander Eisele
Hi, I am an enterprise customer. I would like to try to delete the package cache, but I couldn't find a button in the UI for that.
rubenf
rubenf4mo ago
@Alexander Eisele , in the worker group config you will find a button for it (page workers)
Alexander Eisele
Deleting the cache worked. Thank you very much.
rubenf
rubenf4mo ago
🎉