brumik / ollama-obsidian-indexer

ollama-obsidian-indexer
63 stars 11 forks source link

service won't start #17

Open emory opened 3 months ago

emory commented 3 months ago

hello,

this service won't sucessfully start for me. workstation:

% sw_vers
ProductName:        macOS
ProductVersion:     14.5
BuildVersion:       23F79

% uname -a
Darwin RESML-1726137 23.5.0 Darwin Kernel Version 23.5.0: Wed May  1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64

and when following the steps of the README, installed poetry(1) via homebrew.  

/Volumes/µ/fs/resilio/Learning & Labs/AI/ollama-obsidian-indexer on main [!] took 1m10s
% poetry run ./ollama_obsidian_indexer/index.py
The currently activated Python version 3.12.3 is not supported by the project (>=3.10,<3.12).
Trying to find and use a compatible version.
Using python3.11 (3.11.9)

[Errno 13] Permission denied: './ollama_obsidian_indexer/index.py'

/Volumes/µ/fs/resilio/Learning & Labs/AI/ollama-obsidian-indexer on main [!] took 2s
1 % ls -la ./ollama_obsidian_indexer/index.py
.rw-r--r-- rlundb811@cable.comcast.com staff 384 B Mon Jun 17 18:13:55 2024  ./ollama_obsidian_indexer/index.py

/Volumes/µ/fs/resilio/Learning & Labs/AI/ollama-obsidian-indexer on main [!]
% chmod ugo+rx  ./ollama_obsidian_indexer/index.py

/Volumes/µ/fs/resilio/Learning & Labs/AI/ollama-obsidian-indexer on main [!]
% poetry run ./ollama_obsidian_indexer/index.py
The currently activated Python version 3.12.3 is not supported by the project (>=3.10,<3.12).
Trying to find and use a compatible version.
Using python3.11 (3.11.9)

[Errno 8] Exec format error: './ollama_obsidian_indexer/index.py'

not sure what format python is confused by, that file is ascii text containing python code.

brumik commented 3 months ago

I think the issue is with permissions:

[Errno 13] Permission denied: './ollama_obsidian_indexer/index.py'

Macs are kinda weird, you probably need to give the terminal access to the folder where the project is. After that if you still get perms error, should check if poetry can run anything from that folder (hello world in python).