[Twisted-Python] examples/row_example.py DBError Row object not in cache
marjan cinober
marjancinober at hotmail.com
Sat Jan 3 14:13:45 EST 2004
Still trying to test some postgersql access from twisted.
Unfortunate at running example ROW (Twisted Enterprise)
http://twistedmatrix.com/documents/examples/row_example.py
got stuck at
File "row_example.py", line 58, in onInsert
manager.deleteRow(newRoom).addCallback(onDelete)
Anybody has some clues?
Thanks
Best regards to all of you.
Marjan Cinober
-----
I am on Linux debian testing (sarge)
Package: python2.3-twisted Version: 1.1.0-1
Maintainer: Moshe Zadka <moshez at debian.org>
-----
$ psql test
test=# \i row_schema.sql
\q
cinober at mym:~/examples$ python row_example.py
/usr/lib/python2.3/site-packages/twisted/enterprise/row.py:135:
DeprecationWarning: This is deprecated. Use the underlying database to
generate keys, or just roll your own.
warnings.warn("This is deprecated. Use the underlying database to generate
keys, or just roll your own.", DeprecationWarning)
got Rooms. [<Room #10: testroom1 (someguy) (10,10)>, <Room #11: testroom2
(someguy) (30,10)>, <Room #12: testroom3 (someguy) (50,10)>]
room <Room #10: testroom1 (someguy) (10,10)>
furn Furniture #50: room #10 (chair1) (10,10)
inner Lamp #21
inner Lamp #22
furn Furniture #51: room #10 (chair2) (14,10)
furn Rug 81: room #10, (a big rug)
furn Rug 82: room #10, (a blue rug)
room <Room #11: testroom2 (someguy) (30,10)>
furn Rug 83: room #11, (a red rug)
furn Rug 84: room #11, (a green rug)
room <Room #12: testroom3 (someguy) (50,10)>
furn Furniture #52: room #12 (chair3) (14,10)
furn Furniture #53: room #12 (chair4) (10,12)
inner Lamp #23
inner Lamp #24
inner Lamp #25
furn Furniture #54: room #12 (chair5) (18,13)
furn Furniture #55: room #12 (couch) (22,3)
furn Rug 85: room #12, (a dirty rug)
updated row.
row inserted
100001
******** BLOCKED ********* Forced to <Ctrl>-C
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/twisted/internet/default.py", line
130, in mainLoop
self.runUntilCurrent()
File "/usr/lib/python2.3/site-packages/twisted/internet/base.py", line
403, in runUntilCurrent
callable(*args, **kw)
File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line
224, in callback
self._startRunCallbacks(result)
File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line
293, in _startRunCallbacks
self._runCallbacks()
--- <exception caught here> ---
--- <exception caught here> ---
File "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line
307, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File "row_example.py", line 58, in onInsert
manager.deleteRow(newRoom).addCallback(onDelete)
File
"/usr/lib/python2.3/site-packages/twisted/enterprise/sqlreflector.py", line
330, in deleteRow
self.removeFromCache(rowObject)
File "/usr/lib/python2.3/site-packages/twisted/enterprise/reflector.py",
line
141, in removeFromCache
raise DBError("Row object not in cache: %s", rowObject)
twisted.enterprise.util.DBError: ('Row object not in cache: %s', <Room
#100001:
newRoom1 (fred) (100,100)>)
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
More information about the Twisted-Python
mailing list