Jump to content

Yourname

Member
  • Posts

    33
  • Joined

  • Last visited

Posts posted by Yourname

  1. 24 minutes ago, vitor said:

     

    Python 2 and 3 are incompatible with each other. That’s a whole thing and doesn’t matter unless you’re interested in the history, but suffice it to say there’s a reason the binaries have different names.


    I can attest the Cleobis fork works, so look in the debugger to see what the error is.


    Also check the post on python 2. It has explanations and solutions. When looking for alternatives, be sure to check the Gallery.

     

    Thanks! Here's the debugger output: 

     

    [12:09:13.120] Calendar[Script Filter] Queuing argument ''
    [12:09:13.137] Calendar[Script Filter] Script with argv '(null)' finished
    [12:09:13.140] ERROR: Calendar[Script Filter] Code 1: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

     

  2. So for the longest time I've been using Cal by Owen Min. Then just a couple days ago, I got an error about /usr/bin/python which led me down a rabbithole that I might need python3 (not sure why not, because I've had python and python3 for quite some time). Except, I already had python3. Long story short, I then installed a Cal fork by cleobis that works with python3 and my macOS (Monterey). But I installed that, and typing in cal does not nothing. It doesn't even show in the dropdown, but the config option shows (calconfig) which does nothing too other than showing up. 

     

    Now I notice that hotkey workflows work, but keyword based workflows don't. Some show but don't work, and some show and still work. 

    The only thing I can think of is that I have python and python3 both already installed and I wonder if a variable somewhere isn't set.

     

    Would love some help please!

  3. On 5/29/2020 at 9:07 PM, deanishe said:

    httplib is Python 2. It has been renamed in Python 3. Try /usr/local/binpythonor/usr/local/bin/python2` instead.

     

     

    Couldn't find 2 in /local/bin, so ended up trying /usr/bin/python2.7 (the nearest one to what you asked, and I had available) and it worked!!!!!! Thanks soooooo much @deanishe!!!!

    Thank you so much for writing this and helping me figure out @wrjlewis!!

  4. So, @deanishe and @wrjlewis, looks like @deanishe's suggestion moved us into a new (and shorter) error. 

     

    I updated the command to:

     

    /usr/local/bin/python3.7 notion.py "{query}"

    I even tried /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 notion.py "{query}"

     

    [16:47:43.582] Logging Started...
    [16:47:45.922] Notion Search[Script Filter] Queuing argument 'y'
    [16:47:46.038] Notion Search[Script Filter] Script with argv '(null)' finished
    [16:47:46.043] ERROR: Notion Search[Script Filter] Code 1: Traceback (most recent call last):
      File "notion.py", line 3, in <module>
        import httplib, urllib
    ModuleNotFoundError: No module named 'httplib'

     

  5. Hi @wrjlewis and @deanishe, sorry just saw this! I haven't made an alias of python because I saw somewhere a few days ago pretty much what @deanishe said (in much more complicated terms haha)

     

    I'm on Sierra 10.12.6 and this is my current PATH:

    MacBook-Pro-5:~ xyz$ echo $PATH
    
    /usr/local/opt/openssl@1.1/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/opt/openssl/bin:/usr/local/opt/python/libexec/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/heroku:/usr/local/heroku/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin

     

  6. 8 hours ago, wrjlewis said:


    Hmmm. I'm stumped as to why this may be happening still. My knowledge of SSL/TLS doesn't extend this far and without being able to replicate this locally I'm struggling to offer further advice. 

    The stack overflow link I thought was relevant is here. Plenty of possible solutions there, though as I said, without being able to replicate myself I can't tell which solution might help. 

    I would recommend posting this issue on the github repo, perhaps someone else there can provide some further insight. 

     

     

     

    Tried everything from there. The error in alfred though seems to reference python 2.7 even though BASH has 3.7 showing. Which is peculiar. 

    But I give up. Notion is coming up with an API soon, so hopefully then it will work :)

     

    Thanks so much for assistng @wrjlewis!

  7. Here are the newly updated versions:

     

    MacBook-Pro-5:~ xyz$ openssl version -a
    OpenSSL 1.1.1g  21 Apr 2020
    built on: Tue May 19 22:37:37 2020 UTC
    platform: darwin64-x86_64-cc
    options:  bn(64,64) rc4(16x,int) des(int) idea(int) blowfish(ptr) 
    compiler: clang -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DRC4_ASM -DMD5_ASM -DAESNI_ASM -DVPAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DX25519_ASM -DPOLY1305_ASM -D_REENTRANT -DNDEBUG
    OPENSSLDIR: "/usr/local/etc/openssl@1.1"
    ENGINESDIR: "/usr/local/Cellar/openssl@1.1/1.1.1g/lib/engines-1.1"
    Seeding source: os-specific
    MacBook-Pro-5:~ xyz$ python -c "import ssl; print(ssl.OPENSSL_VERSION)"
    OpenSSL 1.1.1g  21 Apr 2020
    MacBook-Pro-5:~ xyz$ python --version
    Python 3.7.7

     

  8. On 5/15/2020 at 10:08 AM, wrjlewis said:

    It could be a couple of things - but I would suggest trying to update your SSL version first, as you've got a fairly old version.

     

    Can you follow the steps in the top answer below?

    https://apple.stackexchange.com/questions/126830/how-to-upgrade-openssl-in-os-x

     

    If you haven't got 'brew' installed, which can be used to upgrade ssl (and loads of other packages),  it can be done with 

    
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

     

     

    Thanks @wrjlewis!

    I upgraded and now it's openssl 1.1.1g 21 apr 2020

     

    And here's the new log of errors;

     

    [18:30:47.655] Notion Search[Script Filter] Queuing argument 'task'
    [18:30:47.867] Notion Search[Script Filter] Script with argv '(null)' finished
    [18:30:47.872] ERROR: Notion Search[Script Filter] Code 1: Traceback (most recent call last):
      File "notion.py", line 114, in <module>
        buildNotionSearchQueryData(alfredQuery), headers)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1053, in request
        self._send_request(method, url, body, headers)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1093, in _send_request
        self.endheaders(body)
      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()
    ssl.SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)

     

  9. On 5/12/2020 at 12:18 PM, wrjlewis said:

     

    Have you copied the cookie and spaceid over to the env variables of the workflow?

    Can you show me the output of the debug window when you try and search with the debugging view on? https://www.alfredapp.com/help/workflows/advanced/debugger/

     

    Yes I did @wrjlewis My cookie starts with __cfduid= but your readme says the cookie starts with notion_browser_id. I tried both ways, also by deleting the __cfduid part so it starts with notion_browser_id and it didn't work.

     

    Here's the debug:

    [07:50:54.665] Notion Search[Script Filter] Queuing argument 'evernote'
    [07:50:54.886] Notion Search[Script Filter] Script with argv '(null)' finished
    [07:50:54.897] ERROR: Notion Search[Script Filter] Code 1: Traceback (most recent call last):
      File "notion.py", line 114, in <module>
        buildNotionSearchQueryData(alfredQuery), headers)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1053, in request
        self._send_request(method, url, body, headers)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1093, in _send_request
        self.endheaders(body)
      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()
    ssl.SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)

     

  10. Followed all the steps to a tee. But still migration doesn't seem to have some of the workflows, KB shortcuts and now clipboard isn't adding to the "last copied" list.

    I backed up too, so not sure what the problem is. 

     

    My first attempt did not seem to restore. I found this by looking at my theme, which didn't carry over to v4. So I went back to redo the migration by going ~/Library folder (per the troubleshooting). Except I saw three folders:

    Alfred

    Alfred 3

    Alfred 4

     

    But found the files to delete in Alfred folder. 

    Anyway, long story short. I'm left with the backed up .tar.gz file and I am not quite sure what to do next to bring Alfred 4 up to par with how I had Alfred 3 setup.

    Incredibly frustrated.

  11. The biggest frustration I had was the lack of a global quick add shortcut for Notion. So after searching around, I found this article by Tom Barav, with an instructional video created by Tal Cherniak.

    These are the steps they mention that need to be done BEFORE you download and install the workflow attached. These are not my steps. These steps are thanks to Tal Cherniak, made available by Tom Barav.

     

    1. First install the Google Chrome Notion clipper
    2. Click on the clipper icon on Google chrome when it installs
    3. Right click it and click inspect
    4. Go to console and type window.location
    5. If it doesn't show up, you're going to have to click on the eye for "Live expression" (as of Chrome 81.0) and retype it
    6. Copy the URL you see from it, and enter it in a new Chrome tab
    7. Then go to Chrome sidebar options, More tools and click "Create shortcut"
    8. It will open, type in a name and check "Open as window". Name doesn't matter because you'll simply use a keyboard shortcut. I named mine 'nt'
    9. As soon as you confirm that, a Finder window will open and show you that nt.app was saved in one of Chrome's folders.

     

    My "workflow" is just a keyboard shortcut. When you're done importing it, change it to whatever you prefer.

    This workflow does the following:

    • Creates a shortcut Control + Option + Command + N
    • Assumes your Chrome App is named nt 

     

    PS: This is super rudimentary, so an actual notion guru can feel free to step in if there needs to be a fix or enhancement.

     

    Download it from my Google Drive here.

     

     

     

     

     

  12. Thanks @deanishe! Python makes sense for parsing - didn't think of that at all. 

     

    So when I realized there needs to be a parser, I realized I have Pushbullet on my Google Chrome, and on my phone. I ended up sending the newly created Asana task ID to Pushbullet instead, and now I get a clickable notification.

     

    Now I can create a task, and click into it if I need to assign the task to a project, add context, etc.

     

    Screen Shot 2019-10-01 at 4.57.53 AM.png

    Screen Shot 2019-10-01 at 4.58.09 AM.png

  13. Actually, sorry ... should have clarified @deanishe, but that's not a webpage. That's actually the return of zap. Pretty much the first screenshot posted by @paulminors above where the notification showed {"status: success", etc. 

     

    That means the zap was sending the success message, along with ID back into the notification. It's just a matter of capturing it and turning it into a URL so the notification becomes an href. Hope this clarifies.. would love to see if we can do that, because this is 100% API.

  14. Sorry to open this old thread up but @deanishe, I am trying to convert the post notification into a clickable notification so upon clicking, it would go to the newly created Asana task. 

    But I've found that it can't be done as people have requested it as a feature.

     

    So I resorted to using "Open URL" as output. All I have to do is put this as static: https://app.asana.com/0/45482574283XXX/{taskID} and take the taskid returned by the successful zapier run. Except I can't figure out how to get that return and put it in there.. using just the variable from Zapier doesn't work either.

     

     

    Screen Shot 2019-09-30 at 6.01.07 AM.png

  15. On 11/27/2017 at 4:38 AM, Vero said:

    @Yourname Given that the crash is happening in Evernote itself, I would suggest contacting Evernote with this information. In normal conditions, a workflow might not return results if an app isn't working as expected, but it shouldn't cause an app to crash.

     

    Your best bet is to send the crash logs to Evernote,  with as much detail as possible (e.g. is the app already launched when you search using the workflow, or does it crash on launch) etc...

     

    Cheers,
    Vero

     

    Done. Been doing that for a year now, haven't heard back ever... :(

×
×
  • Create New...