SUMMARY Import a QFX file fails on MacOS. STEPS TO REPRODUCE 1. Open import > OFX OBSERVED RESULT Console output: 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>7492</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 process data done EXPECTED RESULT Import file without errors. SOFTWARE/OS VERSIONS Version 5.0.7-f5b86b78d macOS: 10.14.6 ADDITIONAL INFORMATION I see opensp.dcl and ofx160.dtd in the kmymoney package. Does the importer know where to find the files on MacOS?
I have a workaround by adding the /Applications/kmymoney.app/Contents/Resources/libofx/dtd dir to the search path that libofx expects. > ln -s /Applications/kmymoney.app/Contents/Resources/libofx/ /usr/local/share/libofx Am I the only one who uses kmymoney on MacOS?
Glad you found a workaround. In order to try to fix it, we need to know from where (URL) you obtained the package you installed?
I downloaded it from https://binary-factory.kde.org/view/MacOS/job/KMyMoney_Release_macos/486/ https://binary-factory.kde.org/view/MacOS/job/KMyMoney_Release_macos/486/artifact/kmymoney-5.0-486-macos-64-clang.dmg
Can you find out where the file ....libofx/dtd/ofx160.dtd is installed on your system? I am interested in the absolute path. Is this path somehow relative to the installation directory? Did you choose one when installing or does this happen automatically? Sorry, if these are stupid questions, but I have no idea about MacOS.
Git commit c737397b2924166b6a419110640794e115112ca2 by Thomas Baumgart. Committed on 31/01/2020 at 21:20. Pushed by tbaumgart into branch '5.0'. Add path to load OFX DTDs on MacOS FIXED-IN: 5.0.9 M +8 -0 kmymoney/plugins/ofx/import/ofximporter.cpp https://commits.kde.org/kmymoney/c737397b2924166b6a419110640794e115112ca2
Git commit fb1f9ab3b5bd14006f9885cdd87d048437aeef8f by Thomas Baumgart. Committed on 31/01/2020 at 21:21. Pushed by tbaumgart into branch 'master'. Add path to load OFX DTDs on MacOS FIXED-IN: 5.0.9 (cherry picked from commit c737397b2924166b6a419110640794e115112ca2) M +8 -0 kmymoney/plugins/ofx/import/ofximporter.cpp https://commits.kde.org/kmymoney/fb1f9ab3b5bd14006f9885cdd87d048437aeef8f
Thank you for adding the search path for MacOS. However, the builds for MacOS have been failing since mid December. How do we get a build working? Should a bug be opened?
I know, and KMyMoney is not alone with that problem. See https://binary-factory.kde.org/view/MacOS/. Not sure, to whom you want to assign this bug. Also not sure, what the cause to this problem is. My MAC knowledge equals zero at this point.
Would it be appropriate to open a SysAdmin ticket? Many of the failing apps started failing 27 or 28 days ago, so it looks like something in the CI system might have changed then.