fqabba Posted September 8, 2023 Share Posted September 8, 2023 Hey guys, I am using OneNote Alfred Workflow (Link) Im getting this error message, any suggestion how to fix? Error in workflow 'OneNote Navigator' 'NoneType' object has no attribute ' getitem Thanks Link to comment
Stephen_C Posted September 9, 2023 Share Posted September 9, 2023 Open the debugger, run the workflow then copy and paste the output of the debugger here—which will help others analayse for you what is the problem. Stephen Link to comment
fqabba Posted September 10, 2023 Author Share Posted September 10, 2023 On 9/9/2023 at 1:09 AM, Stephen_C said: Open the debugger, run the workflow then copy and paste the output of the debugger here—which will help others analayse for you what is the problem. Stephen Thank you, here is the message I got: [18:11:40.457] OneNote Navigator[Script Filter] Queuing argument '(null)' [18:11:40.649] OneNote Navigator[Script Filter] Script with argv '(null)' finished [18:11:40.654] ERROR: OneNote Navigator[Script Filter] Code 1: . 18:11:40 workflow.py:2061 DEBUG ---------- OneNote Navigator (2.0.0) ---------- 18:11:40 workflow.py:1468 DEBUG reading settings from /Users/fk/Library/Application Support/Alfred/Workflow Data/com.kfunderburg.oneNoteNav/settings.json 18:11:40 workflow.py:2338 INFO checking for update ... 18:11:40 background.py:230 DEBUG [__workflow_update_check] command cached: /Users/fk/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.kfunderburg.oneNoteNav/__workflow_update_check.argcache 18:11:40 background.py:234 DEBUG [__workflow_update_check] passing job to background runner: [u'python', '/Users/fk/My Drive/02 Personal/Archive/Alfred Archive/Alfred.alfredpreferences/workflows/user.workflow.103D17FF-7599-447E-A8D1-84D5F5407861/workflow/background.pyc', u'__workflow_update_check'] . 18:11:40 workflow.py:2061 DEBUG ---------- OneNote Navigator (2.0.0) ---------- 18:11:40 background.py:240 DEBUG [__workflow_update_check] background job started 18:11:40 getNotebooks.py:302 DEBUG Started workflow 18:11:40 getNotebooks.py:303 DEBUG os.getenv('q'): 18:11:40 getNotebooks.py:264 DEBUG [u'-a'] 18:11:40 workflow.py:1695 DEBUG loading cached data: /Users/fk/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.kfunderburg.oneNoteNav/__workflow_latest_version.cpickle 18:11:40 workflow.py:2080 ERROR 'NoneType' object has no attribute '__getitem__' Traceback (most recent call last): File "/Users/fk/My Drive/02 Personal/Archive/Alfred Archive/Alfred.alfredpreferences/workflows/user.workflow.103D17FF-7599-447E-A8D1-84D5F5407861/workflow/workflow.py", line 2073, in run func(self) File "getNotebooks.py", line 313, in main path_map = wf.cached_data('path_map', update_path_map, max_age=300) File "/Users/fk/My Drive/02 Personal/Archive/Alfred Archive/Alfred.alfredpreferences/workflows/user.workflow.103D17FF-7599-447E-A8D1-84D5F5407861/workflow/workflow3.py", line 659, in cached_data return super(Workflow3, self).cached_data(name, data_func, max_age) File "/Users/fk/My Drive/02 Personal/Archive/Alfred Archive/Alfred.alfredpreferences/workflows/user.workflow.103D17FF-7599-447E-A8D1-84D5F5407861/workflow/workflow.py", line 1701, in cached_data data = data_func() File "getNotebooks.py", line 136, in update_path_map ni.set_path(get_page_path(ni)) File "getNotebooks.py", line 69, in get_page_path parent_path = get_parent_path(ni) File "getNotebooks.py", line 90, in get_parent_path parent_row = NotebookItem(get_parent_row(item.ParentGOID)) File "/Users/fk/My Drive/02 Personal/Archive/Alfred Archive/Alfred.alfredpreferences/workflows/user.workflow.103D17FF-7599-447E-A8D1-84D5F5407861/notebook_item.py", line 17, in __init__ self.Type = row[str('Type')] TypeError: 'NoneType' object has no attribute '__getitem__' 18:11:40 workflow.py:2082 INFO for assistance, see: https://github.com/kevin-funderburg/alfred-microsoft-onenote-navigator 18:11:40 workflow.py:2103 DEBUG ---------- finished in 0.096s ---------- [18:11:40.656] OneNote Navigator[Script Filter] { "items": [ { "valid": false, "subtitle": "'NoneType' object has no attribute '__getitem__'", "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns" }, "title": "Error in workflow 'OneNote Navigator'" } ] } Link to comment
Stephen_C Posted September 11, 2023 Share Posted September 11, 2023 If, as indicated, you refer to https://github.com/kevin-funderburg/alfred-microsoft-onenote-navigator/issues and check Issues it would appear that: the workflow has not been updated since December 2020; the workflow uses Python 2 rather than the current Python 3 release included with macOS; others have a similar issue to you. Did you try the "temporary solution” referred to in this post on GitHub? Stephen Link to comment
fqabba Posted September 13, 2023 Author Share Posted September 13, 2023 On 9/11/2023 at 1:05 AM, Stephen_C said: If, as indicated, you refer to https://github.com/kevin-funderburg/alfred-microsoft-onenote-navigator/issues and check Issues it would appear that: the workflow has not been updated since December 2020; the workflow uses Python 2 rather than the current Python 3 release included with macOS; others have a similar issue to you. Did you try the "temporary solution” referred to in this post on GitHub? Stephen Thank you, I tried all but the problem still exists, any idea? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now