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

search: cannot import name '_psutil_osx' from partially initialized module 'psutil' (most likely due to a circular import) #3

Closed carmensandoval closed 3 years ago

carmensandoval commented 3 years ago

Hi 👋

I seem to have a problem with the search utility. The debug log shows that one of the scripts is unable to fully load the psutil module. I wonder if this is due to my using Anaconda as my Python environment.

Any idea what I coulld do to fix this? Thanks!

Alfred Preferences_20210110_14 48 23

macedotavares commented 3 years ago

I'm inclined to say yes, Anaconda may be causing it, but I'll have to look into it in the next couple of days.

  1. Does this happen when running other actions that include python scripts, like Cmd+Shift+L?
  2. What happens if you change the shebang at the top of the script file to #!/usr/bin/env python3?
macedotavares commented 3 years ago

The action no longer uses python. It should work now. Please download v2.0.2.

macedotavares commented 3 years ago

I'm closing this. If something goes wrong now, it will have nothing to do with this matter.