-
Notifications
You must be signed in to change notification settings - Fork 10
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
parse include properly #4
Comments
I need to address the include problem as it's a legit bug, and so is the D as well. The other issue you refer to is a matter of figuring out what GTK+ version you have on your system, because I fear you might have a strange version -- |
Reminder for myself to notify the author of this pull request when the include issue is fixed: |
I'm using Ubuntu 14.04 |
Do you have python gobject 3? Python-GTK2 is not enough. I don't know how your error happened given that the script demands version 3.: #!/usr/bin/env python
It's obviously demanding Gtk 3 before instantiating the wrappers. Gtk 2 doesn't have that method, but Gtk 3 does. This is maddening. How would we go about finding out which version of Gtk is being imported here, on your machine? |
Yes, I do have python-gobject 3.12.0-1ubuntu1 |
So can you check this out?
and see if you get that AttributeError again? |
I get the same error message again:
Apparently my python uses the version "libgtk-3-0:amd64 3.10.8-0ubuntu1.6".
|
Something is bugged with your Gtk+. Can you file a bug report with
|
Apparently this function is only available in version 3.16 and above. |
On 02/14/2016 01:04 PM, d wrote:
How did you find out about that?
|
OK. I have pushed a fix that stops using |
As for how Mode A treats includes by simply tokenizing them as stanzas, but does not attempt to include anything. The resulting data structure contains include tokens. Mode B recursively parses includes. The resulting data structure contains the tokens from the included files in lieu of the includes. Mode A is necessary for things like sorting the data file. Mode B is necessary for things like producing autocomplete transactions in |
Thanks! It seems to be working now. The issue with the "D 1,000.00 €" still remains though. And it uses "," instead of "." for the currency. Should i open up new issues to discuss them separately? |
Yes please, thank you! |
Bumping this issue; I would like to use addtrans but the structure of my includes takes precedence. |
@Rudd-O Are you still planning to add support for the |
I am planning to, because I need to get |
The moment i started "buy" i got this error message:
And the following stacktrace:
My setup: The first and only line in my main ledger file is an "include ..." which includes another ledger file.
The included ledger file also has an "include" to include the previous ledger file (from the previous year). This won't work if the include path is relative:
Once i fixed that i noticed that i had to remove the next line which was "D 1,000.00 €". So i removed that line as well. Then i got the following error:
The text was updated successfully, but these errors were encountered: