Reply to topic

parse error appimage ofx import: workround

lampshade
Registered Member
Posts
12
Karma
0
KmyMoney-5.0.80-74a1b7f-x86_64.AppImage
Ubuntu 19.10

I was stumped by this no parse error when trying to import ofx file into kmy appimage. After running the appimage from terminal, I was getting the following error when trying to import my ofx file:

OfxImporterPlugin::slotImportFile
setup callback routines
process data
LibOFX INFO: libofx_proc_file(): File format not specified, autodetecting...
LibOFX INFO: libofx_proc_file(): Detected file format: OFX (Open Financial eXchange (OFX or QFX))
LibOFX INFO: sanitize_proprietary_tags() removed: <INTU.BID>00508</INTU.BID>
LibOFX ERROR: find_dtd():Unable to find the DTD named opensp.dcl
LibOFX ERROR: find_dtd():Unable to find the DTD named ofx160.dtd
LibOFX ERROR: ofx_proc_file(): FATAL: Missing DTD, aborting

As you can see, the appimage is reporting missing DTD files. I performed a manual check and found them in /usr/share/libofx7/libofx. After some research it seems that the appimage needs these files to be located one directory up as follows: /usr/share/libofx, so I copied my DTD directory to this location and all now works fine. No doubt this will be better addressed by later appimage releases. I looked but couldn’t find a solution to this error elsewhere, but apologise if this is all very redundant.
User avatar ipwizard
KDE Developer
Posts
928
Karma
4
OS
Thanks for reporting. I opened a bug tracker item for it.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.1 64bit, KF5
User avatar ipwizard
KDE Developer
Posts
928
Karma
4
OS
The latest stable AppImage should have the fix included. Can you check if that solves the problem in your environment and report back? Thanks in advance.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.1 64bit, KF5
lampshade
Registered Member
Posts
12
Karma
0
Ubuntu 19.10
KmyMoney-5.0.8-3d75724-x86_64.AppImage

Thanks for looking at this ipwizard. I prevented access to /usr/share/libofx before trying the above appimage. I'm afraid it doesn't seem to work for me, I got exactly the same error. However, it all works fine when I reinstate /usr/share/libofx.
User avatar ipwizard
KDE Developer
Posts
928
Karma
4
OS
Thanks for the feedback. Looks like the contained library does not search for files in the appimage but only in the root path. In prior versions they were completely missing from the appimage so I thought adding them would do it. Need to sit back and think about the next twist then. I will re-open the bug-tracker item.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.1 64bit, KF5
User avatar ipwizard
KDE Developer
Posts
928
Karma
4
OS
Now fixed in latest stable AppImage (still need to add the fix to the master branch):
LibOFX STATUS: find_dtd():DTD found: /tmp/.mount_KMyMonX7QW4f/usr/share/libofx/dtd/opensp.dcl
LibOFX STATUS: find_dtd():DTD found: /tmp/.mount_KMyMonX7QW4f/usr/share/libofx/dtd/ofx160.dtd

Hope it works for you as well.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.1 64bit, KF5
lampshade
Registered Member
Posts
12
Karma
0
KMyMoney-5.0.8-f16405a-x86_64.AppImage
Thank you very much ipwizard. The above appimage is now performing most beautifully.
User avatar ipwizard
KDE Developer
Posts
928
Karma
4
OS
Thanks for the feedback.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.1 64bit, KF5

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], freddylegen, Google [Bot], grahm, irvingarrietavazquez, Majestic-12 [Bot], nrykhe, paleo, rblackwell, Sogou [Bot]