ynput / ayon-aquarium

AYON addon for Aquarium integration
https://ayon.ynput.io/features?addons=aquarium
Apache License 2.0
0 stars 1 forks source link

client code refactor openpype calls #11

Open MustafaJafar opened 2 months ago

MustafaJafar commented 2 months ago

Is there an existing issue for this?

Current Behavior:

Client code doesn't work because of openpype calls.

Traceback (most recent call last):
  File "E:\Ynput\ayon-core\client\ayon_core\addon\base.py", line 363, in _load_ayon_addons
    mod = __import__(basename, fromlist=("",))
  File "E:\Ynput\ayon-aquarium\client\ayon_aquarium\__init__.py", line 2, in <module>
    from .addon import AquariumAddon
  File "E:\Ynput\ayon-aquarium\client\ayon_aquarium\addon.py", line 5, in <module>
    from openpype.modules import (
ModuleNotFoundERROR: No module named 'openpype'

Expected Behavior:

openpype calls should be refactored to ayon calls.

Version

1.0.0

What platform you are running on?

Windows

Steps To Reproduce:

  1. install the addon
  2. add it to your bundle
  3. run ayon launcher

Are there any labels you wish to add?

Relevant log output:

No response

Additional context:

No response

ymoriaud commented 1 month ago

Thanks. Do you have any example or document on the correct import that need to be used ?

BigRoy commented 1 month ago

It would be from ayon_core most likely.

Some of this may help: