Re: gnucash slots error

28 views
Skip to first unread message

Sébastien de Menten

unread,
Apr 30, 2015, 1:50:28 AM4/30/15
to Adam Murphy, pie...@googlegroups.com
Hello Adam,

I have noticed the same issue recently and it is due to the use of sqlalchemy 1.0, recently released, while piecash has been developed/tested with sqlalchemy 0.9.8. 

Could you try downgrading these packages by doing
pip install -U SQLAlchemy==0.9.8 SQLAlchemy-Utils==0.28.2 
and tell me if it works ?

kr

sebastien

ps: if you do not mind, could you add the address of the google group pie...@googlegroups.com to the CC  so that other people can read this thread ?

On Thursday, April 30, 2015, Adam Murphy <ammu...@yahoo.com> wrote:
Hi Sebastien,

Just started experimenting with piecash.  I have a quick question as I seemed stymied on slots related errors.


#this works
book = piecash.open_book("murphy_books.gnucash")
for account in book.accounts:
    print(account)

# this throws an error (as well as anything else I try to do with transactions)
for tr in book.transactions:
    print(tr)

>>>AttributeError: 'Transaction' object has no attribute 'slots'

I did check the sqlite database and there is indeed a slots table which has approx 3,700 records.

and I have plenty of transactions to view as below
len(book.transactions)
>>> 1857

Any guidance you can provide would be much appreciated.

Kind Regards,
Adam Murphy



Adam Murphy

unread,
Apr 30, 2015, 11:19:25 AM4/30/15
to Sébastien de Menten, pie...@googlegroups.com
Hi Sebastien,

That worked!

Thanks for your assistance.

Best,
Adam



From: Sébastien de Menten <sdem...@gmail.com>
To: Adam Murphy <ammu...@yahoo.com>; pie...@googlegroups.com
Sent: Thursday, April 30, 2015 1:50 AM
Subject: Re: gnucash slots error

sdementen

unread,
May 3, 2015, 4:12:00 PM5/3/15
to pie...@googlegroups.com
For the record, this bug is fixed in the 0.8 releases.
Reply all
Reply to author
Forward
0 new messages