Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script does not find any files #22

Open
ghost opened this issue Jan 6, 2020 · 4 comments
Open

Script does not find any files #22

ghost opened this issue Jan 6, 2020 · 4 comments

Comments

@ghost
Copy link

ghost commented Jan 6, 2020

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.

@DivineDominion
Copy link
Contributor

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

@ghost
Copy link
Author

ghost commented Jan 7, 2020

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

@bcdavasconcelos
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants