I am using zsh and default XML storage.

Last login: Mon Dec 30 20:33:37 on ttys001
kcburns@Mac001 ~ % ls /Users/kcburns/GnuCash/KCBurns.gnucash
/Users/kcburns/GnuCash/KCBurns.gnucash

kcburns@Mac001 ~ %
kcburns@Mac001 ~ % /Applications/GnuCash.app/Contents/macOS/gnucash-cli -Q get file:/Users/kcburns/GnuCash/KCBurns.gnucash
Application Path /Applications/GnuCash.app/Contents/macOS/gnucash-cli
* 20:42:44  WARN <gnc.engine> failed to load gncmod-backend-dbi from relative path
* 20:42:44 ERROR <gnc.engine> required library gncmod-backend-dbi not found.
* 20:42:44  WARN <gnc.engine> failed to load gncmod-backend-xml from relative path
* 20:42:44 ERROR <gnc.engine> required library gncmod-backend-xml not found.
* 20:42:44 ERROR <GLib-GIO> g_settings_schema_source_lookup: assertion 'source != NULL' failed * 20:42:44 ERROR <GLib-GIO> g_settings_new_full: assertion 'schema != NULL' failed * 20:42:44  WARN <gnc.app-utils.gsettings> [gnc_gsettings_get_settings_obj()] Ignoring attempt to access unknown gsettings schema org.gnucash.GnuCash.general zsh: segmentation fault /Applications/GnuCash.app/Contents/macOS/gnucash-cli -Q get

kcburns@Mac001 ~ %
kcburns@Mac001 ~ % /Applications/GnuCash.app/Contents/MacOS/gnucash-cli -Q get file:/Users/kcburns/GnuCash/KCBurns.gnucash
Application Path /Applications/GnuCash.app/Contents/MacOS/gnucash-cli
* 20:43:22  WARN <gnc.backend.dbi> [GncDbiBackend<DbType::DBI_SQLITE>::session_begin()] Sqlite3 file file:/Users/kcburns/GnuCash/KCBurns.gnucash not found * 20:43:22 ERROR <gnc.gui> [cleanup_and_exit_with_failure()] Session Error: Sqlite3 file file:/Users/kcburns/GnuCash/KCBurns.gnucash not found

kcburns@Mac001 ~ %
kcburns@Mac001 ~ % /Applications/GnuCash.app/Contents/MacOS/gnucash-cli -Q get file://Users/kcburns/GnuCash/KCBurns.gnucash
Application Path /Applications/GnuCash.app/Contents/MacOS/gnucash-cli
* 20:44:08  WARN <gnc.core-utils> create new file /Users/kcburns/Library/Application Support/GnuCash/data/Users_kcburns_GnuCash_KCBurns.gnucash * 20:44:08  WARN <gnc.core-utils> create new file /Users/kcburns/Library/Application Support/GnuCash/data/Users_kcburns_GnuCash_KCBurns.gnucash * 20:44:08  WARN <gnc.backend.dbi> [GncDbiBackend<DbType::DBI_SQLITE>::session_begin()] Sqlite3 file /Users/kcburns/Library/Application Support/GnuCash/data/Users_kcburns_GnuCash_KCBurns.gnucash not found * 20:44:08 ERROR <gnc.gui> [cleanup_and_exit_with_failure()] Session Error: Sqlite3 file /Users/kcburns/Library/Application Support/GnuCash/data/Users_kcburns_GnuCash_KCBurns.gnucash not found
kcburns@Mac001 ~ %


I am not clear whether the second / ahead of the path to my data file should be there.


Thanks,

Ken


On 12/30/24 7:12 PM, John Ralls wrote:
Ken,

You wrote
Issue appears to be MacOS vs macOS when call 
'dlopen(/Applications/Gnucash.app/Contents/macOS/lib/gnucash/libgncmod-backend-dbi.dylib,
 0x0009)'

Get Quotes from the Price Database window works fine.

In your original post. As I explained in https://lists.gnucash.org/pipermail/gnucash-user/2024-May/111950.html 
that’s Apple’s code. You’ll just have to learn to spell the directory name correctly, with a capital M. It might 
help to get in the habit of using shell completion to complete the path: Type 
“/A<tab>Gnu<tab><tab>M<tab>gnu<tab>”. “<tab>” means press the tab key. If you 
try to use a lower case m nothing will happen, reminding you to use M instead.

Regards,
John Ralls

On Dec 30, 2024, at 3:30 PM, [email protected] wrote:

Sherlock,

I don't think so.

As with the previous poster; I get gnucash-cli to run, but it can't find the 
files within the GnuCash program it needs to successfully complete.

Thanks for the feedback,

Ken




On 12/30/2024 5:32 PM, [email protected] wrote:
Ken,
If it is the same issue, the fix should be the same: invoke gnucash-cli
using MacOS in the path not macOS.
Regards,
Sherlock
_______________________________________________
gnucash-user mailing list
[email protected]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
_______________________________________________
gnucash-user mailing list
[email protected]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to