You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi; I'm trying to run gnucash2ledger.py in Python3, already typed import gnucash, I'm getting this error:
Traceback (most recent call last):
File "gnucash2ledger.py", line 34, in
data = gnucash.read_file(sys.argv[1])
AttributeError: module 'gnucash' has no attribute 'read_file'
how should I proceed? Help me plz
Thanks in advance.
The text was updated successfully, but these errors were encountered:
I think gnucash, is shipping with its own python API nowadays that is calso called gnucash. It seems this is producing problems for some users in that they end up importing the gnucash provided API rather than the one coming with the pygnucash project.
You can probably confirm my theory by doing something like print(gnucash.__file__) that should show you which file was used to provide the gnucash module.
Unfortunately I don't really have the time right now to investigate why one or the other API may be used, find the time to rename my API to use a different name that does not clash. But hopefully this is enough information for you to debug things on your own or patch on your own.
Hi; I'm trying to run gnucash2ledger.py in Python3, already typed import gnucash, I'm getting this error:
Traceback (most recent call last):
File "gnucash2ledger.py", line 34, in
data = gnucash.read_file(sys.argv[1])
AttributeError: module 'gnucash' has no attribute 'read_file'
how should I proceed? Help me plz
Thanks in advance.
The text was updated successfully, but these errors were encountered: