ynput / ynput/ayon-clockify

ftrack imports

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: bug
Dominant language
Python
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Is there an existing issue for this?
  • I have searched the existing issues and added correct labels.
Description

Current Behavior

there are some import errors when using the latest ftrack 1.3.3 and clockify 0.2.1 addons together

Steps To Reproduce:

No response

Additional context:
Version

Version of the server, ayon-core and the addon that's affected

What platform were you running when you found the bug?

Windows
Linux - Rocky9
Linux - Ubuntu
MacOS

You can also provide any additional information relevant to the issue.

Relevant log output:
... running: C:\Users\murph\AppData\Local\Ynput\AYON\addons\ftrack_1.3.3\ayon_ftrack/scripts/sub_user_server.py 10021
WARNING:modules_from_path:Failed to load path: "C:\Users\murph\AppData\Local\Ynput\AYON\addons\clockify_0.2.1\ayon_clockify\ftrack\user\action_clockify_sync_local.py"
Traceback (most recent call last):
  File "C:\Users\murph\AppData\Local\Ynput\AYON\addons\ftrack_1.3.3\ayon_ftrack\common\python_module_tools.py", line 82, in modules_from_path
    module = import_filepath(full_path, mod_name)
  File "C:\Users\murph\AppData\Local\Ynput\AYON\addons\ftrack_1.3.3\ayon_ftrack\common\python_module_tools.py", line 31, 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\murph\AppData\Local\Ynput\AYON\addons\clockify_0.2.1\ayon_clockify\ftrack\user\action_clockify_sync_local.py", line 3, in <module>
    from ayon_ftrack.lib import BaseAction, statics_icon
ImportError: cannot import name 'BaseAction' from 'ayon_ftrack.lib' (C:\Users\murph\AppData\Local\Ynput\AYON\addons\ftrack_1.3.3\ayon_ftrack\lib\__init__.py)
WARNING:ayon_ftrack.common.ftrack_server:Filepath load crashed C:\Users\murph\AppData\Local\Ynput\AYON\addons\clockify_0.2.1\ayon_clockify\ftrack\user\action_clockify_sync_local.py.
Traceback (most recent call last):
  File "C:\Users\murph\AppData\Local\Ynput\AYON\addons\ftrack_1.3.3\ayon_ftrack\common\python_module_tools.py", line 82, in modules_from_path
    module = import_filepath(full_path, mod_name)
  File "C:\Users\murph\AppData\Local\Ynput\AYON\addons\ftrack_1.3.3\ayon_ftrack\common\python_module_tools.py", line 31, 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\murph\AppData\Local\Ynput\AYON\addons\clockify_0.2.1\ayon_clockify\ftrack\user\action_clockify_sync_local.py", line 3, in <module>
    from ayon_ftrack.lib import BaseAction, statics_icon
ImportError: cannot import name 'BaseAction' from 'ayon_ftrack.lib' (C:\Users\murph\AppData\Local\Ynput\AYON\addons\ftrack_1.3.3\ayon_ftrack\lib\__init__.py)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with ayon_clockify/ftrack/user/action_clockify_sync_local.py and inspect its import of BaseAction and statics_icon from ayon_ftrack.lib. Compare that import with ayon_ftrack/common/python_module_tools.py and the ftrack 1.3.3 addon shown in the log. Done means the Clockify action loads without the reported ImportError when both addon versions are installed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.