Changes between Version 19 and Version 20 of TroubleShooting


Ignore:
Timestamp:
06/27/12 20:48:37 (9 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TroubleShooting

    v19 v20  
    3434Solution is to copy the file on filesystem to another name, then delete original & rename back.
    3535
     36== Session._try_store_on_disk ==
     37
     38if you get an error in Session._try_store_on_disk() that there is an object in dict(self) that cannot be pickled, then print out the dict(self) immediately before the exception gets raised, and look  for any unusual objects (all callables, an instances of most classes are wrong - whereas atomic values and Storages/dicts/lists are fine). In doubt try to (c)pickle.dump each and every type at the CLI.
     39
     40Then look where this object gets stored in the session (that can take a lot of time because it could be hundreds of occurences and thus be difficult to identify the wrong case). If you can find it - either try to replace the object instance by something that can be pickled, or move the instance into response.s3 or into current.
     41
    3642== iter() returned non-iterator of type '_timelex' ==
    3743If this occurs when importing date fields then it's due to an incorrect version of the Python dateutil module (should be 1.5, this error occurs with 2.0)