-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No module named 'cPickle' #33
Comments
Hi, The error is initiated from adb-alfred/scripts/list_devices.py Lines 235 to 236 in 0b971a0
As far as I know it is caused by workflow python 3 migration and the support library hasn't fully support background tasks. I saw similiar errors Is that the same for you that the other features can be used, but you got this annoying error prints? A quick fix would be replacing the above code block into
|
Thanks, that got rid of the error. I guess im just missing something, because i cant do most of the things, like install a apk or take a screenshot. When i select a device, nothing happens. I want really badly to get this working. Screenshot.2022-05-20.at.08.39.52.mp4 |
Can you attach the logs? |
|
It looks the workflow stopped when it runs the I don't know why it ends without any exception logs If you would like to help debugging it, I would suggust to replace the entire show_device_options.py file with the following code block import sys
from workflow import Workflow3
if __name__ == '__main__':
wf = Workflow3()
log = wf.logger
wf.add_item(title="Show apps list",
uid="list_app",
arg="list_app",
valid=True)
sys.exit(wf.send_feedback()) This will leave If this works for you, then it's something in that file/action breaks the workflow If this doesn't work, then I think it would be related to the workflow library or Alfred itself. |
Unfortunately im no developer and dont really know what to do. I tried replacing all the code in that file but it did not work. Is there anything else i can do to help you debug this? |
Can you try this version? adb-v1.13.2-x.alfredworkflow.zip I took the advise from https://www.alfredforum.com/topic/18352-script-filter-action-not-executed/?do=findComment&comment=95363 It switched to another workflow library. I haven‘t got the chance to test it throughly. |
Hi! I tried this version without success. Screenshot.2022-05-21.at.10.09.20.mp4
169644746-bd110a55-4b25-4e01-a7a0-2c07d4e09ab5.mp4
If there is anything else i can do, please let me know! |
In video clip 1, after you selected the device, alfred disappeared. So the issue remains the same after I switched to new library. I will keep looking into it. The command "adb install" in video clip 2 is not supported in this workflow. It should behave like that. The keyword |
Maybe you can delete the workflow, and delete |
Hi! thank you so much for this! It still doesn't work though.... Screenshot.2022-05-29.at.18.18.14.mp4
|
Yeah, you were right. However, the same thing as before happens. I did delete the cache and workflow. Screenshot.2022-05-30.at.08.45.36.mp4 |
i have the same issue any solution to this? |
using this version worked for me. |
Can you add some logs? There are several issues discussed in this thread. |
Hey!
I really really want to use this workflow as it seems pretty awesome. However, i keep getting that error.
16:17:51 workflow.py:2094 DEBUG ---------- adb (1.13.2) ---------- 16:17:51 workflow.py:1484 DEBUG reading settings from /Users/dannysilva/Library/Application Support/Alfred/Workflow Data/xyz.jienan.adb/settings.json 16:17:51 workflow.py:2395 INFO checking for update ... 16:17:51 background.py:233 DEBUG [__workflow_update_check] command cached: /Users/dannysilva/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/xyz.jienan.adb/__workflow_update_check.argcache 16:17:51 background.py:237 DEBUG [__workflow_update_check] passing job to background runner: ['/Applications/Xcode.app/Contents/Developer/usr/bin/python3', '-m', 'workflow.background', '__workflow_update_check'] Traceback (most recent call last): File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 185, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/runpy.py", line 111, in _get_module_details __import__(pkg_name) File "/Users/dannysilva/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1/workflow/__init__.py", line 16, in <module> from .workflow import Workflow, manager File "/Users/dannysilva/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1/workflow/workflow.py", line 25, in <module> import cPickle ModuleNotFoundError: No module named 'cPickle' 16:17:51 background.py:241 ERROR [__workflow_update_check] background runner failed with 1
Don't quite know what to do .
Im using the latest version of this workflow (1.13.2) and the latest version of Alfred 4.6.5 [1299] with OSX 12.3.1
Can you guys help me out?
Thanks a bunch!
The text was updated successfully, but these errors were encountered: