You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run poetry install, it completes successfully. However, attempting to run poetry lock, poetry add "fastapi-cache2[redis]@git+https://github.com/long2ice/fastapi-cache.git#8f0920d", or poetry update <any-other-dependency> results in failures. The error message indicates a CalledProcessError, mentioning that a subprocess command returned a non-zero exit status:
CalledProcessError
Command '['/path/to/.venv/bin/python', '-']' returned non-zero exit status 1.
at /path/to/python3.11/subprocess.py:569 in run
Further details from the error suggest an EnvCommandError, indicating an issue with executing a command in the environment:
EnvCommandError
Command ['/path/to/.venv/bin/python', '-'] errored with the following return code 1
Output:
Traceback (most recent call last):
...
raise BuildException(f'Source {srcdir} does not appear to be a Python project: no pyproject.toml or setup.py')
build.BuildException: Source /path/to/cache/pypoetry/virtualenvs/project-py3.11/src/fastapi-cache does not appear to be a Python project: no pyproject.toml or setup.py
I attempted to replicate this in a fresh poetry project using the poetry add "fastapi-cache2[redis]@git+https://github.com/long2ice/fastapi-cache.git#8f0920d" command, but encountered a different issue:
Failed to clone https://github.com/long2ice/fastapi-cache.git at '8f0920d', verify ref exists on remote.
I've confirmed that the specific commit 8f0920d indeed contains a pyproject.toml file.
Cloning the project and checking out this commit works fine outside of Poetry, which suggests there may be a bug within Poetry or the way it interacts with this specific git dependency.
The text was updated successfully, but these errors were encountered:
I'm working on a project and have specified a dependency in the
pyproject.toml
file as follows:When I run
poetry install
, it completes successfully. However, attempting to runpoetry lock
,poetry add "fastapi-cache2[redis]@git+https://github.com/long2ice/fastapi-cache.git#8f0920d"
, orpoetry update <any-other-dependency>
results in failures. The error message indicates aCalledProcessError
, mentioning that a subprocess command returned a non-zero exit status:Further details from the error suggest an
EnvCommandError
, indicating an issue with executing a command in the environment:I attempted to replicate this in a fresh poetry project using the
poetry add "fastapi-cache2[redis]@git+https://github.com/long2ice/fastapi-cache.git#8f0920d"
command, but encountered a different issue:I've confirmed that the specific commit
8f0920d
indeed contains apyproject.toml
file.Cloning the project and checking out this commit works fine outside of Poetry, which suggests there may be a bug within Poetry or the way it interacts with this specific git dependency.
The text was updated successfully, but these errors were encountered: