Open icn2you opened 1 year ago
Based on a Stack Overflow post, I attempted to install workflow
as follows:
pip3 install workflow
Now I'm getting the following debugging output:
[19:33:24.580] Logging Started...
[19:33:29.793] Philips Hue Controller[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C3E481E9-532C-43DF-B3D9-5ABC4924A852%3E024CCF2C-F278-4295-B1AF-CCF8771F79AB)] Queuing argument ''
[19:33:30.418] Philips Hue Controller[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C3E481E9-532C-43DF-B3D9-5ABC4924A852%3E024CCF2C-F278-4295-B1AF-CCF8771F79AB)] Script with argv '(null)' finished
[19:33:30.423] ERROR: Philips Hue Controller[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.C3E481E9-532C-43DF-B3D9-5ABC4924A852%3E024CCF2C-F278-4295-B1AF-CCF8771F79AB)] Code 1: /Users/icn2you/Library/Mobile Documents/com~apple~CloudDocs/Backups/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3E481E9-532C-43DF-B3D9-5ABC4924A852/libs/requests/__init__.py:109: RequestsDependencyWarning: urllib3 (2.0.3) or chardet (None)/charset_normalizer (2.1.1) doesn't match a supported version!
warnings.warn(
Traceback (most recent call last):
File "/Users/icn2you/Library/Mobile Documents/com~apple~CloudDocs/Backups/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3E481E9-532C-43DF-B3D9-5ABC4924A852/filters.py", line 11, in <module>
import utils
File "/Users/icn2you/Library/Mobile Documents/com~apple~CloudDocs/Backups/Alfred/Alfred.alfredpreferences/workflows/user.workflow.C3E481E9-532C-43DF-B3D9-5ABC4924A852/utils.py", line 17, in <module>
from workflow import Workflow
ImportError: cannot import name 'Workflow' from 'workflow' (/usr/local/lib/python3.11/site-packages/workflow/__init__.py)
I'm not a python programmer, but I do know JavaScript. I'd appreciate any guidance anyone can offer!
Hey @icn2you sorry I'm not super active about maintaining this plugin anymore.
In the first error it looks like the cache data wasn't the format it was expecting.
Can you try running this command: hue workflow:reset
You don't need to hit enter, just but typing that it should delete the Workflow’s settings, cache and saved data.
Hi, @benknight!
Thanks for following up with me; I really appreciate it.
So I ran the specified command in Alfred, and now the workflow quickly disappears when I type hue
. Following is the log from the debugger:
[23:08:01.230] Logging Started...
[23:08:12.048] Philips Hue Controller[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.1EF84550-BCAD-4DBA-B9E9-43DA0D5AC7EA%3E024CCF2C-F278-4295-B1AF-CCF8771F79AB)] Queuing argument ''
[23:08:12.677] Philips Hue Controller[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.1EF84550-BCAD-4DBA-B9E9-43DA0D5AC7EA%3E024CCF2C-F278-4295-B1AF-CCF8771F79AB)] Script with argv '(null)' finished
[23:08:12.682] ERROR: Philips Hue Controller[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.1EF84550-BCAD-4DBA-B9E9-43DA0D5AC7EA%3E024CCF2C-F278-4295-B1AF-CCF8771F79AB)] Code 1: /Users/icn2you/Library/Mobile Documents/com~apple~CloudDocs/Backups/Alfred/Alfred.alfredpreferences/workflows/user.workflow.1EF84550-BCAD-4DBA-B9E9-43DA0D5AC7EA/libs/requests/__init__.py:109: RequestsDependencyWarning: urllib3 (2.0.3) or chardet (None)/charset_normalizer (2.1.1) doesn't match a supported version!
warnings.warn(
Traceback (most recent call last):
File "/Users/icn2you/Library/Mobile Documents/com~apple~CloudDocs/Backups/Alfred/Alfred.alfredpreferences/workflows/user.workflow.1EF84550-BCAD-4DBA-B9E9-43DA0D5AC7EA/filters.py", line 11, in <module>
import utils
File "/Users/icn2you/Library/Mobile Documents/com~apple~CloudDocs/Backups/Alfred/Alfred.alfredpreferences/workflows/user.workflow.1EF84550-BCAD-4DBA-B9E9-43DA0D5AC7EA/utils.py", line 17, in <module>
from workflow import Workflow
ImportError: cannot import name 'Workflow' from 'workflow' (/usr/local/lib/python3.11/site-packages/workflow/__init__.py)
Maybe I shouldn't have installed the workflow
package as I previously did (pip3 install workflow
)?
Was delighted to see this Alfred Workflow was updated. Thank you! I missed it.
After installing, I'm getting the above-referenced error. The detail on the error is as follows:
list indices must be integers or slices, not str
What am I doing wrong?
Also: