ynput / ynput/ayon-clockify

Clockify not working and showing python error

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

Nobody has claimed this yet.

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

I want to start timer for clockify from my launcher app but it shows error in the console.

Steps To Reproduce:

No response

Additional context:
Version

0.2.1 Clockify addon version

What platform were you running when you found the bug?

Windows

Relevant log output:
▄██▄
         ▄███▄ ▀██▄ ▀██▀ ▄██▀ ▄██▀▀▀██▄    ▀███▄      █▄
        ▄▄ ▀██▄  ▀██▄  ▄██▀ ██▀      ▀██▄  ▄  ▀██▄    ███
       ▄██▀  ██▄   ▀ ▄▄ ▀  ██         ▄██  ███  ▀██▄  ███
      ▄██▀    ▀██▄   ██    ▀██▄      ▄██▀  ███    ▀██ ▀█▀
     ▄██▀      ▀██▄  ▀█      ▀██▄▄▄▄██▀    █▀      ▀██▄

     ·  · - =[ by YNPUT ]:[ http://ayon.ynput.io ]= - ·  ·

Module `blessed` failed on import or terminal creation. AYON terminal won't use colors.
>>> [ Starting WebServer server ] 
------------------+-------+--------------+---------+---------------+---------+------------+-----
Addon name        |Version|Initialization|Tray init|Connect modules|Tray menu|Addons start|Total
------------------+-------+--------------+---------+---------------+---------+------------+-----
aftereffects      |0.2.4  |0.001         |N/A      |0.000          |N/A      |N/A         |0.001
applications      |1.0.2  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
ayon_ocio         |1.1.1  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
ayon_third_party  |1.1.1  |0.000         |0.000    |0.000          |0.000    |0.036       |0.036
blender           |0.2.5  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
celaction         |0.2.0  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
cinema4d          |0.1.1  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
clockify          |0.2.1  |0.000         |1.076    |0.000          |0.002    |0.000       |1.078
deadline          |0.3.2  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
equalizer         |0.1.0  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
flame             |0.2.4  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
fusion            |0.2.1  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
hiero             |0.2.3  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
houdini           |0.3.15 |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
launcher_tool     |1.0.0  |0.000         |0.056    |0.000          |0.000    |0.000       |0.056
loader_tool       |1.0.0  |0.000         |0.045    |0.000          |0.000    |0.000       |0.045
max               |0.2.4  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
maya              |0.3.1  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
motionbuilder     |0.1.1  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
nuke              |0.2.5  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
openrv            |1.0.1  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
photoshop         |0.2.3  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
python_interpreter|1.0.0  |0.000         |0.010    |0.000          |0.000    |0.000       |0.010
resolve           |0.3.0  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
sitesync          |1.2.1  |0.000         |0.494    |0.000          |0.000    |0.001       |0.495
slack             |1.1.2  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
substancepainter  |0.2.2  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
timers_manager    |0.2.0  |0.000         |0.019    |0.000          |0.008    |0.000       |0.027
traypublisher     |0.2.7  |0.000         |0.000    |0.000          |0.000    |0.000       |0.000
tvpaint           |0.2.4  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
unreal            |0.2.4  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
zbrush            |0.3.0  |0.000         |N/A      |0.000          |N/A      |N/A         |0.000
------------------+-------+--------------+---------+---------------+---------+------------+-----
Total             |(32)   |0.001         |1.699    |0.000          |0.010    |0.037       |1.747

*** WRN: >>> { ActionsModel }: [ Action trigger failed. ] 
==============================
argument of type 'NoneType' is not iterable
==============================
Traceback (most recent call last):
  File "C:\Users\uname\AppData\Local\Ynput\AYON\addons\core_1.0.3\ayon_core\tools\launcher\models\actions.py", line 405, in trigger_action
    action.process(selection)
  File "C:\Users\uname\AppData\Local\Ynput\AYON\addons\clockify_0.2.1\ayon_clockify\launcher_actions\ClockifyStart.py", line 37, in process
    project_id = self.clockify_api.get_project_id(
  File "C:\Users\uname\AppData\Local\Ynput\AYON\addons\clockify_0.2.1\ayon_clockify\clockify_api.py", line 206, in get_project_id
    if project_name not in all_projects:
TypeError: argument of type 'NoneType' is not iterable

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/launcher_actions/ClockifyStart.py and the get_project_id implementation in ayon_clockify/clockify_api.py, then reproduce the launcher action on Windows using the reported Clockify addon version. Trace why all_projects is None and verify that starting the timer completes without the reported TypeError.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.