Skip to content

unrecognized arguments: --wheel=bundle when building docker image #2883

@HavierD

Description

@HavierD

Issue

After version 20.31.0, this library stop bundling Wheel. But if my project uses poetry when building a docker image, when running "poetry lock", it will has this error:

virtualenv: error: unrecognized arguments: --wheel=bundle

this is the corresponding build code in dockerfile:

RUN apt update && \
    apt -y upgrade && \
    pip3 install --upgrade pip && \
    pip3 install poetry==1.8.5 && \
    poetry config virtualenvs.create false && \
    poetry lock && \
    poetry install --no-root

So are there any alternatives to solve this problem?

Environment

Provide at least:

  • OS: Ubuntu 22.04

  • pip list of the host python where virtualenv is installed:

    
    Package                 Version
    ----------------------- --------
    anaconda-anon-usage     0.4.4
    archspec                0.2.3
    blinker                 1.9.0
    boltons                 23.0.0
    Brotli                  1.0.9
    certifi                 2024.7.4
    cffi                    1.16.0
    charset-normalizer      3.3.2
    click                   8.1.8
    conda                   24.7.1
    conda-content-trust     0.2.0
    conda-libmamba-solver   24.7.0
    conda-package-handling  2.3.0
    conda_package_streaming 0.10.0
    cryptography            42.0.5
    distro                  1.9.0
    Flask                   3.1.0
    frozendict              2.4.2
    idna                    3.7
    itsdangerous            2.2.0
    Jinja2                  3.1.5
    jsonpatch               1.33
    jsonpointer             2.1
    libmambapy              1.5.8
    MarkupSafe              3.0.2
    menuinst                2.1.2
    packaging               24.1
    pip                     24.2
    platformdirs            3.10.0
    pluggy                  1.0.0
    pycosat                 0.6.6
    pycparser               2.21
    PySocks                 1.7.1
    requests                2.32.3
    ruamel.yaml             0.17.21
    setuptools              72.1.0
    tqdm                    4.66.4
    truststore              0.8.0
    urllib3                 2.2.2
    Werkzeug                3.1.3
    wheel                   0.43.0
    zstandard               0.22.0
    
    
    

Output of the virtual environment creation

Make sure to run the creation with -vvv --with-traceback:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions