Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Bug: ayon_console in debug mode fails to create the ayon menu in blender #6147

Open
2 tasks done
MaximeGrosmaire opened this issue Jan 18, 2024 · 0 comments
Open
2 tasks done
Labels
type: bug Something isn't working

Comments

@MaximeGrosmaire
Copy link

MaximeGrosmaire commented Jan 18, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

If I use the ayon_console in --debug mode and launch a task with blender, I do not get an ayon menu in blender.

Expected Behavior:

I would expect the ayon menu to be there.

Version

3.18.4

What platform you are running OpenPype on?

Windows

Steps To Reproduce:

  • launch ayon with ayon_console --debug
  • open ayon launcher
  • launch a task with blender 3.6

Are there any labels you wish to add?

  • I have added the relevant labels to the bug report.

Relevant log output:

- { ApplicationLaunchContext-blender/3-6 }: [  Discovery of launch hooks started.  ] 
  - { ApplicationLaunchContext-blender/3-6 }: [ Paths searched for launch hooks:
- C:\Users\MyUser\AppData\Local\Ynput\AYON\addons\openpype_3.18.4\openpype\hooks
- C:\Users\MyUser\AppData\Local\Ynput\AYON\addons\sitesync_1.0.3\ayon_sitesync\launch_hooks
- C:\Users\MyUser\AppData\Local\Ynput\AYON\addons\slack_1.0.1\ayon_slack\launch_hooks
- C:\Users\MyUser\AppData\Local\Ynput\AYON\addons\openpype_3.18.4\openpype\hosts\blender\hooks ] 
WARNING:openpype.lib.python_module_tools:Failed to load path: "C:\Users\MyUser\AppData\Local\Ynput\AYON\addons\sitesync_1.0.3\ayon_sitesync\launch_hooks\pre_copy_last_published_workfile.py"
Traceback (most recent call last):
  File "C:\Users\MyUser\AppData\Local\Ynput\AYON\addons\openpype_3.18.4\openpype\lib\python_module_tools.py", line 92, in modules_from_path
    module = import_filepath(full_path, mod_name)
  File "C:\Users\MyUser\AppData\Local\Ynput\AYON\addons\openpype_3.18.4\openpype\lib\python_module_tools.py", line 38, in import_filepath
    module_loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "C:\Users\MyUser\AppData\Local\Ynput\AYON\addons\sitesync_1.0.3\ayon_sitesync\launch_hooks\pre_copy_last_published_workfile.py", line 11, in <module>
    from openpype.modules.sync_server.sync_server import (
  File "C:\Program Files\Ynput\AYON 1.0.0\vendor\python\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
    return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'openpype.modules.sync_server'
  - { ApplicationLaunchContext-blender/3-6 }: [  Skipped hook invalid for current launch context: LaunchWithTerminal  ] 
  - { ApplicationLaunchContext-blender/3-6 }: [  Skipped hook invalid for current launch context: LaunchNewConsoleApps  ] 
  - { ApplicationLaunchContext-blender/3-6 }: [  Skipped hook invalid for current launch context: NonPythonHostHook  ] 
  - { ApplicationLaunchContext-blender/3-6 }: [  Found 9 prelaunch and 0 postlaunch hooks.  ] 
  - { ApplicationLaunchContext-blender/3-6 }: [  Executing prelaunch hook: GlobalHostDataHook  ] 
  - { GlobalHostDataHook }: [  Project name is set to "MyProject"  ] 
  - { GlobalHostDataHook }: [  Adding Python version specific paths to PYTHONPATH  ] 
  - { GlobalHostDataHook }: [  Will add environments for apps and tools: blender/3-6  ] 
  - { GlobalHostDataHook }: [ Context environments set:
{
    "AVALON_PROJECT": "MyProject",
    "AVALON_APP_NAME": "blender/3-6",
    "AVALON_ASSET": "/MyTask",
    "AVALON_TASK": "MyTask"
} ] 
  - { GlobalHostDataHook }: [  Last workfile should be opened on start.  ] 
  - { GlobalHostDataHook }: [  Setting last workfile path: D:\tuser\projects\MyProject\MyTask\work\MyTask\PrtO_CatchAlligator_MyTask_v001.blend  ] 
  - { ApplicationLaunchContext-blender/3-6 }: [  Executing prelaunch hook: CopyTemplateWorkfile  ] 
>>> [  Last workfile does not exist.  ] 
  - { CopyTemplateWorkfile }: [  Started filtering of custom template paths.  ] 
>>> [  Custom templates are not filled. Skipping template copy.  ] 
>>> [  Registered custom templates didn't match current context.  ] 
  - { ApplicationLaunchContext-blender/3-6 }: [  Executing prelaunch hook: OCIOEnvHook  ] 
>>> [  Colorspace management is disabled globally.  ] 
  - { OCIOEnvHook }: [  OCIO not set or enabled  ] 
  - { ApplicationLaunchContext-blender/3-6 }: [  Executing prelaunch hook: AddLastWorkfileToLaunchArgs  ] 
>>> [  Current context does not have any workfile yet.  ] 
  - { ApplicationLaunchContext-blender/3-6 }: [  Executing prelaunch hook: CreateWorkdirExtraFolders  ] 
  - { ApplicationLaunchContext-blender/3-6 }: [  Executing prelaunch hook: AddPythonScriptToLaunchArgs  ] 
  - { ApplicationLaunchContext-blender/3-6 }: [  Executing prelaunch hook: BlenderConsoleWindows  ] 
  - { ApplicationLaunchContext-blender/3-6 }: [  Executing prelaunch hook: PrePython2Support  ] 
  - { ApplicationLaunchContext-blender/3-6 }: [  Executing prelaunch hook: InstallPySideToBlender  ] 
  - { InstallPySideToBlender }: [  Blender has already installed PySide2.  ] 
  - { ApplicationLaunchContext-blender/3-6 }: [  All prelaunch hook executed. Starting new process.  ] 
>>> [  Launching "blender/3-6" with args (2): ['C:\\Program Files\\Blender Foundation\\Blender 3.6\\blender.exe', '--python-use-system-env']  ]

Additional context:

I've only checked using the regular ayon.exe vs ayon_console.exe with --debug so the debug argument might not change anything.

I haven't checked if disabling site_sync resolves the issue.

[cuID:OP-7984]

@MaximeGrosmaire MaximeGrosmaire added the type: bug Something isn't working label Jan 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant