Issues with Poetry Python Package in WSL
Budget: $15 – $25 CAD
I installed poetry in my WSL but I keep getting errors every time I build my docker. I upgraded my poetry and I refreshed my poetry.lock file. Yet I get the error below.... Lets have a live call to fix this issue on zoom
$>sudo docker-compose -f docker-compose-dev.yaml build
> [6/9] RUN poetry install :
#10 1.143 Skipping virtualenv creation, as specified in config file.
#10 2.562
#10 2.562 RuntimeError
#10 2.562
#10 2.563 The lock file is not compatible with the current version of Poetry.
#10 2.563 Upgrade Poetry to be able to read the lock file or, alternatively, regenerate the lock file with the `poetry lock` command.
#10 2.563
#10 2.564 at /usr/local/lib/python3.8/site-packages/poetry/packages/locker.py:482 in _get_lock_data
#10 2.605 478│ "Upgrade Poetry to ensure the lock file is read properly or, alternatively, "
#10 2.606 479│ "regenerate the lock file with the `poetry lock` command."
#10 2.606 480│ )
#10 2.606 481│ elif not lock_version_allowed:
#10 2.607 → 482│ raise RuntimeError(
#10 2.607 483│ "The lock file is not compatible with the current version of Poetry.\n"
#10 2.607 484│ "Upgrade Poetry to be able to read the lock file or, alternatively, "
#10 2.607 485│ "regenerate the lock file with the `poetry lock` command."
#10 2.608 486│ )
------
$>sudo docker-compose -f docker-compose-dev.yaml build
> [6/9] RUN poetry install :
#10 1.143 Skipping virtualenv creation, as specified in config file.
#10 2.562
#10 2.562 RuntimeError
#10 2.562
#10 2.563 The lock file is not compatible with the current version of Poetry.
#10 2.563 Upgrade Poetry to be able to read the lock file or, alternatively, regenerate the lock file with the `poetry lock` command.
#10 2.563
#10 2.564 at /usr/local/lib/python3.8/site-packages/poetry/packages/locker.py:482 in _get_lock_data
#10 2.605 478│ "Upgrade Poetry to ensure the lock file is read properly or, alternatively, "
#10 2.606 479│ "regenerate the lock file with the `poetry lock` command."
#10 2.606 480│ )
#10 2.606 481│ elif not lock_version_allowed:
#10 2.607 → 482│ raise RuntimeError(
#10 2.607 483│ "The lock file is not compatible with the current version of Poetry.\n"
#10 2.607 484│ "Upgrade Poetry to be able to read the lock file or, alternatively, "
#10 2.607 485│ "regenerate the lock file with the `poetry lock` command."
#10 2.608 486│ )
------