Re: Please help me start with a CSV importer

2018-04-22 Thread Martin Blais
I don't understand your question. If you can post your example files, we can debug it. If the regexp you doesn't match anything in your files, if won't match the importer. The matching code is here, add some printfs there:

Re: Please help me start with a CSV importer

2018-04-22 Thread viq
On 18-04-08 17:01:48, Martin Blais wrote: > The CSV importer that is provided puts together a regexp from the list of > fields you provide. > This regexp is run against the contents of the files it is scanning, in > order to identify whether a particular importer should be able to process a >

Re: Please help me start with a CSV importer

2018-04-08 Thread Martin Blais
The CSV importer that is provided puts together a regexp from the list of fields you provide. This regexp is run against the contents of the files it is scanning, in order to identify whether a particular importer should be able to process a file. The regexp is built from the fields you provide,

Re: Please help me start with a CSV importer

2018-04-08 Thread viq
On Sunday, April 8, 2018 at 7:40:50 PM UTC+2, Martin Blais wrote: > > - bean-identity saw your file. > - It didn't match any of the configured importers (there's no section > printed underneath it, if it matches it would print the importer and > deduced account name, date and to-be-renamed

Re: Please help me start with a CSV importer

2018-04-08 Thread Martin Blais
- bean-identity saw your file. - It didn't match any of the configured importers (there's no section printed underneath it, if it matches it would print the importer and deduced account name, date and to-be-renamed location) Something to do with your regexp, it probably still doesn't match the

Re: Please help me start with a CSV importer

2018-04-08 Thread viq
On Saturday, April 7, 2018 at 4:27:29 PM UTC+2, viq wrote: > > First, apologies, I'm very new to beancount, and only starting with > python. Right now I'm trying to just have a basic import working, and then > will try to enrich it. I've tried looking through documentation and mailing > lists,

Re: Please help me start with a CSV importer

2018-04-08 Thread viq
On Sunday, April 8, 2018 at 10:46:30 AM UTC+2, Martin Blais wrote: > > On Sun, Apr 8, 2018 at 3:17 AM, viq > wrote: > >> >> >> On Sunday, April 8, 2018 at 1:55:42 AM UTC+2, Michael Droogleever wrote: >>> >>> I think it is this, but I have not tried running your code: >>> >>>

Re: Please help me start with a CSV importer

2018-04-08 Thread Martin Blais
On Sun, Apr 8, 2018 at 3:17 AM, viq wrote: > > > On Sunday, April 8, 2018 at 1:55:42 AM UTC+2, Michael Droogleever wrote: >> >> I think it is this, but I have not tried running your code: >> >> >>> sys.path.insert(0, path.join(path.dirname(__file__))) >> >> >> is what adds the

Re: Please help me start with a CSV importer

2018-04-08 Thread viq
On Sunday, April 8, 2018 at 1:55:42 AM UTC+2, Michael Droogleever wrote: > > I think it is this, but I have not tried running your code: > > >> sys.path.insert(0, path.join(path.dirname(__file__))) > > > is what adds the path to your importers package, to the system path. So the > > import