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

command line not running <stdin>?? #10

Closed
rjmoggach opened this issue Jun 17, 2016 · 3 comments
Closed

command line not running <stdin>?? #10

rjmoggach opened this issue Jun 17, 2016 · 3 comments

Comments

@rjmoggach
Copy link

Traceback (most recent call last):
  File "/usr/local/bin/csv2ofx", line 20, in <module>
    run()
  File "/Users/rob/Downloads/csv2ofx-master/csv2ofx/main.py", line 130, in run
    mtime = p.getmtime(args.source.name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/genericpath.py", line 62, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: '<stdin>'
@rjmoggach
Copy link
Author

this is probably because there was no file added on the command line - should fallback to showing the usage

@reubano
Copy link
Owner

reubano commented Aug 5, 2016

What command did you enter?

reubano added a commit that referenced this issue Feb 10, 2017
* features:
  Bump to version 0.20.0
  [BUGFIX] Allow static ‘account’ key (fixes #19)
  Fix pylint errors
  [CHANGE] Remove ‘--split’ cli option (closes #15)
  Fix pylint errors
  Exit with message instead of raising an error
  [NEW] Add investment trxn support (closes #17)
  [CHANGE] Always return string from footer()
  [BUGFIX] Don’t error if source file isn’t found
  Rename short variables and uppercase trxn type
  Add function descriptions and fix typos
  Print help text when called with no args (fixes #10)
@sphakka
Copy link
Collaborator

sphakka commented Nov 8, 2019

Weird, this is back in a python2-based virtualenv:

$ csv2ofx 
[Errno 2] No such file or directory: '<stdin>'
$ python -V
Python 2.7.16

I don't know if it's worth to fix, given that Python-2 won't be maintained any longer from Jan 1st 2020. All right with Python-3.6.9

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

3 participants