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

Fixed pip install on model worker images #1134

Merged
merged 5 commits into from
Nov 28, 2024
Merged

Conversation

sambles
Copy link
Contributor

@sambles sambles commented Nov 11, 2024

Fixed pip install on model worker images

Moving to ubuntu 24.04 uses a version of python with a stricter package manager. Added an env variable to base image as a workaround.

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.

@sambles sambles added the bug label Nov 11, 2024
@sambles sambles merged commit f642000 into main Nov 28, 2024
9 of 13 checks passed
@sambles sambles deleted the fix/image-pip-install branch November 28, 2024 10:41
sambles added a commit that referenced this pull request Nov 28, 2024
* Fix pip install on based worker images

* Updated Package Requirements: waitress==3.0.1

* retest

* f

* Add to server

---------

Co-authored-by: awsbuild <[email protected]>
@sambles sambles mentioned this pull request Nov 28, 2024
1 task
sambles added a commit that referenced this pull request Nov 28, 2024
@awsbuild awsbuild added this to the 2.3.11 milestone Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants