If you have problems using dev bundles (ayon-launcher: python start.py --use-dev
) with server 1.0.0-rc1+202312131444
, use ayon_python_api 1.0.0rc3
You may need to create a local wheel for 1.0.0rc3
since ayon_python_api 1.0.0rc1
is the latest on Index of /wheels
my problem with dev bundles was the following:
ayon-launcher was working before server 1.0.0-rc.1+202312131444
python start.py --debug --use-dev
with the new server,
I was able to track the problem down to the code in ayon_api/server_api.py
backward compatibility code for AYON server < 0.3.0
if-then logic treated AYON server 1.0.0 and <0.3.0 the same
if major == 0 and minor >= 3:
url = "settings"
else:
I was getting the following error:
ayon-launcher>python start.py --debug --use-dev
Traceback (most recent call last):
File "C:\Test\dev\AyonOpenPype\ayon-launcher\.venv\lib\site-packages\ayon_api\server_api.py", line 190, in raise_for_status
self._response.raise_for_status()
File "C:\Test\dev\AyonOpenPype\ayon-launcher\.venv\lib\site-packages\requests\models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://onchain.ayon.cloud/api/settings/addons?variant=dev-Studio-Name-2023-11-16&site=stylish-neon-beagle
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Test\dev\AyonOpenPype\ayon-launcher\start.py", line 856, in <module>
main()
File "c:\Test\dev\AyonOpenPype\ayon-launcher\start.py", line 846, in main
boot()
File "c:\Test\dev\AyonOpenPype\ayon-launcher\start.py", line 646, in boot
_start_distribution()
File "c:\Test\dev\AyonOpenPype\ayon-launcher\start.py", line 585, in _start_distribution
_run_disk_mapping(bundle_name)
File "c:\Test\dev\AyonOpenPype\ayon-launcher\start.py", line 493, in _run_disk_mapping
settings = get_addons_studio_settings(bundle_name)
File "C:\Test\dev\AyonOpenPype\ayon-launcher\.venv\lib\site-packages\ayon_api\_api.py", line 736, in get_addons_studio_settings
return con.get_addons_studio_settings(*args, **kwargs)
File "C:\Test\dev\AyonOpenPype\ayon-launcher\.venv\lib\site-packages\ayon_api\server_api.py", line 3190, in get_addons_studio_settings
output = self.get_bundle_settings(
File "C:\Test\dev\AyonOpenPype\ayon-launcher\.venv\lib\site-packages\ayon_api\server_api.py", line 3155, in get_bundle_settings
response.raise_for_status()
File "C:\Test\dev\AyonOpenPype\ayon-launcher\.venv\lib\site-packages\ayon_api\server_api.py", line 194, in raise_for_status
raise HTTPRequestError(message, exc.response)
ayon_api.exceptions.HTTPRequestError: 400 Client Error: Bad Request for url: https://onchain.ayon.cloud/api/settings/addons?variant=dev-Studio-Name-2023-11-16&site=stylish-neon-beagle