usds / justice40-tool

A tool to identify disadvantaged communities due to environmental, socioeconomic and health burdens
https://screeningtool.geoplatform.gov/
Creative Commons Zero v1.0 Universal
132 stars 42 forks source link

Quickstart issue and Docker fails to install poetry #2217

Open CPSalerno opened 1 year ago

CPSalerno commented 1 year ago

When following quickstart instructions, I get the following error during Docker's installation of poetry

=> [13/14] RUN pip install "poetry==1.1.12"                               4.6s 
 => ERROR [14/14] RUN poetry config virtualenvs.create false   && poetry   1.7s 
------                                                                          
 > [14/14] RUN poetry config virtualenvs.create false   && poetry config virtualenvs.in-project false   && poetry install --no-dev --no-interaction --no-ansi:
#0 0.827 Skipping virtualenv creation, as specified in config file.
#0 1.616 
#0 1.616   RuntimeError
#0 1.616 
#0 1.616   The lock file is not compatible with the current version of Poetry.
#0 1.616   Upgrade Poetry to be able to read the lock file or, alternatively, regenerate the lock file with the `poetry lock` command.
#0 1.616 
#0 1.616   at /usr/local/lib/python3.8/dist-packages/poetry/packages/locker.py:481 in _get_lock_data
#0 1.626       477│                 "Upgrade Poetry to ensure the lock file is read properly or, alternatively, "
#0 1.626       478│                 "regenerate the lock file with the `poetry lock` command."
#0 1.626       479│             )
#0 1.626       480│         elif not lock_version_allowed:
#0 1.626     → 481│             raise RuntimeError(
#0 1.626       482│                 "The lock file is not compatible with the current version of Poetry.\n"
#0 1.627       483│                 "Upgrade Poetry to be able to read the lock file or, alternatively, "
#0 1.627       484│                 "regenerate the lock file with the `poetry lock` command."
#0 1.627       485│             )
------
failed to solve: process "/bin/sh -c poetry config virtualenvs.create false   && poetry config virtualenvs.in-project false   && poetry install --no-dev --no-interaction --no-ansi" did not complete successfully: exit code: 1

To Reproduce Follow installation instructions as presented.

Expected behavior Docker to properly install container

Desktop (please complete the following information): MacOS 13.3.1 (22E261) Apple M2 chip

Any suggestions to work around this?