Jump to content

Southgirl

Member
  • Posts

    82
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by Southgirl

  1. I found the latest version on the author's Github page. Installed it, but now I'm getting a different error message. Here's the debug info:

     

    [14:23:23.623] JustWatch - Alfred[Script Filter] Queuing argument 'bat'
    [14:23:23.800] JustWatch - Alfred[Script Filter] Script with argv '(null)' finished
    [14:23:23.803] ERROR: JustWatch - Alfred[Script Filter] Code 1: .
    .
    14:23:23 workflow.py:2093 DEBUG    ---------- JustWatch - Alfred (1.1.3) ----------
    No module named 'importlib_resources'
    Traceback (most recent call last):
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/workflow/workflow.py", line 2107, in run
        func(self)
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/main.py", line 111, in main
        from justwatch import JustWatch
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/./lib/justwatch/__init__.py", line 1, in <module>
        from .justwatchapi import JustWatch
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/./lib/justwatch/justwatchapi.py", line 5, in <module>
        from lib.agent.agent import UserAgent
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/lib/agent/__init__.py", line 1, in <module>
        from agent.agent import FakeUserAgent, UserAgent  # noqa # isort:skip
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/./lib/agent/__init__.py", line 1, in <module>
        from agent.agent import FakeUserAgent, UserAgent  # noqa # isort:skip
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/./lib/agent/agent.py", line 7, in <module>
        from agent.utils import load, load_cached, str_types, update
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/./lib/agent/utils.py", line 16, in <module>
        import importlib_resources as ilr
    ModuleNotFoundError: No module named 'importlib_resources'
    [14:23:23.805] JustWatch - Alfred[Script Filter] {
      "items": [
        {
          "title": "Error in workflow 'JustWatch - Alfred'",
          "subtitle": "No module named 'importlib_resources'",
          "valid": false,
          "icon": {
            "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
          }
        }
      ]
    }
    [14:23:25.613] JustWatch - Alfred[Script Filter] Queuing argument 'batman'
    [14:23:25.787] JustWatch - Alfred[Script Filter] Script with argv '(null)' finished
    [14:23:25.792] ERROR: JustWatch - Alfred[Script Filter] Code 1: .
    .
    14:23:25 workflow.py:2093 DEBUG    ---------- JustWatch - Alfred (1.1.3) ----------
    No module named 'importlib_resources'
    Traceback (most recent call last):
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/workflow/workflow.py", line 2107, in run
        func(self)
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/main.py", line 111, in main
        from justwatch import JustWatch
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/./lib/justwatch/__init__.py", line 1, in <module>
        from .justwatchapi import JustWatch
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/./lib/justwatch/justwatchapi.py", line 5, in <module>
        from lib.agent.agent import UserAgent
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/lib/agent/__init__.py", line 1, in <module>
        from agent.agent import FakeUserAgent, UserAgent  # noqa # isort:skip
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/./lib/agent/__init__.py", line 1, in <module>
        from agent.agent import FakeUserAgent, UserAgent  # noqa # isort:skip
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/./lib/agent/agent.py", line 7, in <module>
        from agent.utils import load, load_cached, str_types, update
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A40245FC-A839-4A28-B663-9A839F36895A/./lib/agent/utils.py", line 16, in <module>
        import importlib_resources as ilr
    ModuleNotFoundError: No module named 'importlib_resources'
    [14:23:25.793] JustWatch - Alfred[Script Filter] {
      "items": [
        {
          "title": "Error in workflow 'JustWatch - Alfred'",
          "subtitle": "No module named 'importlib_resources'",
          "valid": false,
          "icon": {
            "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
          }
        }
      ]
    }

     

    worklow error.png

  2. Updated to version 1.1.2 today, stopped working. Here's the debug info. I'm on Monterey 12.6.1, BTW

     

    [21:32:33.388] JustWatch - Alfred[Script Filter] Queuing argument 'class action'
    [21:32:37.802] JustWatch - Alfred[Script Filter] Script with argv '(null)' finished
    [21:32:37.807] ERROR: JustWatch - Alfred[Script Filter] Code 1: .
    .
    21:32:33 workflow.py:2093 DEBUG    ---------- JustWatch - Alfred (1.1.2) ----------
    name 'FakeUserAgentError' is not defined
    Traceback (most recent call last):
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DCB3A622-517D-4C6F-9F01-320187C90FD9/lib/agent/utils.py", line 154, in load
        for item in get_browsers(verify_ssl=verify_ssl):
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DCB3A622-517D-4C6F-9F01-320187C90FD9/lib/agent/utils.py", line 99, in get_browsers
        html = html.split('<table class="w3-table-all notranslate">')[1]
    IndexError: list index out of range
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DCB3A622-517D-4C6F-9F01-320187C90FD9/lib/agent/utils.py", line 64, in get
        with contextlib.closing(urlopen(
      File "/opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 214, in urlopen
        return opener.open(url, data, timeout)
      File "/opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 523, in open
        response = meth(req, response)
      File "/opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 632, in http_response
        response = self.parent.error(
      File "/opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 561, in error
        return self._call_chain(*args)
      File "/opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
        result = func(*args)
      File "/opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 641, in http_error_default
        raise HTTPError(req.full_url, code, msg, hdrs, fp)
    urllib.error.HTTPError: HTTP Error 503: Service Unavailable
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DCB3A622-517D-4C6F-9F01-320187C90FD9/workflow/workflow.py", line 2107, in run
        func(self)
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DCB3A622-517D-4C6F-9F01-320187C90FD9/main.py", line 111, in main
        from justwatch import JustWatch
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DCB3A622-517D-4C6F-9F01-320187C90FD9/./lib/justwatch/__init__.py", line 1, in <module>
        from .justwatchapi import JustWatch
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DCB3A622-517D-4C6F-9F01-320187C90FD9/./lib/justwatch/justwatchapi.py", line 7, in <module>
        HEADER = {'User-Agent': UserAgent().random}
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DCB3A622-517D-4C6F-9F01-320187C90FD9/lib/agent/agent.py", line 69, in __init__
        self.load()
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DCB3A622-517D-4C6F-9F01-320187C90FD9/lib/agent/agent.py", line 75, in load
        self.data = load_cached(
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DCB3A622-517D-4C6F-9F01-320187C90FD9/lib/agent/utils.py", line 250, in load_cached
        update(path, use_cache_server=use_cache_server, verify_ssl=verify_ssl)
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DCB3A622-517D-4C6F-9F01-320187C90FD9/lib/agent/utils.py", line 245, in update
        write(path, load(use_cache_server=use_cache_server, verify_ssl=verify_ssl))
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DCB3A622-517D-4C6F-9F01-320187C90FD9/lib/agent/utils.py", line 187, in load
        ret = json.loads(get(
      File "/Users/UserName/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.DCB3A622-517D-4C6F-9F01-320187C90FD9/lib/agent/utils.py", line 84, in get
        raise FakeUserAgentError('Maximum amount of retries reached')
    NameError: name 'FakeUserAgentError' is not defined
    [21:32:37.810] JustWatch - Alfred[Script Filter] {
      "items": [
        {
          "title": "Error in workflow 'JustWatch - Alfred'",
          "subtitle": "name 'FakeUserAgentError' is not defined",
          "valid": false,
          "icon": {
            "path": "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"
          }
        }
      ]
    }

     

  3. Installed version 3.0.1 and this is the error I'm getting after installation:

     

    [12:49:24.361] AirPods Pro Connector[Script Filter] Processing complete
    [12:49:24.370] AirPods Pro Connector[Script Filter] Passing output '--connect 1C-52-16-D7-F4-6E' to Run Script
    [12:49:24.371] ERROR: AirPods Pro Connector[Run Script] zsh:3: command not found: BluetoothConnector

     

    Mac's running on Monterey 12.3.1.

  4. On 3/7/2021 at 3:58 AM, deanishe said:

    @deanishe Hello, this is what I got.

     

    
    /usr/bin/python -c 'import urllib; urllib.urlopen("https://api.themoviedb.org/3/")'

    /usr/bin/python -c 'import urllib; urllib.urlopen("https://api.themoviedb.org/3/")'
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 87, in urlopen
        return opener.open(url)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 213, in open
        return getattr(self, name)(url)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 443, in open_https
        h.endheaders(data)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1049, in endheaders
        self._send_output(message_body)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 893, in _send_output
        self.send(msg)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 855, in send
        self.connect()
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1274, in connect
        server_hostname=server_hostname)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 352, in wrap_socket
        _context=self)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 579, in __init__
        self.do_handshake()
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 808, in do_handshake
        self._sslobj.do_handshake()

    IOError: [Errno socket error] [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)

     

     

    
    /usr/bin/python -c 'import urllib; urllib.urlopen("https://github.com/")'

     

    /usr/bin/python -c 'import urllib; urllib.urlopen("https://github.com/")'

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 87, in urlopen
        return opener.open(url)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 213, in open
        return getattr(self, name)(url)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 443, in open_https
        h.endheaders(data)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1049, in endheaders
        self._send_output(message_body)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 893, in _send_output
        self.send(msg)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 855, in send
        self.connect()
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1274, in connect
        server_hostname=server_hostname)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 352, in wrap_socket
        _context=self)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 579, in __init__
        self.do_handshake()
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 808, in do_handshake
        self._sslobj.do_handshake()
    IOError: [Errno socket error] [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)

     

  5. So, I clicked on that URL and both times (with and without Little Snitch) I got a page with all kinds of information about the show on my search. The worklfow still keeps giving me the same connection error though (both times as well).

     

    It worked flawlessly with the version I had before (from 2016, if I'm not mistaken). Is there something in the latest update that might not work on 10.11? Tested it with the VPN off, but no luck.

     

    Tested it on a MacBook Pro running on 10.13.6 as well, it works fine there.

  6. 6 hours ago, tone said:

    {"status_code":7,"status_message":"Invalid API key: You must be granted a valid key.","success":false}

     

    Hi @tone,

     

    I got the same message.

     

    I'm on 10.11.6 and Alfred version is 4.3.2. Now, the python version is 2.7.10 according to Terminal. But then I remembered I had updated it recently, so Alfred shows me the newer version. I thought updating Python automatically got rid of older versions? Let me know if you need more info. 

     

     

    python.png

  7. I recently updated this workflow and it stopped working. My internet connection is working fine, I also checked Little Snitch but Alfred is not blocked. Tried reinstalling it, but keep getting the same error.

     

     

    [14:31:17.000] Movie and TV Show Search[Script Filter] Queuing argument ''
    [14:31:17.109] Movie and TV Show Search[Script Filter] Script with argv '' finished
    [14:31:22.255] Movie and TV Show Search[Script Filter] Queuing argument 'the good wife'
    [14:31:23.023] Movie and TV Show Search[Script Filter] Script with argv '(null)' finished
    [14:31:23.027] STDERR: Movie and TV Show Search[Script Filter] 14:31:22 workflow.py:2225 DEBUG    Workflow version : 2.8.0
    14:31:22 workflow.py:1628 DEBUG    Reading settings from `/Users/XX/Library/Application Support/Alfred/Workflow Data/com.mcknight.movies/settings.json` ...
    14:31:22 workflow.py:2423 DEBUG    Set last run version : 2.8.0
    14:31:22 workflow.py:2267 DEBUG    Workflow finished in 0.502 seconds.
    [14:31:23.027] Movie and TV Show Search[Script Filter] <?xml version="1.0" encoding="utf-8"?>
    <items><item valid="no"><title>Uh oh... something went wrong</title><subtitle>Please check your internet connection.</subtitle></item></items>

  8. 1 hour ago, Gareth said:

    Just installed Alfred 4. I kinda hoped this feature would have been added as one of the benefits of the upgrade, but nope.


    I'm a so-called Mega supporter - a decision I made back when I was still using Chrome, before Firefox became the superior browser.

     

    Alfred's upgrade process asked me if I wanted to make an additional contribution towards its development and I'm afraid the answer was no - and will continue to be no - while the feature I want most remains on your ignore list.

     

    Oh, I was too hoping that this will be supported. Too bad it isn't :(

  9. Long time user of this workflow,  just updated to the newest version and I find I cannot add cities anymore. So I clicked on "debug," and this is what I get:

     

    Quote

    [2018-09-19 13:49:42][input.keyword] Processing output of 'action.script' with arg 'Boston'
    [2018-09-19 13:49:44][action.script] Processing output of 'output.notification' with arg 'Sorry. There was a problem trying to add "Boston" to your TimeZone list.
    '

     

    Is anyone having the same problem?

  10. Anyone else still using this workflow? Mine stopped working today.

     

    Quote

    [2017-02-05 15:51:53][ERROR: input.scriptfilter] Code 1: Traceback (most recent call last):
      File "<string>", line 3, in <module>
      File "movies_helper.py", line 41, in helper
        return display_movie_info(the_id)
      File "movies_helper.py", line 60, in display_movie_info
        if "Title" in movie and "Year" in movie and "Runtime" in movie and "imdbRating" in movie:
    TypeError: argument of type 'NoneType' is not iterable

     

×
×
  • Create New...