Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Github workflow fails #703

Closed
1 of 2 tasks
revit13 opened this issue Oct 14, 2024 · 2 comments
Closed
1 of 2 tasks

[Bug] Github workflow fails #703

revit13 opened this issue Oct 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@revit13
Copy link
Collaborator

revit13 commented Oct 14, 2024

Search before asking

  • I searched the issues and found no similar issues.

Component

CI/CD

What happened + What you expected to happen

ubuntu:latest seems to use now python3.12
the following errors occurs:
1)
https://github.com/IBM/data-prep-kit/actions/runs/11317492144/job/31470999796

../../../../data-processing-lib/python/src/data_processing/utils/pipinstaller.py:21: in <module>
    import pkg_resources
E   ModuleNotFoundError: No module named 'pkg_resources'

pkg_resources is deprecated and removed in Python 3.12

  1. FIXED https://github.com/IBM/data-prep-kit/actions/runs/11322510497/job/31483339004
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!
@revit13 revit13 added the bug Something isn't working label Oct 14, 2024
@revit13
Copy link
Collaborator Author

revit13 commented Oct 14, 2024

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'?

@revit13
Copy link
Collaborator Author

revit13 commented Oct 15, 2024

ubuntu-22.04 is now used in the github actions so python3.10 is used and the ci/cd is passing ok.

@revit13 revit13 closed this as completed Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant