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

major version bump of virtualenv (20.0.1, updated 2019-02-10) breaks multistage docker builds using pipenv #1560

Closed
ianlofs opened this issue Feb 10, 2020 · 3 comments

Comments

@ianlofs
Copy link

ianlofs commented Feb 10, 2020

The new version of virtualenv appears to break python apps deployed using a multistage docker build process, ie.

FROM python:3.6 as build
# install any build dependencies using package manager
RUN pip install pipenv
RUN pipenv install
RUN python setup.py install
FROM python:3.6
COPY --from build <path_to_virtualenv_location> <path_to_location_in_final_step>
ENTRYPOINT ['<path_to_location_in_final_step/bin/<executable_name>']

OS: Debian Strech
pip list:

Package    Version
---------- -------
pip        19.1.1 
setuptools 41.0.1 
if submitting an ENHANCEMENT issue:

When running the container the executable fails with ModuleNotFoundError: No module named 'pkg_resources'

@ianlofs
Copy link
Author

ianlofs commented Feb 10, 2020

I also created an issue in the pipenv repository, #4128

@ianlofs ianlofs changed the title major version bump of virtualenv (20.0.1, updated 2019-02-10) breaks multistage docker builds using pipenv #4128 major version bump of virtualenv (20.0.1, updated 2019-02-10) breaks multistage docker builds using pipenv Feb 10, 2020
@gaborbernat
Copy link
Contributor

See #1558

@gaborbernat
Copy link
Contributor

Hello, a fix for this issue has been released via virtualenv 20.0.2; see https://pypi.org/project/virtualenv/20.0.2/ (https://virtualenv.pypa.io/en/latest/changelog.html#v20-0-2-2020-02-11) . Please give a try and report back if your issue has not been addressed; if not, please comment here, and we'll reopen the ticket. We want to apologize for the inconvenience this has caused you and say thanks for having patience while we resolve the unexpected bugs with this new major release.

thanks

@pypa pypa locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants