[storm] what causes: storm.exceptions.LostObjectError: Can't obtain values from the database

Steve Kieu msh.computing at gmail.com
Thu Jan 6 13:12:09 UTC 2011


Hello,

I have a simple script (attached to this email )- and evrytime I run, i got


stevek at lenovo:~/hang-hieu-uc/python$ python bulk_price_update.py
Number of record: 202
/usr/lib/python2.6/dist-packages/storm/database.py:342: Warning: Data
truncated for column 'amount' at row 1
  return function(*args, **kwargs)
Traceback (most recent call last):
  File "bulk_price_update.py", line 137, in <module>
    process()
  File "bulk_price_update.py", line 129, in process
    new_pt.product_discount_id = new_pd.id; store.flush()
  File "/usr/lib/python2.6/dist-packages/storm/properties.py", line 60, in
__get__
    return obj_info.variables[column].get()
  File "/usr/lib/python2.6/dist-packages/storm/variables.py", line 178, in
get
    self.event.emit("resolve-lazy-value", self, self._lazy_value)
  File "/usr/lib/python2.6/dist-packages/storm/event.py", line 53, in emit
    if callback(owner, *(args+data)) is False:
  File "/usr/lib/python2.6/dist-packages/storm/store.py", line 891, in
_resolve_lazy_value
    result, result.get_one())
  File "/usr/lib/python2.6/dist-packages/storm/store.py", line 746, in
_set_values
    raise LostObjectError("Can't obtain values from the database "
storm.exceptions.LostObjectError: Can't obtain values from the database
(object got removed?)

I am stuck at new idea to fix it, please help

If I do not modify the product_discount_id of a product then it printed
values fine and create in the history table fine. First I directly modify
the  pt object, but then try to get a product again using pt.id, however it
does not help in both cases.

The DB is VirutalMart DB if it helps

Many thanks in advance



-- 
Steve Kieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/storm/attachments/20110106/ed721503/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bulk_price_update.py
Type: text/x-python
Size: 4491 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/storm/attachments/20110106/ed721503/attachment.py>


More information about the storm mailing list