bootecia Posted June 8, 2022 Share Posted June 8, 2022 Hello, I installed convert workflow. When I type conv these things come. But when I type the rest, nothing happens probably workflow crashes. What should I do? Link to comment
bootecia Posted June 9, 2022 Author Share Posted June 9, 2022 hello anyone knows a fix? Link to comment
vitor Posted June 9, 2022 Share Posted June 9, 2022 Welcome @bootecia, Use the updated version by @giovanni. Also see Making Python 2 Workflows work on macOS Monterey 12.3 and above for an explanation and other alternatives. bootecia 1 Link to comment
bootecia Posted June 9, 2022 Author Share Posted June 9, 2022 44 minutes ago, vitor said: Welcome @bootecia, Use the updated version by @giovanni. Also see Making Python 2 Workflows work on macOS Monterey 12.3 and above for an explanation and other alternatives. hi, Yes I searched so much and found out that python 2 is outdated and found the updated versions of most of the workflows. Thank you. There is one more problem, I don't create new thread and asking here but if its necessary to create one, I can. The problem is, I installed the new version. Set my API key; But the thing still gives app key error. But the api key is working. Link to comment
bootecia Posted June 9, 2022 Author Share Posted June 9, 2022 Well, nvm, the one I was working was from here: https://github.com/alfredapp/updated-third-party-python2-workflows#readme and it looks like its outdated too. I installed yours and its working. thank you. Link to comment
Aslan Posted August 3, 2022 Share Posted August 3, 2022 Hello, I have similar problems with the convert workflow. I installed @giovanni updated version of the convert workflow (https://github.com/giovannicoppola/alfred-convert), set my API key correctly (I believe) as the APP_KEY value (and after checking on openexchanerates.org, my API key is indeed working) ... but the currency conversion gets stuck with the "Fetching exchange rates..." message. Any idea of what might be wrong? Link to comment
giovanni Posted August 3, 2022 Share Posted August 3, 2022 Hi @Aslan can you check the debugger output? Link to comment
Aslan Posted August 3, 2022 Share Posted August 3, 2022 Hi Giovanni, please see here below. It sounds like the API key is not set? Although it appears to be if I look in the "Environment Variables" APP_KEY Value... [16:13:32.586] Convert[Script Filter] Queuing argument '1eur chf' [16:13:34.379] Convert[Script Filter] Script with argv '1eur chf' finished [16:13:34.381] STDERR: Convert[Script Filter] . http_proxy= https_proxy= . 16:13:34 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:34 convert.py:647 DEBUG query : 1eur chf 16:13:34 workflow.py:1483 DEBUG reading settings from /Users/sandro/Library/Application Support/Alfred/Workflow Data/alfred-convert-GC/settings.json 16:13:34 workflow.py:2285 DEBUG last run version: 3.99.0 16:13:34 convert.py:104 DEBUG version=3.99.0, last_version=3.99.0 16:13:34 background.py:233 DEBUG [update] command cached: /Users/sandro/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/alfred-convert-GC/update.argcache 16:13:34 background.py:237 DEBUG [update] passing job to background runner: ['/usr/local/bin/python3', '-m', 'workflow.background', 'update'] . 16:13:34 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:34 background.py:243 DEBUG [update] background job started 16:13:34 convert.py:382 DEBUG [parser] quantity=1.0, tail=eur chf 16:13:34 convert.py:484 DEBUG [parser] from_unit=eur 16:13:34 convert.py:488 DEBUG [parser] to_unit=chf 16:13:34 convert.py:73 ERROR [parser] unit eur is a fiat currency, but OpenExchangeRates.org API key isn't set 16:13:34 workflow.py:2136 DEBUG ---------- finished in 0.088s ---------- [16:13:34.383] Convert[Script Filter] { "items": [ { "title": "Fetching exchange rates\u2026", "subtitle": "Currency conversions will be momentarily possible", "valid": false, "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ToolbarInfo.icns" } }, { "title": "Set APP_KEY to convert this currency", "subtitle": "Action this item for instructions", "valid": false, "autocomplete": "workflow:appkey", "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertCautionIcon.icns" } } ], "rerun": 0.5 } [16:13:34.886] Convert[Script Filter] Queuing argument '1eur chf' [16:13:35.271] Convert[Script Filter] Script with argv '1eur chf' finished [16:13:35.273] STDERR: Convert[Script Filter] . http_proxy= https_proxy= . 16:13:35 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:35 convert.py:647 DEBUG query : 1eur chf 16:13:35 workflow.py:1483 DEBUG reading settings from /Users/sandro/Library/Application Support/Alfred/Workflow Data/alfred-convert-GC/settings.json 16:13:35 workflow.py:2285 DEBUG last run version: 3.99.0 16:13:35 convert.py:104 DEBUG version=3.99.0, last_version=3.99.0 16:13:35 background.py:233 DEBUG [update] command cached: /Users/sandro/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/alfred-convert-GC/update.argcache 16:13:35 background.py:237 DEBUG [update] passing job to background runner: ['/usr/local/bin/python3', '-m', 'workflow.background', 'update'] . 16:13:35 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:35 background.py:243 DEBUG [update] background job started 16:13:35 convert.py:382 DEBUG [parser] quantity=1.0, tail=eur chf 16:13:35 convert.py:484 DEBUG [parser] from_unit=eur 16:13:35 convert.py:488 DEBUG [parser] to_unit=chf 16:13:35 convert.py:73 ERROR [parser] unit eur is a fiat currency, but OpenExchangeRates.org API key isn't set 16:13:35 workflow.py:2136 DEBUG ---------- finished in 0.107s ---------- [16:13:35.275] Convert[Script Filter] { "items": [ { "title": "Fetching exchange rates\u2026", "subtitle": "Currency conversions will be momentarily possible", "valid": false, "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ToolbarInfo.icns" } }, { "title": "Set APP_KEY to convert this currency", "subtitle": "Action this item for instructions", "valid": false, "autocomplete": "workflow:appkey", "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertCautionIcon.icns" } } ], "rerun": 0.5 } [16:13:35.778] Convert[Script Filter] Queuing argument '1eur chf' [16:13:36.165] Convert[Script Filter] Script with argv '1eur chf' finished [16:13:36.171] STDERR: Convert[Script Filter] . http_proxy= https_proxy= . 16:13:35 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:36 convert.py:647 DEBUG query : 1eur chf 16:13:36 workflow.py:1483 DEBUG reading settings from /Users/sandro/Library/Application Support/Alfred/Workflow Data/alfred-convert-GC/settings.json 16:13:36 workflow.py:2285 DEBUG last run version: 3.99.0 16:13:36 convert.py:104 DEBUG version=3.99.0, last_version=3.99.0 16:13:36 background.py:233 DEBUG [update] command cached: /Users/sandro/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/alfred-convert-GC/update.argcache 16:13:36 background.py:237 DEBUG [update] passing job to background runner: ['/usr/local/bin/python3', '-m', 'workflow.background', 'update'] . 16:13:36 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:36 background.py:243 DEBUG [update] background job started 16:13:36 convert.py:382 DEBUG [parser] quantity=1.0, tail=eur chf 16:13:36 convert.py:484 DEBUG [parser] from_unit=eur 16:13:36 convert.py:488 DEBUG [parser] to_unit=chf 16:13:36 convert.py:73 ERROR [parser] unit eur is a fiat currency, but OpenExchangeRates.org API key isn't set 16:13:36 workflow.py:2136 DEBUG ---------- finished in 0.109s ---------- [16:13:36.173] Convert[Script Filter] { "items": [ { "title": "Fetching exchange rates\u2026", "subtitle": "Currency conversions will be momentarily possible", "valid": false, "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ToolbarInfo.icns" } }, { "title": "Set APP_KEY to convert this currency", "subtitle": "Action this item for instructions", "valid": false, "autocomplete": "workflow:appkey", "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertCautionIcon.icns" } } ], "rerun": 0.5 } [16:13:36.672] Convert[Script Filter] Queuing argument '1eur chf' [16:13:37.057] Convert[Script Filter] Script with argv '1eur chf' finished [16:13:37.067] STDERR: Convert[Script Filter] . http_proxy= https_proxy= . 16:13:36 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:36 convert.py:647 DEBUG query : 1eur chf 16:13:36 workflow.py:1483 DEBUG reading settings from /Users/sandro/Library/Application Support/Alfred/Workflow Data/alfred-convert-GC/settings.json 16:13:36 workflow.py:2285 DEBUG last run version: 3.99.0 16:13:36 convert.py:104 DEBUG version=3.99.0, last_version=3.99.0 16:13:36 background.py:233 DEBUG [update] command cached: /Users/sandro/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/alfred-convert-GC/update.argcache 16:13:36 background.py:237 DEBUG [update] passing job to background runner: ['/usr/local/bin/python3', '-m', 'workflow.background', 'update'] . 16:13:36 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:36 background.py:243 DEBUG [update] background job started 16:13:36 convert.py:382 DEBUG [parser] quantity=1.0, tail=eur chf 16:13:36 convert.py:484 DEBUG [parser] from_unit=eur 16:13:36 convert.py:488 DEBUG [parser] to_unit=chf 16:13:36 convert.py:73 ERROR [parser] unit eur is a fiat currency, but OpenExchangeRates.org API key isn't set 16:13:36 workflow.py:2136 DEBUG ---------- finished in 0.106s ---------- [16:13:37.069] Convert[Script Filter] { "items": [ { "title": "Fetching exchange rates\u2026", "subtitle": "Currency conversions will be momentarily possible", "valid": false, "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ToolbarInfo.icns" } }, { "title": "Set APP_KEY to convert this currency", "subtitle": "Action this item for instructions", "valid": false, "autocomplete": "workflow:appkey", "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertCautionIcon.icns" } } ], "rerun": 0.5 } [16:13:37.564] Convert[Script Filter] Queuing argument '1eur chf' [16:13:37.945] Convert[Script Filter] Script with argv '1eur chf' finished [16:13:37.955] STDERR: Convert[Script Filter] . http_proxy= https_proxy= . 16:13:37 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:37 convert.py:647 DEBUG query : 1eur chf 16:13:37 workflow.py:1483 DEBUG reading settings from /Users/sandro/Library/Application Support/Alfred/Workflow Data/alfred-convert-GC/settings.json 16:13:37 workflow.py:2285 DEBUG last run version: 3.99.0 16:13:37 convert.py:104 DEBUG version=3.99.0, last_version=3.99.0 16:13:37 background.py:233 DEBUG [update] command cached: /Users/sandro/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/alfred-convert-GC/update.argcache 16:13:37 background.py:237 DEBUG [update] passing job to background runner: ['/usr/local/bin/python3', '-m', 'workflow.background', 'update'] . 16:13:37 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:37 background.py:243 DEBUG [update] background job started 16:13:37 convert.py:382 DEBUG [parser] quantity=1.0, tail=eur chf 16:13:37 convert.py:484 DEBUG [parser] from_unit=eur 16:13:37 convert.py:488 DEBUG [parser] to_unit=chf 16:13:37 convert.py:73 ERROR [parser] unit eur is a fiat currency, but OpenExchangeRates.org API key isn't set 16:13:37 workflow.py:2136 DEBUG ---------- finished in 0.105s ---------- [16:13:37.957] Convert[Script Filter] { "items": [ { "title": "Fetching exchange rates\u2026", "subtitle": "Currency conversions will be momentarily possible", "valid": false, "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ToolbarInfo.icns" } }, { "title": "Set APP_KEY to convert this currency", "subtitle": "Action this item for instructions", "valid": false, "autocomplete": "workflow:appkey", "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertCautionIcon.icns" } } ], "rerun": 0.5 } [16:13:38.451] Convert[Script Filter] Queuing argument '1eur chf' [16:13:38.833] Convert[Script Filter] Script with argv '1eur chf' finished [16:13:38.846] STDERR: Convert[Script Filter] . http_proxy= https_proxy= . 16:13:38 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:38 convert.py:647 DEBUG query : 1eur chf 16:13:38 workflow.py:1483 DEBUG reading settings from /Users/sandro/Library/Application Support/Alfred/Workflow Data/alfred-convert-GC/settings.json 16:13:38 workflow.py:2285 DEBUG last run version: 3.99.0 16:13:38 convert.py:104 DEBUG version=3.99.0, last_version=3.99.0 16:13:38 background.py:233 DEBUG [update] command cached: /Users/sandro/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/alfred-convert-GC/update.argcache 16:13:38 background.py:237 DEBUG [update] passing job to background runner: ['/usr/local/bin/python3', '-m', 'workflow.background', 'update'] . 16:13:38 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:38 background.py:243 DEBUG [update] background job started 16:13:38 convert.py:382 DEBUG [parser] quantity=1.0, tail=eur chf 16:13:38 convert.py:484 DEBUG [parser] from_unit=eur 16:13:38 convert.py:488 DEBUG [parser] to_unit=chf 16:13:38 convert.py:73 ERROR [parser] unit eur is a fiat currency, but OpenExchangeRates.org API key isn't set 16:13:38 workflow.py:2136 DEBUG ---------- finished in 0.105s ---------- [16:13:38.848] Convert[Script Filter] { "items": [ { "title": "Fetching exchange rates\u2026", "subtitle": "Currency conversions will be momentarily possible", "valid": false, "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ToolbarInfo.icns" } }, { "title": "Set APP_KEY to convert this currency", "subtitle": "Action this item for instructions", "valid": false, "autocomplete": "workflow:appkey", "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertCautionIcon.icns" } } ], "rerun": 0.5 } [16:13:39.340] Convert[Script Filter] Queuing argument '1eur chf' [16:13:39.727] Convert[Script Filter] Script with argv '1eur chf' finished [16:13:39.732] STDERR: Convert[Script Filter] . http_proxy= https_proxy= . 16:13:39 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:39 convert.py:647 DEBUG query : 1eur chf 16:13:39 workflow.py:1483 DEBUG reading settings from /Users/sandro/Library/Application Support/Alfred/Workflow Data/alfred-convert-GC/settings.json 16:13:39 workflow.py:2285 DEBUG last run version: 3.99.0 16:13:39 convert.py:104 DEBUG version=3.99.0, last_version=3.99.0 16:13:39 background.py:233 DEBUG [update] command cached: /Users/sandro/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/alfred-convert-GC/update.argcache 16:13:39 background.py:237 DEBUG [update] passing job to background runner: ['/usr/local/bin/python3', '-m', 'workflow.background', 'update'] . 16:13:39 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:39 background.py:243 DEBUG [update] background job started 16:13:39 convert.py:382 DEBUG [parser] quantity=1.0, tail=eur chf 16:13:39 convert.py:484 DEBUG [parser] from_unit=eur 16:13:39 convert.py:488 DEBUG [parser] to_unit=chf 16:13:39 convert.py:73 ERROR [parser] unit eur is a fiat currency, but OpenExchangeRates.org API key isn't set 16:13:39 workflow.py:2136 DEBUG ---------- finished in 0.106s ---------- [16:13:39.734] Convert[Script Filter] { "items": [ { "title": "Fetching exchange rates\u2026", "subtitle": "Currency conversions will be momentarily possible", "valid": false, "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ToolbarInfo.icns" } }, { "title": "Set APP_KEY to convert this currency", "subtitle": "Action this item for instructions", "valid": false, "autocomplete": "workflow:appkey", "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertCautionIcon.icns" } } ], "rerun": 0.5 } [16:13:40.234] Convert[Script Filter] Queuing argument '1eur chf' [16:13:40.621] Convert[Script Filter] Script with argv '1eur chf' finished [16:13:40.629] STDERR: Convert[Script Filter] . http_proxy= https_proxy= . 16:13:40 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:40 convert.py:647 DEBUG query : 1eur chf 16:13:40 workflow.py:1483 DEBUG reading settings from /Users/sandro/Library/Application Support/Alfred/Workflow Data/alfred-convert-GC/settings.json 16:13:40 workflow.py:2285 DEBUG last run version: 3.99.0 16:13:40 convert.py:104 DEBUG version=3.99.0, last_version=3.99.0 16:13:40 background.py:233 DEBUG [update] command cached: /Users/sandro/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/alfred-convert-GC/update.argcache 16:13:40 background.py:237 DEBUG [update] passing job to background runner: ['/usr/local/bin/python3', '-m', 'workflow.background', 'update'] . 16:13:40 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:40 background.py:243 DEBUG [update] background job started 16:13:40 convert.py:382 DEBUG [parser] quantity=1.0, tail=eur chf 16:13:40 convert.py:484 DEBUG [parser] from_unit=eur 16:13:40 convert.py:488 DEBUG [parser] to_unit=chf 16:13:40 convert.py:73 ERROR [parser] unit eur is a fiat currency, but OpenExchangeRates.org API key isn't set 16:13:40 workflow.py:2136 DEBUG ---------- finished in 0.102s ---------- [16:13:40.631] Convert[Script Filter] { "items": [ { "title": "Fetching exchange rates\u2026", "subtitle": "Currency conversions will be momentarily possible", "valid": false, "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ToolbarInfo.icns" } }, { "title": "Set APP_KEY to convert this currency", "subtitle": "Action this item for instructions", "valid": false, "autocomplete": "workflow:appkey", "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertCautionIcon.icns" } } ], "rerun": 0.5 } [16:13:41.128] Convert[Script Filter] Queuing argument '1eur chf' [16:13:41.512] Convert[Script Filter] Script with argv '1eur chf' finished [16:13:41.520] STDERR: Convert[Script Filter] . http_proxy= https_proxy= . 16:13:41 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:41 convert.py:647 DEBUG query : 1eur chf 16:13:41 workflow.py:1483 DEBUG reading settings from /Users/sandro/Library/Application Support/Alfred/Workflow Data/alfred-convert-GC/settings.json 16:13:41 workflow.py:2285 DEBUG last run version: 3.99.0 16:13:41 convert.py:104 DEBUG version=3.99.0, last_version=3.99.0 16:13:41 background.py:233 DEBUG [update] command cached: /Users/sandro/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/alfred-convert-GC/update.argcache 16:13:41 background.py:237 DEBUG [update] passing job to background runner: ['/usr/local/bin/python3', '-m', 'workflow.background', 'update'] . 16:13:41 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:13:41 background.py:243 DEBUG [update] background job started 16:13:41 convert.py:382 DEBUG [parser] quantity=1.0, tail=eur chf 16:13:41 convert.py:484 DEBUG [parser] from_unit=eur 16:13:41 convert.py:488 DEBUG [parser] to_unit=chf 16:13:41 convert.py:73 ERROR [parser] unit eur is a fiat currency, but OpenExchangeRates.org API key isn't set 16:13:41 workflow.py:2136 DEBUG ---------- finished in 0.109s ---------- [16:13:41.522] Convert[Script Filter] { "items": [ { "title": "Fetching exchange rates\u2026", "subtitle": "Currency conversions will be momentarily possible", "valid": false, "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ToolbarInfo.icns" } }, { "title": "Set APP_KEY to convert this currency", "subtitle": "Action this item for instructions", "valid": false, "autocomplete": "workflow:appkey", "icon": { "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertCautionIcon.icns" } } ], "rerun": 0.5 } [16:13:42.019] Convert[Script Filter] Queuing argument '1eur chf' [16:13:42.234] Logging Stopped. Link to comment
giovanni Posted August 3, 2022 Share Posted August 3, 2022 can you try without the key (ie leaving the key blank)? I think most conversions now work without it. Link to comment
Aslan Posted August 3, 2022 Share Posted August 3, 2022 I just tried (left APP_KEY blank and restarted Alfred, just to be safe), but I am afraid I get the same error from the debugger: ERROR [parser] unit eur is a fiat currency, but OpenExchangeRates.org API key isn't set Link to comment
giovanni Posted August 3, 2022 Share Posted August 3, 2022 are you sure it's completely blank (no spaces)? Link to comment
Aslan Posted August 3, 2022 Share Posted August 3, 2022 Yes. To be safe, I deleted the workflow and re-installed it "as is" (no APP_KEY) and still get the same error: [16:48:30.662] Convert[Script Filter] Queuing argument '1eur usd' [16:48:31.042] Convert[Script Filter] Script with argv '1eur usd' finished [16:48:31.050] STDERR: Convert[Script Filter] . http_proxy= https_proxy= . 16:48:30 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:48:30 convert.py:647 DEBUG query : 1eur usd 16:48:30 workflow.py:1483 DEBUG reading settings from /Users/sandro/Library/Application Support/Alfred/Workflow Data/alfred-convert-GC/settings.json 16:48:30 workflow.py:2285 DEBUG last run version: 3.99.0 16:48:30 convert.py:104 DEBUG version=3.99.0, last_version=3.99.0 16:48:30 background.py:233 DEBUG [update] command cached: /Users/sandro/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/alfred-convert-GC/update.argcache 16:48:30 background.py:237 DEBUG [update] passing job to background runner: ['/usr/local/bin/python3', '-m', 'workflow.background', 'update'] . 16:48:30 workflow.py:2093 DEBUG ---------- Convert (3.99.0) ---------- 16:48:30 background.py:243 DEBUG [update] background job started 16:48:30 convert.py:382 DEBUG [parser] quantity=1.0, tail=eur usd 16:48:30 convert.py:484 DEBUG [parser] from_unit=eur 16:48:30 convert.py:488 DEBUG [parser] to_unit=usd 16:48:30 convert.py:73 ERROR [parser] unit eur is a fiat currency, but OpenExchangeRates.org API key isn't set 16:48:30 workflow.py:2136 DEBUG ---------- finished in 0.105s ---------- Link to comment
giovanni Posted August 3, 2022 Share Posted August 3, 2022 what is your update interval? perhaps you can force refresh by deleting the exchange_rates.pickle file? It should be in the /Users/sandro/Library/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/alfred-convert-GC/ folder Link to comment
Aslan Posted August 3, 2022 Share Posted August 3, 2022 Giovanni, In the folder you mention there seems to be no "exchange_rates.pickle" file. Only 2 files: alfred-convert-GC.log nokey (which appears to be empty, zero bytes) Link to comment
giovanni Posted August 3, 2022 Share Posted August 3, 2022 I see, and may I ask you to also check the active_currencies.txt file in the /Users/sandro/Library/Application Support/Alfred/Workflow Data/alfred-convert-GC/ folder? Does it have a list of fiat and crypto currencies? Link to comment
Aslan Posted August 3, 2022 Share Posted August 3, 2022 In case it helps, I should maybe also mention two things: 1. I used to have an older version of the convert workflow (which does not work anymore, given the Python 2 change with Monterey and which, in any case, I think I fully deleted) 2. here is a screenshot of Alfred when I call the convert workflow. As you can see, the "Fetching exchange rate..." never disappears, but I am also always offered the "Set APP_KEY to convert this currency" option Link to comment
Aslan Posted August 3, 2022 Share Posted August 3, 2022 Yes, the active_currencies.txt file also has a list of crypto currencies Link to comment
giovanni Posted August 3, 2022 Share Posted August 3, 2022 it has both fiat and crypto? are both EUR and USD listed? Link to comment
Aslan Posted August 3, 2022 Share Posted August 3, 2022 Yes: both fiat and crypto currencies and both EUR and USD listed (among many other currencies) in the active_currencies.txt file (in the .../Library/Application Support/Alfred/Workflow Data/alfred-convert-GC folder) Link to comment
giovanni Posted August 3, 2022 Share Posted August 3, 2022 could you try to delete both folders? The one in Application Support and the one in Caches, then rerun your query? Link to comment
Aslan Posted August 3, 2022 Share Posted August 3, 2022 (edited) Done: I fully quit Alfred, deleted both folders, launched Alfred again, launched the query conv 1EUR USD. Both folders reappeared, but I am afraid no difference in the results (i.e. same as the screenshot above) Edited August 3, 2022 by Aslan Link to comment
giovanni Posted August 3, 2022 Share Posted August 3, 2022 sorry I can't think of anything else to try. I installed it fresh onto another computer and it works for me. If you want to post the alfred-convert-GC.log file somewhere, I am happy to review it. Link to comment
Aslan Posted August 4, 2022 Share Posted August 4, 2022 Thanks for trying, @giovanni. I'd be happy to share with you the alfred-convert-GC.log file: can you suggest where? Looking at it (while admittedly not knowing anything about this!) it seems to me that the workflow: recognizes that the OpenExchangeRates.org API key isn't set therefore tries to fetch the exchange rates from ExchangeRate-API.com encounters an SSL certificate verify error ("unable to get local issuer certificate (_ssl.c:1129)") Or at least this is what it says in the first few lines of the alfred-convert-GC.log file: 09:12:52 convert.py:73 ERROR [parser] unit eur is a fiat currency, but OpenExchangeRates.org API key isn't set 09:12:52 currency.py:240 INFO fetching exchange rates from ExchangeRate-API.com and CryptoCompare.com ... 09:12:52 currency.py:190 WARNING fetching limited set of fiat currency exchange rates: APP_KEY for openexchangerates.org not set. Please sign up for a free account here: https://openexchangerates.org/signup/free 09:12:52 currency.py:205 WARNING ignoring crytopcurrency "BTC", as it conflicts with a fiat currency 09:12:52 currency.py:205 WARNING ignoring crytopcurrency "MTL", as it conflicts with a fiat currency 09:12:52 currency.py:205 WARNING ignoring crytopcurrency "XPD", as it conflicts with a fiat currency 09:12:52 workflow.py:2114 ERROR <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)> Traceback (most recent call last): ... File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1349, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)> Does it help in any way? Link to comment
giovanni Posted August 4, 2022 Share Posted August 4, 2022 did you install python with brew? A quick search leads to this: https://stackoverflow.com/questions/44649449/brew-installation-of-python-3-6-1-ssl-certificate-verify-failed-certificate/44649450#44649450 https://stackoverflow.com/questions/50236117/scraping-ssl-certificate-verify-failed-error-for-http-en-wikipedia-org Aslan 1 Link to comment
SilvesterCat73 Posted October 11, 2022 Share Posted October 11, 2022 (edited) Hi, I had the same exact issue (same log traces), here is how I fixed it: I installed python from the python site (https://www.python.org/ftp/python/2.7.17/python-2.7.17-macosx10.9.pkg) I went to Applications / Python 2.7 and ran: Install Certificates.command I reinstalled the convert workflow, added the API_Key From then on it works Edited October 11, 2022 by SilvesterCat73 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