Error when running books example

58 views
Skip to first unread message

Chris Green

unread,
Mar 12, 2013, 5:27:34 PM3/12/13
to qtalch...@googlegroups.com
I have just installed qtalchemy (using "easy_install qtalchemy") and
tried the books example.

The schema creation code runs with no errors (but doesn't actually do
anything of course).

However when I run the main part I get the following error:-

chris$ ./books2.py
Traceback (most recent call last):
File "./books2.py", line 104, in <module>
d = BookList(None)
File "./books2.py", line 93, in __init__
self.table = LayoutWidget(main, TableView())
File "/usr/local/lib/python2.7/dist-packages/qtalchemy-0.8.2_pre-py2.7.egg/qtalchemy/PyQtHelpers.py", line 196, in LayoutWidget
layout.addWidget(widget)
TypeError: QBoxLayout.addWidget(QWidget, int stretch=0, Qt.Alignment alignment=0): argument 1 has unexpected type 'TableView'

What's wrong? Has some library moved on so that TableView is no longer
of the right type?

I'm running on xubuntu 12.10.

--
Chris Green

Joel B. Mohler

unread,
Mar 15, 2013, 7:34:55 PM3/15/13
to qtalch...@googlegroups.com
My guess is that this is a PySide/PyQt4 problem. If you switched the
bindings to use PyQt4, then the example code would have to be similarly
changed. I cannot reproduce this traceback on the examples on my
installation.

Joel

Reply all
Reply to author
Forward
0 new messages