Poetry installation failed

Hello,
I faced an issue while running a regular update where poetry installation failed.

PS E:\Ynput\ayon-launcher> tools/manage.ps1 create-env

                    ▄██▄
         ▄███▄ ▀██▄ ▀██▀ ▄██▀ ▄██▀▀▀██▄    ▀███▄      █▄
        ▄▄ ▀██▄  ▀██▄  ▄██▀ ██▀      ▀██▄  ▄  ▀██▄    ███
       ▄██▀  ██▄   ▀ ▄▄ ▀  ██         ▄██  ███  ▀██▄  ███
      ▄██▀    ▀██▄   ██    ▀██▄      ▄██▀  ███    ▀██ ▀█▀
     ▄██▀      ▀██▄  ▀█      ▀██▄▄▄▄██▀    █▀      ▀██▄

     ·  · - =[ by YNPUT ]:[ http://ayon.ynput.io ]= - ·  ·

>>> Detecting host Python ... OK [ 3.9 ]
>>> Reading Poetry ... NOT FOUND
>>> Installing Poetry ...
Retrieving Poetry metadata

# Welcome to Poetry!

This will download and install the latest version of Poetry,
a dependency and package manager for Python.

It will add the `poetry` command to Poetry's bin directory, located at:

E:\Ynput\ayon-launcher\.poetry\bin

You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.

Installing Poetry (1.8.1)
Installing Poetry (1.8.1): Creating environment
Installing Poetry (1.8.1): An error occurred. Removing partial environment.
Poetry installation failed.
See E:\Ynput\ayon-launcher\poetry-installer-error-lskc0x4w.log for error logs.
INSTALLED
>>> Installing virtual environment from lock.
&: E:\Ynput\ayon-launcher\tools\manage.ps1:278:7
Line |
 278 |      & "$env:POETRY_HOME\bin\poetry" config virtualenvs.in-project tru …
     |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The term 'E:\Ynput\ayon-launcher\.poetry\bin\poetry' is not recognized as a name of a cmdlet, function, script file, or   
     | executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try    
     | again.
&: E:\Ynput\ayon-launcher\tools\manage.ps1:279:7
Line |
 279 |      & "$env:POETRY_HOME\bin\poetry" config virtualenvs.create true -- …
     |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The term 'E:\Ynput\ayon-launcher\.poetry\bin\poetry' is not recognized as a name of a cmdlet, function, script file, or   
     | executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try    
     | again.
&: E:\Ynput\ayon-launcher\tools\manage.ps1:280:7
Line |
 280 |      & "$env:POETRY_HOME\bin\poetry" install --no-root $poetry_verbosi …
     |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The term 'E:\Ynput\ayon-launcher\.poetry\bin\poetry' is not recognized as a name of a cmdlet, function, script file, or   
     | executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try    
     | again.
!!! Poetry command failed.

Log from E:\Ynput\ayon-launcher\poetry-installer-error-lskc0x4w.log

Unable to create process using 'C:\Users\<my-user-name>\.pyenv\pyenv-win\versions\3.9.13\python.exe -Im ensurepip --upgrade --default-pip'


Traceback:

  File "<stdin>", line 923, in main
  File "<stdin>", line 562, in run

Problem Explanation:
My user name includes a spaces in it and it looks like poetry is not capable of handling the space in username…

Solution:
Move or Re-install my python excitable to a different location that doesn’t include my user name.
e.g. I moved my .pyenv to C:\

1 Like