Skip to content
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

Open
shaga85 opened this issue May 19, 2022 · 16 comments
Open

No module named 'cPickle' #33

shaga85 opened this issue May 19, 2022 · 16 comments

Comments

@shaga85
Copy link

shaga85 commented May 19, 2022

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!

@zjn0505
Copy link
Owner

zjn0505 commented May 20, 2022

Hi, The error is initiated from

update_settings = {'github_slug': GITHUB_SLUG, 'version': VERSION}
wf = Workflow3(update_settings=update_settings)

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 ERROR [__workflow_update_check] background runner failed with 1 every time, but it doesn't interrupt the normal use of every other features.

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

wf = Workflow3()

@shaga85
Copy link
Author

shaga85 commented May 20, 2022

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.
Thanks for the patience!

Screenshot.2022-05-20.at.08.39.52.mp4

@zjn0505
Copy link
Owner

zjn0505 commented May 20, 2022

Can you attach the logs?

@shaga85
Copy link
Author

shaga85 commented May 20, 2022

[09:10:26.543] adb[[Debug](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E01B9D557-FFBF-462C-8CDA-68526EC37F97)] 01'RF8M91QN3KL', { aapt_path = "/Users/dannysilva/Library/Android/sdk/build-tools/30.0.2/aapt" adb_path = "/Users/dannysilva/Library/Android/sdk/platform-tools/adb" apksigner_path = "/Users/dannysilva/Library/Android/sdk/build-tools/30.0.2/apksigner" config_clipboard = "1" device_api = "30" emulator_path = "/Users/dannysilva/Library/Android/sdk/emulator" full_info = "Samsung - Sm-A307Fn - Android 11, API 30" his_tag = "RF8M91QN3KL" ip = "192.168.68.111/24" name = "Sm-A307Fn" ro.product.manufacturer = "Samsung" self_script_app_1 = "Open in F-Droid|Users/username/Documents/myscript/open_in_fdroid.py" self_script_app_2 = "Open in Exodus|self_scripts/open_in_exodus.py" self_script_app_3 = "" self_script_device_1 = "Toggle Airplane Mode|self_scripts/toggle_airplane_mode.py" self_script_device_2 = "List IME|self_scripts/list_ime.py" self_script_device_3 = "" serial = "RF8M91QN3KL" status = "device" } [09:10:26.544] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Passing output 'RF8M91QN3KL' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E061518C5-6CFD-42EF-AB68-D2B11F98889E) [09:10:26.545] adb[[Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E061518C5-6CFD-42EF-AB68-D2B11F98889E)] Processing complete [09:10:26.545] adb[[Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E061518C5-6CFD-42EF-AB68-D2B11F98889E)] Passing output 'RF8M91QN3KL' to [Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E758F2BFC-527A-4C8D-9D3B-000CCF42574B) [09:10:26.546] adb[[Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E758F2BFC-527A-4C8D-9D3B-000CCF42574B)] Processing complete [09:10:26.546] adb[[Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E758F2BFC-527A-4C8D-9D3B-000CCF42574B)] Passing output '' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E0B9F8E6D-345B-4028-A4A2-71BDA4D77E7E) [09:10:26.547] adb[[Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E0B9F8E6D-345B-4028-A4A2-71BDA4D77E7E)] Processing complete [09:10:26.554] adb[[Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E0B9F8E6D-345B-4028-A4A2-71BDA4D77E7E)] Passing output '' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3EADCC5FCA-C722-4D8E-92FD-78DBC974FB3C) [09:10:26.554] adb[[Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3EADCC5FCA-C722-4D8E-92FD-78DBC974FB3C)] Processing complete [09:10:26.555] adb[[Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3EADCC5FCA-C722-4D8E-92FD-78DBC974FB3C)] Passing output '' to [Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E86E0AE80-E859-4D5D-B15B-D8631B27C24D) [09:10:26.555] adb[[Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3EADCC5FCA-C722-4D8E-92FD-78DBC974FB3C)] Passing output '' to [Debug](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E7C648184-0666-4DFE-8F3B-CCF1963BE6D3) [09:10:26.556] adb[[Debug](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E7C648184-0666-4DFE-8F3B-CCF1963BE6D3)] 02'', { aapt_path = "/Users/dannysilva/Library/Android/sdk/build-tools/30.0.2/aapt" adb_path = "/Users/dannysilva/Library/Android/sdk/platform-tools/adb" apksigner_path = "/Users/dannysilva/Library/Android/sdk/build-tools/30.0.2/apksigner" config_clipboard = "1" device_api = "30" emulator_path = "/Users/dannysilva/Library/Android/sdk/emulator" full_info = "Samsung - Sm-A307Fn - Android 11, API 30" his_tag = "RF8M91QN3KL" ip = "192.168.68.111/24" name = "Sm-A307Fn" ro.product.manufacturer = "Samsung" self_script_app_1 = "Open in F-Droid|Users/username/Documents/myscript/open_in_fdroid.py" self_script_app_2 = "Open in Exodus|self_scripts/open_in_exodus.py" self_script_app_3 = "" self_script_device_1 = "Toggle Airplane Mode|self_scripts/toggle_airplane_mode.py" self_script_device_2 = "List IME|self_scripts/list_ime.py" self_script_device_3 = "" serial = "RF8M91QN3KL" status = "device" } [09:10:26.557] adb[[Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E758F2BFC-527A-4C8D-9D3B-000CCF42574B)] Passing output '' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E4E30CBC8-28EC-43CC-B9E1-D8B32DEB5A1A) [09:10:26.558] adb[[Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E758F2BFC-527A-4C8D-9D3B-000CCF42574B)] Passing output '' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E93E3005E-CB38-4064-B1CA-AF5491BB8CE5) [09:10:26.559] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Passing output 'RF8M91QN3KL' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3EEED72B13-239A-4F38-87D3-1D4BCB11AE23) [09:10:26.560] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Passing output 'RF8M91QN3KL' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E64394AEA-7969-4695-BA1E-DEADC6BFE619) [09:10:26.562] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Passing output 'RF8M91QN3KL' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E324F9367-F28B-4745-9733-1F9745496D67) [09:10:26.562] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Passing output 'RF8M91QN3KL' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3EA407AB1A-4308-4860-BECE-967104C1E851) [09:10:26.563] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Passing output 'RF8M91QN3KL' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3EDB07D86E-AFED-4393-8A6E-73DA686CD001) [09:10:26.571] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.0EEA15B4-F9EB-4477-9569-C03DD844B5B1%3E86E0AE80-E859-4D5D-B15B-D8631B27C24D)] Queuing argument ''

@zjn0505
Copy link
Owner

zjn0505 commented May 20, 2022

It looks the workflow stopped when it runs the show_device_options.py script filter action.

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 show_device_options.py do the minimum action of "show apps list" and bypass all the reset.

image

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.

@shaga85
Copy link
Author

shaga85 commented May 20, 2022

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?

@zjn0505
Copy link
Owner

zjn0505 commented May 21, 2022

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.

@shaga85
Copy link
Author

shaga85 commented May 21, 2022

Hi!

I tried this version without success.

Screenshot.2022-05-21.at.10.09.20.mp4

[10:09:28.274] adb[[Debug](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E01B9D557-FFBF-462C-8CDA-68526EC37F97)] 01'RF8M91QN3KL', { aapt_path = "/Users/dannysilva/Library/Android/sdk/build-tools/30.0.2/aapt" adb_path = "/Users/dannysilva/Library/Android/sdk/platform-tools/adb" apksigner_path = "" config_clipboard = "1" device_api = "30" emulator_path = "" full_info = "Samsung - Sm-A307Fn - Android 11, API 30" his_tag = "RF8M91QN3KL" ip = "192.168.68.111/24" name = "Sm-A307Fn" ro.product.manufacturer = "Samsung" self_script_app_1 = "Open in Google Play|self_scripts/open_in_google_play.py" self_script_app_2 = "Open in Exodus|self_scripts/open_in_exodus.py" self_script_app_3 = "" self_script_device_1 = "Toggle Airplane Mode|self_scripts/toggle_airplane_mode.py" self_script_device_2 = "List IME|self_scripts/list_ime.py" self_script_device_3 = "" serial = "RF8M91QN3KL" status = "device" } [10:09:28.275] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Passing output 'RF8M91QN3KL' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E061518C5-6CFD-42EF-AB68-D2B11F98889E) [10:09:28.276] adb[[Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E061518C5-6CFD-42EF-AB68-D2B11F98889E)] Processing complete [10:09:28.277] adb[[Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E061518C5-6CFD-42EF-AB68-D2B11F98889E)] Passing output 'RF8M91QN3KL' to [Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E758F2BFC-527A-4C8D-9D3B-000CCF42574B) [10:09:28.277] adb[[Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E758F2BFC-527A-4C8D-9D3B-000CCF42574B)] Processing complete [10:09:28.278] adb[[Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E758F2BFC-527A-4C8D-9D3B-000CCF42574B)] Passing output '' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E0B9F8E6D-345B-4028-A4A2-71BDA4D77E7E) [10:09:28.279] adb[[Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E0B9F8E6D-345B-4028-A4A2-71BDA4D77E7E)] Processing complete [10:09:28.279] adb[[Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E0B9F8E6D-345B-4028-A4A2-71BDA4D77E7E)] Passing output '' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3EADCC5FCA-C722-4D8E-92FD-78DBC974FB3C) [10:09:28.280] adb[[Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3EADCC5FCA-C722-4D8E-92FD-78DBC974FB3C)] Processing complete [10:09:28.281] adb[[Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3EADCC5FCA-C722-4D8E-92FD-78DBC974FB3C)] Passing output '' to [Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E86E0AE80-E859-4D5D-B15B-D8631B27C24D) [10:09:28.291] adb[[Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3EADCC5FCA-C722-4D8E-92FD-78DBC974FB3C)] Passing output '' to [Debug](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E7C648184-0666-4DFE-8F3B-CCF1963BE6D3) [10:09:28.293] adb[[Debug](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E7C648184-0666-4DFE-8F3B-CCF1963BE6D3)] 02'', { aapt_path = "/Users/dannysilva/Library/Android/sdk/build-tools/30.0.2/aapt" adb_path = "/Users/dannysilva/Library/Android/sdk/platform-tools/adb" apksigner_path = "" config_clipboard = "1" device_api = "30" emulator_path = "" full_info = "Samsung - Sm-A307Fn - Android 11, API 30" his_tag = "RF8M91QN3KL" ip = "192.168.68.111/24" name = "Sm-A307Fn" ro.product.manufacturer = "Samsung" self_script_app_1 = "Open in Google Play|self_scripts/open_in_google_play.py" self_script_app_2 = "Open in Exodus|self_scripts/open_in_exodus.py" self_script_app_3 = "" self_script_device_1 = "Toggle Airplane Mode|self_scripts/toggle_airplane_mode.py" self_script_device_2 = "List IME|self_scripts/list_ime.py" self_script_device_3 = "" serial = "RF8M91QN3KL" status = "device" } [10:09:28.295] adb[[Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E758F2BFC-527A-4C8D-9D3B-000CCF42574B)] Passing output '' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E4E30CBC8-28EC-43CC-B9E1-D8B32DEB5A1A) [10:09:28.296] adb[[Arg and Vars](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E758F2BFC-527A-4C8D-9D3B-000CCF42574B)] Passing output '' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E93E3005E-CB38-4064-B1CA-AF5491BB8CE5) [10:09:28.297] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Passing output 'RF8M91QN3KL' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3EEED72B13-239A-4F38-87D3-1D4BCB11AE23) [10:09:28.298] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Passing output 'RF8M91QN3KL' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E64394AEA-7969-4695-BA1E-DEADC6BFE619) [10:09:28.299] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Passing output 'RF8M91QN3KL' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E324F9367-F28B-4745-9733-1F9745496D67) [10:09:28.300] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Passing output 'RF8M91QN3KL' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3EA407AB1A-4308-4860-BECE-967104C1E851) [10:09:28.310] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Passing output 'RF8M91QN3KL' to [Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3EDB07D86E-AFED-4393-8A6E-73DA686CD001) [10:09:28.311] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E86E0AE80-E859-4D5D-B15B-D8631B27C24D)] Queuing argument ''

169644746-bd110a55-4b25-4e01-a7a0-2c07d4e09ab5.mp4

[10:12:42.218] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Queuing argument '' [10:12:42.600] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Script with argv '(null)' finished [10:12:42.601] STDERR: adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] 10:12:42 list_devices.py:238 DEBUG Hello from adb 10:12:42 workflow.py:1891 DEBUG loading cached data: /Users/dannysilva/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/xyz.jienan.adb/__workflow_latest_version.pickle . 10:12:42 workflow.py:2263 DEBUG ---------- adb (1.13.2) ---------- 10:12:42 workflow.py:1669 DEBUG reading settings from /Users/dannysilva/Library/Application Support/Alfred/Workflow Data/xyz.jienan.adb/settings.json 10:12:42 workflow.py:2660 DEBUG update check not due Execute command: /Users/dannysilva/Library/Android/sdk/platform-tools/adb devices -l | sed -n '1!p' | tr -s ' ' Result: RF8M91QN3KL device usb:337838080X product:a30seea model:SM_A307FN device:a30s transport_id:226 10:12:42 list_devices.py:89 DEBUG 1 adb device(s) found 10:12:42 workflow.py:1891 DEBUG loading cached data: /Users/dannysilva/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/xyz.jienan.adb/RF8M91QN3KL-property.pickle 10:12:42 list_devices.py:100 DEBUG RF8M91QN3KL Execute command: /Users/dannysilva/Library/Android/sdk/platform-tools/adb -s RF8M91QN3KL shell ip -f inet addr show wlan0 | grep inet | tr -s ' ' | awk '{print $2}' Result: 192.168.68.111/24 10:12:42 workflow.py:2584 DEBUG set last run version: 1.13.2 10:12:42 workflow.py:2306 DEBUG ---------- finished in 0.142s ---------- [10:12:42.605] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] { "items": [ { "title": "RF8M91QN3KL", "subtitle": "Samsung - Sm-A307Fn - Android 11, API 30", "valid": true, "arg": "RF8M91QN3KL", "autocomplete": "RF8M91QN3KL", "uid": "RF8M91QN3KL", "variables": { "status": "device", "full_info": "Samsung - Sm-A307Fn - Android 11, API 30", "device_api": "30", "ro.product.manufacturer": "Samsung", "serial": "RF8M91QN3KL", "name": "Sm-A307Fn", "ip": "192.168.68.111/24", "his_tag": "RF8M91QN3KL" }, "mods": { "cmd": { "subtitle": "192.168.68.111/24", "variables": { "status": "device", "full_info": "Samsung - Sm-A307Fn - Android 11, API 30", "device_api": "30", "ro.product.manufacturer": "Samsung", "serial": "RF8M91QN3KL", "name": "Sm-A307Fn", "ip": "192.168.68.111/24" } }, "alt": { "subtitle": "RP1A.200720.012.A307FNXXS2CVD2 - A307FNXXS2CVD2", "variables": { "status": "device", "full_info": "Samsung - Sm-A307Fn - Android 11, API 30", "device_api": "30", "ro.product.manufacturer": "Samsung", "serial": "RF8M91QN3KL", "name": "Sm-A307Fn", "ip": "192.168.68.111/24" } } } } ] } [10:12:44.010] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Queuing argument 'i' [10:12:44.123] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Queuing argument 'in' [10:12:44.262] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Queuing argument 'ins' [10:12:44.500] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Script with argv '(null)' finished [10:12:44.506] STDERR: adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] 10:12:44 list_devices.py:238 DEBUG Hello from adb 10:12:44 workflow.py:1891 DEBUG loading cached data: /Users/dannysilva/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/xyz.jienan.adb/__workflow_latest_version.pickle . 10:12:44 workflow.py:2263 DEBUG ---------- adb (1.13.2) ---------- 10:12:44 workflow.py:1669 DEBUG reading settings from /Users/dannysilva/Library/Application Support/Alfred/Workflow Data/xyz.jienan.adb/settings.json 10:12:44 workflow.py:2660 DEBUG update check not due Execute command: /Users/dannysilva/Library/Android/sdk/platform-tools/adb devices -l | sed -n '1!p' | tr -s ' ' Result: RF8M91QN3KL device usb:337838080X product:a30seea model:SM_A307FN device:a30s transport_id:226 10:12:44 list_devices.py:89 DEBUG 1 adb device(s) found 10:12:44 workflow.py:1891 DEBUG loading cached data: /Users/dannysilva/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/xyz.jienan.adb/RF8M91QN3KL-property.pickle 10:12:44 list_devices.py:100 DEBUG ins RF8M91QN3KL 10:12:44 workflow.py:2584 DEBUG set last run version: 1.13.2 10:12:44 workflow.py:2306 DEBUG ---------- finished in 0.037s ---------- [10:12:44.508] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.2C5DFC7C-6BF2-464B-9708-44D7FC92AFE4%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] { "items": [] }

If there is anything else i can do, please let me know!

@zjn0505
Copy link
Owner

zjn0505 commented May 24, 2022

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 apk in this workflow is used to get apk info, and install on connected device.

@zjn0505
Copy link
Owner

zjn0505 commented May 29, 2022

Maybe you can delete the workflow, and delete ~/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/xyz.jienan.adb/ folder, and re-import 1.13.3 version to see if it helps or not.

@shaga85
Copy link
Author

shaga85 commented May 29, 2022

Hi! thank you so much for this! It still doesn't work though....

Screenshot.2022-05-29.at.18.18.14.mp4

[18:18:21.487] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.10187D16-9F7B-4006-BE4B-38D1048CFB91%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Queuing argument '' [18:18:21.752] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.10187D16-9F7B-4006-BE4B-38D1048CFB91%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Script with argv '(null)' finished [18:18:21.755] ERROR: adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.10187D16-9F7B-4006-BE4B-38D1048CFB91%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] Code 1: 18:18:21 list_devices.py:238 DEBUG Hello from adb 18:18:21 workflow.py:1892 DEBUG loading cached data: /Users/dannysilva/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/xyz.jienan.adb/__workflow_latest_version.pickle . 18:18:21 workflow.py:2264 DEBUG ---------- adb (1.13.3) ---------- 18:18:21 workflow.py:1670 DEBUG reading settings from /Users/dannysilva/Library/Application Support/Alfred/Workflow Data/xyz.jienan.adb/settings.json 18:18:21 workflow.py:2661 DEBUG update check not due Execute command: /Users/dannysilva/Library/Android/sdk/build-tools/30.0.2/aapt devices -l | sed -n '1!p' | tr -s ' ' Result: ERROR: Unknown flag '-l' Android Asset Packaging Tool Usage: aapt l[ist] [-v] [-a] file.{zip,jar,apk} List contents of Zip-compatible archive. aapt d[ump] [--values] [--include-meta-data] WHAT file.{apk} [asset [asset ...]] strings Print the contents of the resource table string pool in the APK. badging Print the label and icon for the app declared in APK. permissions Print the permissions from the APK. resources Print the resource table from the APK. configurations Print the configurations in the APK. xmltree Print the compiled xmls in the given assets. xmlstrings Print the strings of the given compiled xml assets. aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \ [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \ [--debug-mode] [--min-sdk-version VAL] [--target-sdk-version VAL] \ [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \ [--rename-manifest-package PACKAGE] \ [--rename-instrumentation-target-package PACKAGE] \ [--utf16] [--auto-add-overlay] \ [--max-res-version VAL] \ [-I base-package [-I base-package ...]] \ [-A asset-source-dir] [-G class-list-file] [-P public-definitions-file] \ [-D main-dex-class-list-file] \ [-S resource-sources [-S resource-sources ...]] \ [-F apk-file] [-J R-file-dir] \ [--product product1,product2,...] \ [-c CONFIGS] [--preferred-density DENSITY] \ [--split CONFIGS [--split CONFIGS]] \ [--feature-of package [--feature-after package]] \ [raw-files-dir [raw-files-dir] ...] \ [--output-text-symbols DIR] Package the android resources. It will read assets and resources that are supplied with the -M -A -S or raw-files-dir arguments. The -J -P -F and -R options control which files are output. aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...] Delete specified files from Zip-compatible archive. aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...] Add specified files to Zip-compatible archive. aapt c[runch] [-v] -S resource-sources ... -C output-folder ... Do PNG preprocessing on one or several resource folders and store the results in the output folder. aapt s[ingleCrunch] [-v] -i input-file -o outputfile Do PNG preprocessing on a single file. aapt v[ersion] Print program version. Modifiers: -a print Android-specific data (resources, manifest) when listing -c specify which configurations to include. The default is all configurations. The value of the parameter should be a comma separated list of configuration values. Locales should be specified as either a language or language-region pair. Some examples: en port,en port,land,en_US -d one or more device assets to include, separated by commas -f force overwrite of existing files -g specify a pixel tolerance to force images to grayscale, default 0 -j specify a jar or zip file containing classes to include -k junk path of file(s) added -m make package directories under location specified by -J -u update existing packages (add new, replace older, remove deleted files) -v verbose output -x create extending (non-application) resource IDs -z require localization of resource attributes marked with localization="suggested" -A additional directory in which to find raw asset files -G A file to output proguard options into. -D A file to output proguard options for the main dex into. -F specify the apk file to output -I add an existing package to base include set -J specify where to output R.java resource constant definitions -M specify full path to AndroidManifest.xml to include in zip -P specify where to output public resource definitions -S directory in which to find resources. Multiple directories will be scanned and the first match found (left to right) will take precedence. -0 specifies an additional extension for which such files will not be stored compressed in the .apk. An empty string means to not compress any files at all. --debug-mode inserts android:debuggable="true" in to the application node of the manifest, making the application debuggable even on production devices. --include-meta-data when used with "dump badging" also includes meta-data tags. --pseudo-localize generate resources for pseudo-locales (en-XA and ar-XB). --min-sdk-version inserts android:minSdkVersion in to manifest. If the version is 7 or higher, the default encoding for resources will be in UTF-8. --target-sdk-version inserts android:targetSdkVersion in to manifest. --max-res-version ignores versioned resource directories above the given value. --values when used with "dump resources" also includes resource values. --version-code inserts android:versionCode in to manifest. --version-name inserts android:versionName in to manifest. --replace-version If --version-code and/or --version-name are specified, these values will replace any value already in the manifest. By default, nothing is changed if the manifest already defines these attributes. --custom-package generates R.java into a different package. --extra-packages generate R.java for libraries. Separate libraries with ':'. --generate-dependencies generate dependency files in the same directories for R.java and resource package --auto-add-overlay Automatically add resources that are only in overlays. --preferred-density Specifies a preference for a particular density. Resources that do not match this density and have variants that are a closer match are removed. --split Builds a separate split APK for the configurations listed. This can be loaded alongside the base APK at runtime. --feature-of Builds a split APK that is a feature of the apk specified here. Resources in the base APK can be referenced from the the feature APK. --feature-after An app can have multiple Feature Split APKs which must be totally ordered. If --feature-of is specified, this flag specifies which Feature Split APK comes before this one. The first Feature Split APK should not define anything here. --rename-manifest-package Rewrite the manifest so that its package name is the package name given here. Relative class names (for example .Foo) will be changed to absolute names with the old package so that the code does not need to change. --rename-instrumentation-target-package Rewrite the manifest so that all of its instrumentation components target the given package. Useful when used in conjunction with --rename-manifest-package to fix tests against a package that has been renamed. --product Specifies which variant to choose for strings that have product variants --utf16 changes default encoding for resources to UTF-16. Only useful when API level is set to 7 or higher where the default encoding is UTF-8. --non-constant-id Make the resources ID non constant. This is required to make an R java class that does not contain the final value but is used to make reusable compiled libraries that need to access resources. --shared-lib Make a shared library resource package that can be loaded by an application at runtime to access the libraries resources. Implies --non-constant-id. --app-as-shared-lib Make an app resource package that also can be loaded as shared library at runtime. Implies --non-constant-id. --error-on-failed-insert Forces aapt to return an error if it fails to insert values into the manifest with --debug-mode, --min-sdk-version, --target-sdk-version --version-code and --version-name. Insertion typically fails if the manifest already defines the attribute. --error-on-missing-config-entry Forces aapt to return an error if it fails to find an entry for a configuration. --output-text-symbols Generates a text file containing the resource symbols of the R class in the specified folder. --ignore-assets Assets to be ignored. Default pattern is: !.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~ --skip-symbols-without-default-localization Prevents symbols from being generated for strings that do not have a default localization --no-version-vectors Do not automatically generate versioned copies of vector XML resources. --no-version-transitions Do not automatically generate versioned copies of transition XML resources. --private-symbols Java package name to use when generating R.java for private resources. 18:18:21 list_devices.py:89 DEBUG 184 adb device(s) found 18:18:21 workflow.py:1892 DEBUG loading cached data: /Users/dannysilva/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/xyz.jienan.adb/ERROR:-property.pickle 18:18:21 workflow.py:1892 DEBUG loading cached data: /Users/dannysilva/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/xyz.jienan.adb/Android-property.pickle 18:18:21 workflow.py:2285 ERROR list index out of range Traceback (most recent call last): File "/Users/dannysilva/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.10187D16-9F7B-4006-BE4B-38D1048CFB91/workflow/workflow.py", line 2278, in run func(self) File "list_devices.py", line 231, in main list_devices(wf.args) File "list_devices.py", line 90, in list_devices items, wifiDevices = get_device_items(arg, devices) File "list_devices.py", line 46, in get_device_items if values[1] == 'offline': IndexError: list index out of range 18:18:21 workflow.py:2307 DEBUG ---------- finished in 0.035s ---------- [18:18:21.764] adb[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.10187D16-9F7B-4006-BE4B-38D1048CFB91%3E6CC71670-241E-4E01-ADC6-0EA61C4D238C)] { "items": [ { "title": "Error in workflow 'adb'", "subtitle": "list index out of range", "valid": false, "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns" } } ] }

@zjn0505
Copy link
Owner

zjn0505 commented May 30, 2022

Hi, this time it is a configuration error.

Please check the configuration. I think you are having adb_path configed wrong.

It should be something like

~/Library/Android/sdk/platform-tools/adb

Currently I guess it is

~/Library/Android/sdk/build-tools/30.0.2/aapt

image

@shaga85
Copy link
Author

shaga85 commented May 30, 2022

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

@iArtuc
Copy link

iArtuc commented Sep 19, 2023

i have the same issue any solution to this?

@iArtuc
Copy link

iArtuc commented Sep 19, 2023

Can you try this version?

adb-v1.13.2-x.alfredworkflow.zip

using this version worked for me.

@zjn0505
Copy link
Owner

zjn0505 commented Sep 20, 2023

i have the same issue any solution to this?

Can you add some logs? There are several issues discussed in this thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants