wesabe / fixofx

Python utility that canonicalizes various financial data file formats to OFX 2, which is an XML format and hence a lot easier for other code to deal with. It recognizes OFX 1.x, OFX 2.x, QFX, QIF, and OFC.
Apache License 2.0
101 stars 37 forks source link

Statement importing fails unless links are made in the pfc directory to fixofx lib and 3rdparty directories #1

Closed jmilum closed 14 years ago

jmilum commented 14 years ago

I got the following error printed out to the rails terminal when trying to import a statement:

fixofx failed importing UNKNOWN statement from Bank (us-000840) with MakeOFX2::FatalError [filepath:  /var/wesabe/uploads/current/014/b9f/014b9fa772160bb3c06867f45388babd3fe7d723aa483f6ed416263f  76d41350/20100724000124-01.dat]

I was able to fix the problem by linking to the module directories in the fixofx directory from the pfc dirctory:

$ ln -s ../fixofx/3rdparty/ 3rdparty
$ cd lib
$ ln -s ../../fixofx/lib/* .

The import then worked correctly

eventualbuddha commented 14 years ago

What value are you using for OFX_CONVERTER in pfc?

precipice commented 14 years ago

I'm interested in the response to that question. I'll work on this tonight.

jmilum commented 14 years ago

I am using what is listed in the wiki:

silence_warnings do
  path = Rails.root.join('../fixofx/fixofx.py')
  OFX_CONVERTER = "python #{path}" if path.exist?
end
precipice commented 14 years ago

Thanks. I haven't tested the wiki config. It looks wrong to me - I'll try it out and correct it.

nylen commented 14 years ago

This is now fixed. See https://github.com/wesabe/fixofx/commit/1b261652f562b98e0f5581646467cc9a46554f6b.

jmilum commented 14 years ago

Yes, this is fixed for me as well.

precipice commented 14 years ago

Fix confirmed. Thanks, nylen!