cybermaggedon / gnucash-uk-vat

A bridge between GnuCash and UK HMRC VAT return MTD APIs for automating VAT returns
GNU General Public License v3.0
13 stars 2 forks source link

Error trying to run gui #6

Closed MichaelBScott closed 2 years ago

MichaelBScott commented 2 years ago

I'm getting the following error when running with the --assist resulting in the next button being disabled after selecting a gnucash file. Does anyone know how to resolve this?

$ gnucash-uk-vat --assist Traceback (most recent call last): File "~/.local/lib/python3.10/site-packages/gnucash_uk_vat/assist.py", line 708, in prepare self.check_file() File "~/.local/lib/python3.10/site-packages/gnucash_uk_vat/assist.py", line 614, in check_file raise e File "~/.local/lib/python3.10/site-packages/gnucash_uk_vat/assist.py", line 609, in check_file accts = accounts.Accounts(self.vat.config) AttributeError: module 'gnucash_uk_vat.accounts' has no attribute 'Accounts'

cybermaggedon commented 2 years ago

I'll take a look tomorrow, maybe I missed a checkin. Where did you install from, github clone, or pypi?

MichaelBScott commented 2 years ago

Ok, thank you. I installed is as described by running: pip3 install git+https://github.com/cybermaggedon/gnucash-uk-vat

I also tried updating the kind property in config.json to try both gnucash and piecash but the error was the same.

cybermaggedon commented 2 years ago

Thanks, ah... I think I missed a checkin on assist.py.

cybermaggedon commented 2 years ago

Error reproduced, should have an answer for you soon

MichaelBScott commented 2 years ago

Thank you

cybermaggedon commented 2 years ago

A couple of code refactors broke assist, the head of master contains the fix: b6b776fb176abda30cb885bcda6ad81a32e53227

cybermaggedon commented 2 years ago

I have only tested with local test so far.

MichaelBScott commented 2 years ago

Thank you I no longer get the error.