macedotavares / obsidian-utilities

An Alfred workflow focusing on quick entry and logging.
https://github.com/macedotavares/obsidian-utilities
GNU General Public License v3.0
169 stars 7 forks source link

Error when running clip workflow #12

Closed tnorthcutt closed 3 years ago

tnorthcutt commented 3 years ago

Thanks for creating this! Working great for me so far with one exception: the clip workflow.

I get this error message most times (although sometimes it fails silently):

CleanShot 2021-01-28 at 12 00 01@2x

Here's the truncated output of the Alfred workflow debugger:

[12:08:13.341] Obsidian Utilities[Keyword] Processing complete
[12:08:13.348] Obsidian Utilities[Keyword] Passing output '' to Run Script
[12:08:13.348] Obsidian Utilities[Keyword] Passing output '' to Arg and Vars
[12:08:13.349] Obsidian Utilities[Arg and Vars] Processing complete
[12:08:13.349] Obsidian Utilities[Arg and Vars] Passing output '' to Run Script
[12:08:13.707] Obsidian Utilities[Run Script] Processing complete
[12:08:13.707] Obsidian Utilities[Run Script] Passing output '' to Run Script
[12:08:14.130] STDERR: Obsidian Utilities[Run Script] #=#=#                                                                         
##O#- #           

 ######################################################################## 100.0%##O=#  #
[12:08:14.136] Obsidian Utilities[Run Script] Processing complete
[12:08:14.136] Obsidian Utilities[Run Script] Passing output '

 <!DOCTYPE html>
 <html lang="en">
  <body>
  SNIPPED FOR SPACE SAVING
  </body>
 </html>' to Run Script

I would love to help debug this so that others might benefit from figuring out what's going on.

If it's helpful, I'm on macOS 10.15.7. I have python3 installed with homebrew, but it's also available at /usr/bin/python3 so I think that should be ok. Running /usr/bin/python3 in my terminal does bring up a repl, so it seems like that part should work fine.

Any ideas on how best to figure this out?

Thanks!

macedotavares commented 3 years ago

Just to be sure: are you running v.2.2.1?

tnorthcutt commented 3 years ago

Yep! I installed it today 😄

macedotavares commented 3 years ago

The external script module pointing to html2text had the wrong path. Please replace it with scripts/html2md.py. I'll fix this for the next version.

Thanks!

tnorthcutt commented 3 years ago

Oh great, thank you! Works perfectly now.