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

backtrace trying to run reckon -f #2

Closed
philips opened this issue Feb 17, 2013 · 3 comments
Closed

backtrace trying to run reckon -f #2

philips opened this issue Feb 17, 2013 · 3 comments

Comments

@philips
Copy link

philips commented Feb 17, 2013

Hi!

Thanks for writing reckon. I have been using csv2ledger and would love to use the bayesian features of reckon. However, I am hitting a bug trying it out:

$ cat /tmp/demo.csv
Type,Trans Date,Post Date,Description,Amount
Sale,12/30/2012,01/01/2013,"PAYPAL",-32.00

$ reckon -f /tmp/demo.csv -p

What is the account name of this bank account in Ledger? |Assets:Bank:Checking| 
I didn't find a high-likelyhood money column, but I'm taking my best guess with column 5.
/Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:191:in `pretty_date_for': undefined method `strftime' for nil:NilClass (NoMethodError)
    from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:309:in `each_row_backwards'
    from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:308:in `each'
    from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:308:in `each_row_backwards'
    from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:201:in `output_table'
    from /Library/Ruby/Gems/1.8/gems/terminal-table-1.4.5/lib/terminal-table/table.rb:210:in `yield_or_eval'
    from /Library/Ruby/Gems/1.8/gems/terminal-table-1.4.5/lib/terminal-table/table.rb:17:in `initialize'
    from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:199:in `new'
    from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:199:in `output_table'
    from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/bin/reckon:10
    from /usr/bin/reckon:19:in `load'
    from /usr/bin/reckon:19
@cantino
Copy link
Owner

cantino commented Feb 17, 2013

Hello! Try adding --contains-header when you run reckon if your CSV
file has a header at the top.

On Sat, Feb 16, 2013 at 5:43 PM, Brandon Philips
notifications@github.comwrote:

Hi!

Thanks for writing reckon. I have been using csv2ledger and would love to
use the bayesian features of reckon. However, I am hitting a bug trying it
out:

$ cat /tmp/demo.csv
Type,Trans Date,Post Date,Description,Amount
Sale,12/30/2012,01/01/2013,"PAYPAL",-32.00

$ reckon -f /tmp/demo.csv -p

What is the account name of this bank account in Ledger? |Assets:Bank:Checking|
I didn't find a high-likelyhood money column, but I'm taking my best guess with column 5.
/Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:191:in pretty_date_for': undefined methodstrftime' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:309:in each_row_backwards' from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:308:ineach'
from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:308:in each_row_backwards' from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:201:inoutput_table'
from /Library/Ruby/Gems/1.8/gems/terminal-table-1.4.5/lib/terminal-table/table.rb:210:in yield_or_eval' from /Library/Ruby/Gems/1.8/gems/terminal-table-1.4.5/lib/terminal-table/table.rb:17:ininitialize'
from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:199:in new' from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:199:inoutput_table'
from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/bin/reckon:10
from /usr/bin/reckon:19:in `load'
from /usr/bin/reckon:19


Reply to this email directly or view it on GitHub/~https://github.com//issues/2.

@philips
Copy link
Author

philips commented Feb 17, 2013

Perfect. Thanks. Closing.

Brandon

On Sat, Feb 16, 2013 at 5:50 PM, Andrew Cantino notifications@github.comwrote:

Hello! Try adding --contains-header when you run reckon if your CSV
file has a header at the top.

On Sat, Feb 16, 2013 at 5:43 PM, Brandon Philips
notifications@github.comwrote:

Hi!

Thanks for writing reckon. I have been using csv2ledger and would love
to
use the bayesian features of reckon. However, I am hitting a bug trying
it
out:

$ cat /tmp/demo.csv
Type,Trans Date,Post Date,Description,Amount
Sale,12/30/2012,01/01/2013,"PAYPAL",-32.00

$ reckon -f /tmp/demo.csv -p

What is the account name of this bank account in Ledger?
|Assets:Bank:Checking|
I didn't find a high-likelyhood money column, but I'm taking my best
guess with column 5.
/Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:191:in
pretty_date_for': undefined methodstrftime' for nil:NilClass
(NoMethodError)
from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:309:in
each_row_backwards' from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:308:in each'
from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:308:in
each_row_backwards' from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:201:in output_table'
from
/Library/Ruby/Gems/1.8/gems/terminal-table-1.4.5/lib/terminal-table/table.rb:210:in
yield_or_eval' from /Library/Ruby/Gems/1.8/gems/terminal-table-1.4.5/lib/terminal-table/table.rb:17:in initialize'
from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:199:in
new' from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/lib/reckon/app.rb:199:in output_table'
from /Library/Ruby/Gems/1.8/gems/reckon-0.3.4/bin/reckon:10
from /usr/bin/reckon:19:in `load'
from /usr/bin/reckon:19


Reply to this email directly or view it on GitHub<
/~https://github.com/cantino/reckon/issues/2>.


Reply to this email directly or view it on GitHub/~https://github.com//issues/2#issuecomment-13679081.

@philips philips closed this as completed Feb 17, 2013
@cantino
Copy link
Owner

cantino commented Feb 17, 2013

No worries! I added it to the README since other people have run into it as well.

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