Open mrlegohead0x45 opened 1 year ago
Poetry shouldn't require a Git executable on Windows since we use Dulwich now. Can you please post the output of poetry config
?
powershell> poetry config --list
cache-dir = "C:\\Users\\mrlegohead\\AppData\\Local\\pypoetry\\Cache"
experimental.new-installer = true
experimental.system-git-client = false
installer.max-workers = null
installer.no-binary = null
installer.parallel = true
repositories.pypi_test.url = "https://test.pypi.org/legacy/"
virtualenvs.create = true
virtualenvs.in-project = null
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.no-setuptools = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}\\virtualenvs" # C:\Users\mrlegohead\AppData\Local\pypoetry\Cache\virtualenvs
virtualenvs.prefer-active-python = false
virtualenvs.prompt = "{project_name}-py{python_version}"
I would suggest you uninstall Poetry all together and reinstall it. My guess would be that something went wrong with 1.1.13
-> 1.3.1
migration and files got mixed up or something
@neersighted @Secrus I am hitting the same issue using a fresh install of poetry 1.4.0. I am on Windows using Powershell. I installed git and python using scoop. Running 'poetry new' I get the same stack trace as above.
check https://github.com/python-poetry/poetry/issues/5420
It seems that if the git.exe
is in the sub-directory of the current folder will have this issue.
A temporary workaround is create a new folder and run poetry new
in it.
-vvv
option) and have included the output below.Issue
Trying to create a new poetry project on windows 10 fails saying it hasn't found git. I recently updated poetry from 1.1.13 to 1.3.1 by running
poetry self update
and copying~\AppData\Roaming\pypoetry\venv\Scripts\poetry.exe
to~\AppData\Roaming\Python\Scripts\poetry.exe
as suggested in #5377. That worked. Then trying to create a new project viapoetry new
, poetry complains that it hasn't found a valid git executable, when git is inPATH
, looking at the source code it trys to run%WINDIR%\\System32\\where.exe git
, running this command incmd
finds git successfully. Maybe poetry requires a newer version of git than 2.34 which I have, seeing that the latest is 2.39?