Ayon Dependency Tool fails to build for bundle

I wanted to try and get up and running with Ayon on top of ayon-core to test the Zbrush PR, but have been unable to get Ayon dependencies build.

  1. Updated my server to latest dev image
  2. Git cloned latest ayon-core, ayon-launcher and ayon-dependencies-tool
  3. Built Ayon launcher + uploaded it to server + set it in the production bundle
  4. Updated all addons from addon market
  5. Created the tools poetry .venv for dependencies tool.

I run:

./start.ps1 create -b 2024.01.0-full-2024-03-05-04

The log:

E:\dev\ayon-dependencies-tool> powershell ./start.ps1 create -b 2024.01.0-full-2024-03-05-04
Setting AYON_SERVER_URL with http://localhost:5000
Setting AYON_API_KEY with veryinsecurapikey
>>> Creating processing directory C:\Users\User\AppData\Local\Temp\ayon_dep-packagev3p34jmr for 2024.01.0-full-2024-03-05-04
Preparing new venv in C:\Users\User\AppData\Local\Temp\ayon_dep-packagev3p34jmr
Failed to use pyenv. Using system python, this may cause that package will be incompatible package with installer.
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:\Users\User\AppData\Local\Temp\ayon_dep-packagev3p34jmr\.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): Installing Poetry
Installing Poetry (1.3.2): Creating script
Installing Poetry (1.3.2): Done

Poetry (1.3.2) is installed now. Great!

To get started you need Poetry's bin directory (C:\Users\User\AppData\Local\Temp\ayon_dep-packagev3p34jmr\.poetry\bin) in your `PATH`
environment variable.

Alternatively, you can call Poetry explicitly with `C:\Users\User\AppData\Local\Temp\ayon_dep-packagev3p34jmr\.poetry\bin\poetry`.

You can test that everything is set up by executing:

`poetry --version`


Could not parse version constraint: None
Executing arguments was not successful: C:\Users\User\AppData\Local\Temp\ayon_dep-packagev3p34jmr\.poetry\bin\poetry config virtualenvs.create false --local
>>> Cleaning up processing directory C:\Users\User\AppData\Local\Temp\ayon_dep-packagev3p34jmr
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\User\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "E:\dev\ayon-dependencies-tool\dependencies\__main__.py", line 9, in <module>
    main()
  File "E:\dev\ayon-dependencies-tool\dependencies\cli.py", line 79, in main
    main_cli()
  File "E:\dev\ayon-dependencies-tool\.venv\lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "E:\dev\ayon-dependencies-tool\.venv\lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "E:\dev\ayon-dependencies-tool\.venv\lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "E:\dev\ayon-dependencies-tool\.venv\lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "E:\dev\ayon-dependencies-tool\.venv\lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "E:\dev\ayon-dependencies-tool\dependencies\cli.py", line 45, in create
    create_package(
  File "E:\dev\ayon-dependencies-tool\dependencies\core.py", line 1228, in create_package
    return _create_package(
  File "E:\dev\ayon-dependencies-tool\dependencies\core.py", line 1167, in _create_package
    ) = prepare_new_venv(
  File "E:\dev\ayon-dependencies-tool\dependencies\core.py", line 587, in prepare_new_venv
    run_subprocess(
  File "E:\dev\ayon-dependencies-tool\dependencies\utils.py", line 94, in run_subprocess
    raise RuntimeError(error_msg)
RuntimeError: Executing arguments was not successful: C:\Users\User\AppData\Local\Temp\ayon_dep-packagev3p34jmr\.poetry\bin\poetry config virtualenvs.create false --local

Also see Discord Thread: AYON: Unable to build dependency package

Thanks to @iLLiCiT I received a “dependency package” ayon_2402141620_windows.

However, using just latest Addon Market addon versions I keep getting a “Dependency packages is missing or incompatible with available addons.” and I’m not sure how to detect ‘what is incompatible’ about it as well:

ayon_incompatible_dependency_package

Which leaves me wondering - how to best proceed from here.

I thought about giving it a go (from a user perspective)…
This is a fresh ayon-dependencies-tool and I’ve python 3.9.10 on my machine.
I hope this feedback helps.


Firstly, I ran into a different issue.
This line get a weird python path.

>>> import shutil
>>> shutil.which("python3")  # Not correct
'C:\\Users\\<my-user-name>\\AppData\\Local\\Microsoft\\WindowsApps\\python3.EXE'
>>> shutil.which("python")   # Correct
'C:\\Program Files\\Python39\\python.EXE'
>>>   

Maybe, it was an old broken installation.
Anyway, I bypassed this issue by using shutil.which("python") directly.


Secondly, I have no idea why it works.

Storing output to C:\Users\MUSTAF~1\AppData\Local\Temp\ayon_dep_runtime03ovf0qv.json
Zipping new venv to C:\Users\MUSTAF~1\AppData\Local\Temp\ayon_dep-packagew4qm212_\ayon_2403061102_windows.zip
Updating in AYON-CORE-0.2.0-2024-02-10 with ayon_2403061102_windows.zip
>>> Cleaning up processing directory C:\Users\MUSTAF~1\AppData\Local\Temp\ayon_dep-packagew4qm212_


It didn’t work with my other bundle Dev-2023-12-20-01

Current Python version (3.9.10) is not allowed by the project (3.9.6).
Please change python executable via the "env use" command.
Executing arguments was not successful: C:\Users\MUSTAF~1\AppData\Local\Temp\ayon_dep-packagei8_j9niz\.poetry\bin\poetry install --no-root --ansi

Thanks for testing - I did get a bit further along with some help of @iLLiCiT

In particular these comments he made helped me:

  • Addons on market are still based on having openpype addon. Whereas from ayon-core 0.2.x you should not use openpype addon
  • The OpenPype addon should be disabled, set to NONE in the Bundle.

This means that currently it’d be required to create the ayon core + addon packages manually from the ayon-core repository to be ayon core compatible completely and disable the legacy OpenPype addon.

Once I did that I was able to run the launcher with the dependency package that @iLLiCiT provided me. However, with those changes I’m unfortunately still unable to generate a dependency package myself.

Based on recommendations by @iLLiCiT I’ve re-installed the Ayon Dependencies Tool by starting off with pyenv to manage the Python version to use. I installed: pyenv-win.

Then did pyenv install 3.9.13 and pyenv local 3.9.13 in the Ayon Dependencies Tool folder and reinstalled through that version and running the bundle build:

.\start.ps1 install
.\start.ps1 create -b 2024.01.0-full-2024-01-17-02-roydev

But I hit the same error:

Could not parse version constraint: None

EDIT: Logging the .toml file that ayon dependencies tool generates I can see:

[tool.poetry.dependencies]
acre = "None"
...
appdirs = "None"

By the way, I’d recommend adding -v flag to the poetry runs of the tool + always print(toml.dumps(full_toml_data)) if an error occurred so that we can identify the culprit from the los better by default.

These seemed to come from the Launcher build that I did since it was found in its .json file as well. Where the values were:

    "acre": "file:///E:/dev/ayon-launcher/.venv/src/acre",
    "appdirs": "file:///E:/dev/ayon-launcher/.venv/src/appdirs",

But should have been git+<url> paths.

This issue seems to have to do with changes in pip.
See: python - pip freeze creates some weird path instead of the package version - Stack Overflow
My pip version was 22.0.4 but after upgrading to 24.0 it behaved the same.

Replacing pip freeze with pip list --format=freeze does fix the issue - however @iLLiCiT told me he’d set up a PR with a fix. :+1:

1 Like

With this Ayon-Launcher PR implemented the invalid values being written into the launcher installer .json is now fixed.

So, after that:

  • update ayon-launcher repo
  • reinstall the env
  • rebuild the launcher
  • recreate launcher installer
  • reupload to launcher installer to ayon server
  • restart ayon server

Then retry to create the dependencies via Ayon Dependencies Tool, in my case for my dev bundle set to that launcher and application addons.

.\start.ps1 create -b 2024.01.0-full-2024-01-17-02-roydev
1 Like

Hello,

I was having similar issues. I downloaded the 1.0.1-dev.1 of the dependencies tool.

PS C:\ayon\ayon-dependencies-tool-develop_1> .\start.ps1 install
>>> 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-dependencies-tool-develop_1\.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): Installing Poetry
Installing Poetry (1.3.2): Creating script
Installing Poetry (1.3.2): Done

Poetry (1.3.2) is installed now. Great!

To get started you need Poetry's bin directory (C:\ayon\ayon-dependencies-tool-develop_1\.poetry\bin) in your `PATH`
environment variable.

Alternatively, you can call Poetry explicitly with `C:\ayon\ayon-dependencies-tool-develop_1\.poetry\bin\poetry`.

You can test that everything is set up by executing:

`poetry --version`

>>>  Poetry config ...
Creating virtualenv ayon-dependencies-tool in C:\ayon\ayon-dependencies-tool-develop_1\.venv
Using virtualenv: C:\ayon\ayon-dependencies-tool-develop_1\.venv
Installing dependencies from lock file

Finding the necessary packages for the current system

Package operations: 59 installs, 0 updates, 0 removals

  • Installing attrs (23.2.0)
  • Installing rpds-py (0.17.1)
  • Installing certifi (2023.11.17)
  • Installing charset-normalizer (3.3.2)
  • Installing idna (3.6)
  • Installing more-itertools (10.2.0)
  • Installing referencing (0.32.1)
  • Installing tomli (2.0.1)
  • Installing urllib3 (1.26.18)
  • Installing zipp (3.17.0)
  • Installing colorama (0.4.6): Installing...
  • Installing crashtest (0.4.1): Installing...
  • Installing distlib (0.3.8): Pending...
Connection pool is full, discarding connection: pypi.org. Connection pool size: 10
  • Installing filelock (3.13.1): Installing...
Connection pool is full, discarding connection: pypi.org. Connection pool size: 10
  • Installing distlib (0.3.8): Installing...
  • Installing filelock (3.13.1): Installing...
  • Installing importlib-metadata (7.0.1): Installing...
  • Installing colorama (0.4.6)
  • Installing crashtest (0.4.1)
  • Installing distlib (0.3.8)
  • Installing filelock (3.13.1)
  • Installing importlib-metadata (7.0.1)
  • Installing jaraco-classes (3.3.0)
  • Installing jsonschema-specifications (2023.12.1)
  • Installing lockfile (0.12.2)
  • Installing msgpack (1.0.7)
  • Installing packaging (23.2)
  • Installing platformdirs (3.11.0)
  • Installing poetry-core (1.6.1)
  • Installing ptyprocess (0.7.0)
  • Installing pyproject-hooks (1.0.0)
  • Installing pywin32-ctypes (0.2.2)
  • Installing rapidfuzz (3.6.1)
  • Installing requests (2.31.0)
  • Installing six (1.16.0)
  • Installing webencodings (0.5.1)
  • Installing appdirs (1.4.4): Installing...
  • Installing atomicwrites (1.4.1): Installing...
  • Installing build (0.10.0): Installing...
  • Installing cachecontrol (0.12.14): Pending...
Connection pool is full, discarding connection: pypi.org. Connection pool size: 10
Connection pool is full, discarding connection: pypi.org. Connection pool size: 10
  • Installing cachecontrol (0.12.14): Installing...
  • Installing cleo (2.1.0): Pending...
  • Installing dulwich (0.21.7): Pending...
  • Installing html5lib (1.1): Pending...
  • Installing appdirs (1.4.4)
  • Installing atomicwrites (1.4.1)
  • Installing build (0.10.0)
  • Installing cachecontrol (0.12.14)
  • Installing cleo (2.1.0)
  • Installing dulwich (0.21.7)
  • Installing html5lib (1.1)
  • Installing installer (0.7.0)
  • Installing jsonschema (4.21.0)
  • Installing keyring (23.13.1)
  • Installing pexpect (4.9.0)
  • Installing pkginfo (1.9.6)
  • Installing pluggy (0.13.1)
  • Installing poetry-plugin-export (1.5.0)
  • Installing py (1.11.0)
  • Installing requests-toolbelt (1.0.0)
  • Installing shellingham (1.5.4)
  • Installing tomlkit (0.12.3)
  • Installing trove-classifiers (2024.1.8)
  • Installing typing-extensions (4.9.0)
  • Installing unidecode (1.3.8)
  • Installing virtualenv (20.25.0)
  • Installing wcwidth (0.2.13)
  • Installing ayon-python-api (1.0.0)
  • Installing click (8.1.7)
  • Installing nxtools (1.6)
  • Installing poetry (1.5.1)
  • Installing pydantic (1.10.13)
  • Installing pytest (5.4.3)
  • Installing toml (0.10.2)
PS C:\ayon\ayon-dependencies-tool-develop_1> .\start.ps1 create -b SilverSpoon-2024-04-16-03
Setting AYON_API_KEY with
Setting AYON_SERVER_URL with 
>>> Creating processing directory C:\Users\peter\AppData\Local\Temp\ayon_dep-packageszj7wdwq for SilverSpoon-2024-04-16-03
Preparing new venv in C:\Users\peter\AppData\Local\Temp\ayon_dep-packageszj7wdwq
Installing Python 3.9.6 with pyenv
:: [Info] ::  Mirror: https://www.python.org/ftp/python
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:\Users\peter\AppData\Local\Temp\ayon_dep-packageszj7wdwq\.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): Installing Poetry
Installing Poetry (1.3.2): Creating script
Installing Poetry (1.3.2): Done

Poetry (1.3.2) is installed now. Great!

To get started you need Poetry's bin directory (C:\Users\peter\AppData\Local\Temp\ayon_dep-packageszj7wdwq\.poetry\bin) in your `PATH`
environment variable.

Alternatively, you can call Poetry explicitly with `C:\Users\peter\AppData\Local\Temp\ayon_dep-packageszj7wdwq\.poetry\bin\poetry`.

You can test that everything is set up by executing:

`poetry --version`

Updating dependencies
Resolving dependencies... Downloading https://files.pythonhosted.org/packages/68/ce/598fa78c2f475dfd7d24fc66e608ab2579d0Resolving dependencies... Downloading https://files.pythonhosted.org/packages/75/f9/f1c10e223c7b56a38109a3f2eb4e7fe9a757Resolving dependencies... (43.0s)

Writing lock file

Package operations: 112 installs, 1 update, 0 removals

  • Installing ansicon (1.89.0)
  • Installing certifi (2023.7.22)
  • Installing charset-normalizer (3.1.0)
  • Installing idna (3.4)
  • Installing markupsafe (2.0.1)
  • Installing mdurl (0.1.2)
  • Installing six (1.16.0)
  • Installing urllib3 (1.26.16)
  • Installing atomicwrites (1.4.1)
  • Installing attrs (23.1.0)
  • Installing babel (2.12.1)
  • Installing colorama (0.4.6)
  • Installing distlib (0.3.6)
  • Installing docutils (0.19)
  • Installing filelock (3.12.2)
  • Installing frozenlist (1.3.3)
  • Installing imagesize (1.4.1)
  • Installing importlib-metadata (6.7.0)
  • Installing iniconfig (2.0.0)
  • Installing blessed (1.20.0): Installing...
  • Installing cffi (1.15.1): Installing...
  • Installing cfgv (3.3.1): Installing...
  • Installing clique (1.6.1): Installing...
  • Installing coverage (7.2.7): Installing...
  • Installing cx-logging (3.1.0): Installing...
  • Installing aiosignal (1.3.1)
  • Installing appdirs (1.4.4 8734277)
  • Installing arrow (0.17.0)
  • Installing astroid (2.15.5)
  • Installing async-timeout (4.0.2)
  • Installing blessed (1.20.0)
  • Installing cffi (1.15.1)
  • Installing cfgv (3.3.1)
  • Installing clique (1.6.1)
  • Installing coverage (7.2.7)
  • Installing cx-logging (3.1.0)
  • Installing dill (0.3.6)
  • Installing future (0.18.3)
  • Installing gitdb (4.0.10)
  • Installing identify (2.5.24)
  • Installing isort (5.12.0)
  • Installing lief (0.13.2)
  • Installing mccabe (0.7.0)
  • Installing mdit-py-plugins (0.3.5)
  • Installing nodeenv (1.8.0)
  • Installing parso (0.8.3)
  • Installing prefixed (0.7.0)
  • Installing pycodestyle (2.10.0)
  • Installing pyflakes (3.0.1)
  • Installing pyparsing (2.4.7)
  • Installing pytest (6.2.5)
  • Installing pywin32-ctypes (0.2.1)
  • Installing pyyaml (6.0)
  • Installing qtpy (2.3.1)
  • Installing shiboken2 (5.15.2)
  • Installing sphinx (5.3.0)
  • Installing tomlkit (0.11.8)
  • Installing uc-micro-py (1.0.2)
  • Installing unidecode (1.2.0)
  • Installing virtualenv (20.23.1)
  • Installing websocket-client (0.59.0)
  • Installing yarl (1.9.2)
  • Installing acre (1.0.0 5f55105)
  • Installing aiohttp (3.8.4)
  • Installing autopep8 (2.0.2)
  • Installing ayon-python-api (1.0.1)
  • Installing coolname (2.2.0)
  • Installing cryptography (39.0.0)
  • Installing cx-freeze (6.12.0)
  • Installing dnspython (2.3.0)
  • Installing enlighten (1.11.2)
  • Installing flake8 (6.0.0)
  • Installing ftrack-python-api (2.5.4)
  • Installing gitpython (3.1.31)
  • Installing jedi (0.13.3)
  • Installing jsonschema (2.6.0)
  • Installing keyring (22.4.0)
  • Installing linkify-it-py (2.0.2)
  • Installing myst-parser (0.18.1)
  • Installing pre-commit (3.3.3)
  • Installing pyblish-base (1.8.11)
  • Installing pydocstyle (6.3.0)
  • Installing pylint (2.17.4)
  • Installing pyside2 (5.15.2): Failed

  RuntimeError

  Hash for pyside2 (5.15.2) from archive PySide2-5.15.2-5.15.2-cp35.cp36.cp37.cp38.cp39-none-win_amd64.whl not found in known hashes (was: sha256:1b8f08d0e43530682c8d9e8af5d4bcf5b767c10b51bdc143b3424125c6bc32e5)

  at ~\AppData\Local\Temp\ayon_dep-packageszj7wdwq\.poetry\venv\lib\site-packages\poetry\installation\executor.py:673 in _validate_archive_hash
      669│         archive_hash: str = "sha256:" + get_file_hash(archive)
      670│         known_hashes = {f["hash"] for f in package.files}
      671│
      672│         if archive_hash not in known_hashes:
    → 673│             raise RuntimeError(
      674│                 f"Hash for {package} from archive {archive.name} not found in"
      675│                 f" known hashes (was: {archive_hash})"
      676│             )
      677│

  • Installing pytest-cov (4.1.0)
  • Installing pytest-print (0.3.1)
  • Installing pywin32 (301)
  • Installing qtawesome (0.7.3)
  • Installing semver (2.13.0)
  • Installing speedcopy (2.1.5)
Executing arguments was not successful: C:\Users\peter\AppData\Local\Temp\ayon_dep-packageszj7wdwq\.poetry\bin\poetry install --no-root --ansi
>>> Cleaning up processing directory C:\Users\peter\AppData\Local\Temp\ayon_dep-packageszj7wdwq
Traceback (most recent call last):
  File "C:\Users\peter\.pyenv\pyenv-win\versions\3.9.13\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\peter\.pyenv\pyenv-win\versions\3.9.13\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\ayon\ayon-dependencies-tool-develop_1\dependencies\__main__.py", line 9, in <module>
    main()
  File "C:\ayon\ayon-dependencies-tool-develop_1\dependencies\cli.py", line 79, in main
    main_cli()
  File "C:\ayon\ayon-dependencies-tool-develop_1\.venv\lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "C:\ayon\ayon-dependencies-tool-develop_1\.venv\lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "C:\ayon\ayon-dependencies-tool-develop_1\.venv\lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\ayon\ayon-dependencies-tool-develop_1\.venv\lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\ayon\ayon-dependencies-tool-develop_1\.venv\lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "C:\ayon\ayon-dependencies-tool-develop_1\dependencies\cli.py", line 45, in create
    create_package(
  File "C:\ayon\ayon-dependencies-tool-develop_1\dependencies\core.py", line 1228, in create_package
    return _create_package(
  File "C:\ayon\ayon-dependencies-tool-develop_1\dependencies\core.py", line 1167, in _create_package
    ) = prepare_new_venv(
  File "C:\ayon\ayon-dependencies-tool-develop_1\dependencies\core.py", line 594, in prepare_new_venv
    return_code = run_subprocess(
  File "C:\ayon\ayon-dependencies-tool-develop_1\dependencies\utils.py", line 94, in run_subprocess
    raise RuntimeError(error_msg)
RuntimeError: Executing arguments was not successful: C:\Users\peter\AppData\Local\Temp\ayon_dep-packageszj7wdwq\.poetry\bin\poetry install --no-root --ansi
PS C:\ayon\ayon-dependencies-tool-develop_1>

I was able to solve this by changing the poetry version in the .ps1 file to 1.8.2 and in the core.py file to 1.8.2

1 Like

That’s an interesting error. Thanks for sharing.
Sounds like it could be related to this.

I was having a related issue with building the dependencies:

Creating virtualenv ayon-dependencies-tool in D:\work\Git\ayon-dependencies-tool\.venv

  Stack trace:

  19  .poetry\venv\lib\site-packages\cleo\application.py:327 in run
        exit_code = self._run(io)

  18  .poetry\venv\lib\site-packages\poetry\console\application.py:190 in _run
        exit_code: int = super()._run(io)

  17  .poetry\venv\lib\site-packages\cleo\application.py:431 in _run
        exit_code = self._run_command(command, io)

  16  .poetry\venv\lib\site-packages\cleo\application.py:473 in _run_command
        raise error

  15  .poetry\venv\lib\site-packages\cleo\application.py:454 in _run_command
        self._event_dispatcher.dispatch(command_event, COMMAND)

  14  .poetry\venv\lib\site-packages\cleo\events\event_dispatcher.py:26 in dispatch
        self._do_dispatch(listeners, event_name, event)

  13  .poetry\venv\lib\site-packages\cleo\events\event_dispatcher.py:85 in _do_dispatch
        listener(event, event_name, self)

  12  .poetry\venv\lib\site-packages\poetry\console\application.py:299 in configure_env
        env = env_manager.create_venv()

  11  .poetry\venv\lib\site-packages\poetry\utils\env.py:1048 in create_venv
        self.build_venv(

  10  .poetry\venv\lib\site-packages\poetry\utils\env.py:1127 in build_venv
        cli_result = virtualenv.cli_run(args)

   9  .poetry\venv\lib\site-packages\virtualenv\run\__init__.py:30 in cli_run                                                                                                                                of_session.run()                                                                                                                                                                                                                                                                                                                                                                                     8  .poetry\venv\lib\site-packages\virtualenv\run\session.py:42 in run                                                                                                                                     self._create()

   7  .poetry\venv\lib\site-packages\virtualenv\run\session.py:49 in _create
        self.creator.run()

   6  .poetry\venv\lib\site-packages\virtualenv\create\creator.py:153 in run
        self.create()

   5  .poetry\venv\lib\site-packages\virtualenv\create\via_global_ref\builtin\via_global_self_do.py:71 in create
        dirs = self.ensure_directories()

   4  .poetry\venv\lib\site-packages\virtualenv\create\via_global_ref\builtin\via_global_self_do.py:96 in ensure_directories
        return {self.dest, self.bin_dir, self.script_dir, self.stdlib} | set(self.libs)

   3  .poetry\venv\lib\site-packages\virtualenv\create\describe.py:44 in stdlib
        self._stdlib = Path(self.interpreter.sysconfig_path("stdlib", config_var=self._config_vars))

   2  .poetry\venv\lib\site-packages\virtualenv\create\describe.py:56 in _config_vars
        self._conf_vars = self._calc_config_vars(self.dest)

   1  .poetry\venv\lib\site-packages\virtualenv\create\describe.py:61 in _calc_config_vars
        return {k: (to if v.startswith(self.interpreter.prefix) else v) for k, v in sys_vars.items()}

  AttributeError

  'NoneType' object has no attribute 'startswith'

Setting the poetry version to 1.8.2 seems to have solved the issue, for anyone else who has this problem.

Apparently updating Poetry resolves some issues for the above users. Is there a reason we’re not updating Poetry versions in AYON @iLLiCiT ? We might save other users headache by updating it apparently?