You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
../../../../data-processing-lib/python/src/data_processing/utils/pipinstaller.py:21: in <module>
import pkg_resources
E ModuleNotFoundError: No module named 'pkg_resources'
pip install jinja2
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.12/README.venv for more information.
Reproduction script
Run the workflows
Anything else
No response
OS
Ubuntu
Python
Other
Are you willing to submit a PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered:
Trying to fix the first error by using importlib.metadata instead of pkg_resources I hit another error which relates to python3.12:
FAILED data_processing_tests/data_access/data_access_local_test.py::TestReadPyarrowTable::test_error_handling[malformed_parquet.parquet-ArrowException] - AttributeError: 'called_once_with' is not a valid assertion. Use a spec for the mock if 'called_once_with' is meant to be an attribute.. Did you mean: 'assert_called_once_with'?
Search before asking
Component
CI/CD
What happened + What you expected to happen
ubuntu:latest
seems to use now python3.12the following errors occurs:
1)
https://github.com/IBM/data-prep-kit/actions/runs/11317492144/job/31470999796
pkg_resources is deprecated and removed in Python 3.12
Reproduction script
Run the workflows
Anything else
No response
OS
Ubuntu
Python
Other
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: