/home/user1/beancount/foo.beancount:4505: Invalid token: 'taxed' /home/user1/beancount/foo.beancount:4517: syntax error, unexpected COLON, expecting EOL or COMMENT or ATAT or AT /home/user1/beancount/foo.beancount:4517: Invalid token: 'k' /home/user1/beancount/foo.beancount:4522: Invalid token: 'taxed' /home/user1/beancount/foo.beancount:4532: syntax error, unexpected COLON, expecting EOL or COMMENT or ATAT or AT /home/user1/beancount/foo.beancount:4532: Invalid token: 'k' /home/user1/beancount/foo.beancount:4537: Invalid token: 'taxed' /home/user1/beancount/foo.beancount:4547: syntax error, unexpected COLON, expecting EOL or COMMENT or ATAT or AT /home/user1/beancount/foo.beancount:4547: Invalid token: 'k' /home/user1/beancount/foo.beancount:4552: Invalid token: 'taxed' /home/user1/beancount/foo.beancount:4566: syntax error, unexpected COLON, expecting EOL or COMMENT or ATAT or AT /home/user1/beancount/foo.beancount:4566: Invalid token: 'k' /home/user1/beancount/foo.beancount:4571: Invalid token: 'taxed' /home/user1/beancount/foo.beancount:4581: syntax error, unexpected COLON, expecting EOL or COMMENT or ATAT or AT /home/user1/beancount/foo.beancount:4581: Invalid token: 'k' /home/user1/beancount/foo.beancount:4586: Invalid token: 'taxed'
Okay, I was finally able to run bean-check without any errors. I will write down things I did in hopes that it will help someone else. I wouldn't have been able to do with without folks on the IRC channel, they were really helpful.
The gnucash-to-beancount script opens all the accounts at the beginning of the file but on some accounts the dates are later then some of the transactions in the file, which produces the inactive account error. I changed the dates for the opening statements to when the earliest transaction was for that account. Then basically iterate this for the rest of the accounts with the same error.
Another big problem was that fact that I had a lot of account names that are valid in gnucash which aren't valid in beancount.
* Accounts starting with lowercase
* Accounts starting with numbers
* Accounts with & in their name (e.g., Expenses:Gas-&-Electric)
* Accounts with apostrophes
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/fa929358-330c-4085-a3cf-9719be0e816b%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/MaaASKR1SSI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/dd3853c5-acf2-4150-883c-4aeee5f1ffba%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAPdojAhQ9XT_xrhWjcpeBnDjK3T8ujRZ7sfjzO%2BcwSbTbq_RRw%40mail.gmail.com.
I can report that this was able to convert my 2014 and 2015 files no problem. Now I just have to backport all the transactions...
So thanks for that. ;)
enjoy!
To unsubscribe from this group and all its topics, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/dd3853c5-acf2-4150-883c-4aeee5f1ffba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAPdojAhQ9XT_xrhWjcpeBnDjK3T8ujRZ7sfjzO%2BcwSbTbq_RRw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhMfTARY1yLbv%2BNCEcC%3DHhjejPX9%2B3DG1W39fvGLAFyZug%40mail.gmail.com.
I can report that this was able to convert my 2014 and 2015 files no problem. Now I just have to backport all the transactions...
So thanks for that. ;)
On Sat, Dec 9, 2017, 5:16 PM Martin Blais <bl...@furius.ca> wrote:
I added this to the contributions index.Thanks!
On Mon, Dec 4, 2017 at 9:17 PM, Andrew Stein <andrew...@gmail.com> wrote:
enjoy!Andrew Stein
- piecash (even newer versions) complained about my GnuCash file, saying "AssertionError: Unsupported table versions".
I have another gnucash file but that one is in xml format. So will be working on figuring out how to convert that to beancount.
I have another gnucash file but that one is in xml format. So will be working on figuring out how to convert that to beancount.I converted from XML by first using gnucash to save in the other format.
My notes are at https://www.mail-archive.com/search?l=beancount@googlegroups.com&q=subject:%22Re%5C%3A+Need+help+converting+from+gnucash%22&o=newest&f=1 in case they're helpful.James
Thanks! I could use File->'Save As' to save the gnucash xml file into sqlite format.Also I just had a top level income category in gnucash. Bean-check did not like it. So I created an Income:Revenue account at top,and changed all the income entries to Income:Revenue.The notes url link below did not work for me though.Best regards,
Anand
On Saturday, August 1, 2020 at 2:09:43 AM UTC-5, James Cook wrote:
I have another gnucash file but that one is in xml format. So will be working on figuring out how to convert that to beancount.I converted from XML by first using gnucash to save in the other format.
--My notes are at https://www.mail-archive.com/search?l=bean...@googlegroups.com&q=subject:%22Re%5C%3A+Need+help+converting+from+gnucash%22&o=newest&f=1 in case they're helpful.James
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/MaaASKR1SSI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/ea654eba-5615-40aa-96df-7b7e21c05ff9o%40googlegroups.com.