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

build: update common pip version for pipelines #82

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

UsamaSadiq
Copy link
Member

Description

  • Need to update pip version to latest in order to avoid following error when running with Python 3.12 env
TASK [edx_django_service : install nodenv] *************************************
fatal: [10.4.110.30]: FAILED! => {
    "changed": true,
    "cmd": [
        "pip",
        "install",
        "nodeenv"
    ],
    "delta": "0:00:00.094436",
    "end": "2024-10-18 13:12:20.453541",
    "rc": 1,
    "start": "2024-10-18 13:12:20.359105"
}

STDERR:

Traceback (most recent call last):
  File "/edx/app/analytics_api/venvs/analytics_api/bin/pip", line 5, in <module>
    from pip._internal.cli.main import main
  File "/edx/app/analytics_api/venvs/analytics_api/lib/python3.12/site-packages/pip/_internal/cli/main.py", line 9, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "/edx/app/analytics_api/venvs/analytics_api/lib/python3.12/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "/edx/app/analytics_api/venvs/analytics_api/lib/python3.12/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
    from pip._internal.cli import cmdoptions
  File "/edx/app/analytics_api/venvs/analytics_api/lib/python3.12/site-packages/pip/_internal/cli/cmdoptions.py", line 23, in <module>
    from pip._internal.cli.parser import ConfigOptionParser
  File "/edx/app/analytics_api/venvs/analytics_api/lib/python3.12/site-packages/pip/_internal/cli/parser.py", line 12, in <module>
    from pip._internal.configuration import Configuration, ConfigurationError
  File "/edx/app/analytics_api/venvs/analytics_api/lib/python3.12/site-packages/pip/_internal/configuration.py", line 21, in <module>
    from pip._internal.exceptions import (
  File "/edx/app/analytics_api/venvs/analytics_api/lib/python3.12/site-packages/pip/_internal/exceptions.py", line 7, in <module>
    from pip._vendor.pkg_resources import Distribution
  File "/edx/app/analytics_api/venvs/analytics_api/lib/python3.12/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2164, in <module>
    register_finder(pkgutil.ImpImporter, find_on_path)
                    ^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant