Alexander Eisele
Alexander Eisele
WWindmill
Created by Alexander Eisele on 7/10/2024 in #help
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'
6 replies
WWindmill
Created by Alexander Eisele on 3/27/2024 in #help
Logging in Python Script
Hi there, I developing some python scripts. I'm wondering if there is a standard way of handling logs. I would like to use the default "logging" library and configure the log output in the windmill ui. Passing the log level as a script parameter would work, but I'm looking for a more elegant solution.
3 replies