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

Provide warning in README or program, that exact path of CSV must be provided #2

Open
Riveascore opened this issue Feb 13, 2023 · 1 comment

Comments

@Riveascore
Copy link

Summary

If I try to run using a relative path ./a_text_exports/Default.csv, I get an error (posted at bottom).

I have to use the exact path:
/Users/USER/Downloads/alfred-snippets-master/a_text_exports/Default.csv

So it might be worth mentioning in the README, or just allow relative path inputs.

Full Error:

/Users/USER/Downloads/alfred-snippets-master/./convert-aText-to-Alfred.py:27: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  tempdict["name"] = entry[2] if entry[2] is not "" else entry[0][1:]
Traceback (most recent call last):
  File "/Users/USER/Downloads/alfred-snippets-master/./convert-aText-to-Alfred.py", line 68, in <module>
    main()
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/Users/USER/Downloads/alfred-snippets-master/./convert-aText-to-Alfred.py", line 61, in main
    with zipfile.ZipFile(outputFilename, "w", zipfile.ZIP_DEFLATED) as zf:
  File "/usr/local/Cellar/[email protected]/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/zipfile.py", line 1249, in __init__
    self.fp = io.open(file, filemode)
FileNotFoundError: [Errno 2] No such file or directory: './a_text_exports/Default.alfredsnippets'
@AndiH
Copy link
Owner

AndiH commented Feb 13, 2023

The project is stale since 7 years and I haven't used it since. If you think the comment would improve the README, I'm glad to merge a pull request!

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