zkviz icon indicating copy to clipboard operation
zkviz copied to clipboard

Script does not find any files

Open ghost opened this issue 4 years ago • 4 comments

I am trying to run this on both .md files and .wiki files (with the --pattern option) and even if I specify the directory, the script always returns:

no@x60:~/envs/zkviz/bin$ ~/envs/zkviz/bin/zkviz --only-list --notes-dir "/home/no/try/vimwiki/LT/Ab1.md" "/home/no/try/vimwiki/LT/Ab2.md" --only-list
Traceback (most recent call last):
  File "/home/no/envs/zkviz/bin/zkviz", line 11, in <module>
    load_entry_point('zkviz==1.3.0', 'console_scripts', 'zkviz')()
  File "/home/no/envs/zkviz/lib/python3.6/site-packages/zkviz/zkviz.py", line 168, in main
    raise FileNotFoundError("I'm sorry, I couldn't find any files.")
FileNotFoundError: I'm sorry, I couldn't find any files.

Am I missing something obvious here? I have all graphviz packages installed from what I can tell and even with --only-list, as above, it does not work.

ghost avatar Jan 06 '20 18:01 ghost

I think the --notes-dir argument should be preceded by a directory path for file globbing, while you supply a file path; does this work?

$ ~/envs/zkviz/bin/zkviz --only-list --notes-dir "/home/no/try/vimwiki/LT" --only-list

DivineDominion avatar Jan 07 '20 07:01 DivineDominion

Thanks for the reply, but unfortunately your suggestion does not work either.

ghost avatar Jan 07 '20 10:01 ghost

Same problem over here.

~/envs/zkviz/bin/zkviz --only-list --notes-dir "~/Dropbox/001\ Megawiki/Zettelkasten" --only-list
Traceback (most recent call last):
  File "/Users/bernardovasconcelos/envs/zkviz/bin/zkviz", line 11, in <module>
    load_entry_point('zkviz==1.3.0', 'console_scripts', 'zkviz')()
  File "/Users/bernardovasconcelos/envs/zkviz/lib/python3.8/site-packages/zkviz/zkviz.py", line 168, in main
    raise FileNotFoundError("I'm sorry, I couldn't find any files.")
FileNotFoundError: I'm sorry, I couldn't find any files.

bcdavasconcelos avatar Jan 14 '20 04:01 bcdavasconcelos

My mistake. I didn't notice that the script was expecting a zettel id in the format yyyyMMdd before the file.

bcdavasconcelos avatar Jan 15 '20 11:01 bcdavasconcelos