Jump to content

convert Workflow Doesn't Work


Recommended Posts

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;

image.png.59dc732d13f37e972dc0b9584832ecde.png

But the thing still gives app key error.


image.thumb.png.7c7fdaca8a517ff24850a2e45395d249.png

image.png.f5f30dfccc93d1c9e3b72eb44f0464ed.png

 

 But the api key is working. 

image.thumb.png.fca854be696c81f6811e7519bc57ae83.png

Link to comment
  • 1 month later...

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

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

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

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

 

image.png.d507c606d575286c5da0e380185eb92a.png

Link to comment

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 by Aslan
Link to comment

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
  • 2 months later...

Hi,

I had the same exact issue (same log traces), here is how I fixed it:

  1. I installed python from the python site (https://www.python.org/ftp/python/2.7.17/python-2.7.17-macosx10.9.pkg)
  2. I went to Applications / Python 2.7 and ran: Install Certificates.command
  3. I reinstalled the convert workflow, added the API_Key

From then on it works :)

Edited by SilvesterCat73
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...