erikmack / qb-escape

Fork of QuickBooks -> GnuCash migration scriptions from https://lwn.net/Articles/729087/
38 stars 6 forks source link

scripts not working with Python 3.11.9 on MacOS 14.5 #5

Open bobburgers7 opened 4 months ago

bobburgers7 commented 4 months ago

Hi,

I'm having trouble running your script even with the sample.iif provided. There seems to be a problem with even create a .gnucash file. If I run the script and use the sample.iif provided, it will create a *.gnucash.LCK and seem to be successful but not actually create or edit a .gnucash file.

Here is my setup: MacOS 14.5 running on an intel chip Macports 2.9.3 GnuCash 5.6 Build ID: 5.6+(2024-03-30)

How I installed: sudo port install gnucash +python311

added the site-packages to python path: export PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/gnucash:$PYTHONPATH

let me know what I might be doing wrong. thanks!

bobburgers7 commented 4 months ago

also tried this on my raspberry pi 5 with GNUCash 4.13 running Python 3.11.2 with the same issue where a .LCK file will be created when using the sample.iif file.

running on Raspberry Pi OS: Debian GNU/Linux 12 (bookworm) gnucash 1:4.13-1 gnucash-common 1:4.13-1 gnucash-docs 4.13-1 python3-gnucash 1:4.13-1

this command ./qb_iif_to_gc -c sample.iif trial.gnucash

will print out the contents of the sample.iif file and create trial.gnucash.LCK with no other files.

If i run it on a sample.gnucash i create using gnucash 4.13, it appears to not edit the .gnucash file at all.