Ayon Launcher : Errors during creation (Windows 10)

Hi,

I am working on creating the Ayon Launcher for testing the pipeline based on the guide at https://github.com/ynput/ayon-launcher/blob/5b3c65a32d4c2257b309501b87bd71f17340a4b2/docs/build_guides/windows.md

Development Environment
Clean Windows 10 VM
Python 3.9.13, Git, Inno Setup, CMake & Visual Studio

I am able to clone the repo but when I try to execute the next command I am getting the following errors. Has anyone else also encountered something like this ? If yes are there any solutions / guides available ?

From Powershell

PS C:\ayon\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:

C:\ayon\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.3.2)
Installing Poetry (1.3.2): Creating environment
Installing Poetry (1.3.2): An error occurred. Removing partial environment.
Poetry installation failed.
See C:\ayon\ayon-launcher\poetry-installer-error-kgsk93_m.log for error logs.
INSTALLED

Installing virtual environment from lock.
& : The term ‘C:\ayon\ayon-launcher.poetry\bin\poetry’ is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At C:\ayon\ayon-launcher\tools\manage.ps1:274 char:7

  • & "$env:POETRY_HOME\bin\poetry" config virtualenvs.in-project tru ...
    
  •   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (C:\ayon\ayon-launcher.poetry\bin\poetry:String) [], CommandNotFoundExc
      eption
    • FullyQualifiedErrorId : CommandNotFoundException

& : The term ‘C:\ayon\ayon-launcher.poetry\bin\poetry’ is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At C:\ayon\ayon-launcher\tools\manage.ps1:275 char:7

  • & "$env:POETRY_HOME\bin\poetry" config virtualenvs.create true -- ...
    
  •   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (C:\ayon\ayon-launcher.poetry\bin\poetry:String) [], CommandNotFoundExc
      eption
    • FullyQualifiedErrorId : CommandNotFoundException

& : The term ‘C:\ayon\ayon-launcher.poetry\bin\poetry’ is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At C:\ayon\ayon-launcher\tools\manage.ps1:276 char:7

  • & "$env:POETRY_HOME\bin\poetry" install --no-root $poetry_verbosi ...
    
  •   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (C:\ayon\ayon-launcher.poetry\bin\poetry:String) [], CommandNotFoundExc
      eption
    • FullyQualifiedErrorId : CommandNotFoundException

!!! Poetry command failed.

Hello, I thought about giving it a go with a fresh ayon-launcher clone.
I couldn’t replicate your issue.

Here are my exact steps in a windows powershell.

git clone https://github.com/ynput/ayon-launcher.git
cd ayon-launcher
tools/manage.ps1 create-env
tools/manage.ps1 install-runtime-dependencies
tools/manage.ps1 build
tools/manage.ps1 make-installer

Do deleting .venv and .poetry and re-running tools/manage.ps1 create-env solve your issue ?

Hi mustafa_jafar

After a lot of attempts, I was able to start “fresh” and the error disappeared. I guess it was something to do with my development environment.
Thank you for your help

Best Regards,
Ashish

1 Like