spacepaste

  1.  
  2. pandas/tests/sparse/test_array.py:568: in _check_roundtrip
  3. unpickled = tm.round_trip_pickle(obj)
  4. pandas/util/testing.py:108: in round_trip_pickle
  5. pd.to_pickle(obj, path)
  6. pandas/io/pickle.py:45: in to_pickle
  7. pkl.dump(obj, f, protocol=protocol)
  8. ../pypy/lib_pypy/cPickle.py:124: in dump
  9. Pickler(file, protocol).dump(obj)
  10. ../pypy/lib-python/2.7/pickle.py:224: in dump
  11. self.save(obj)
  12. ../pypy/lib-python/2.7/pickle.py:331: in save
  13. self.save_reduce(obj=obj, *rv)
  14. ../pypy/lib-python/2.7/pickle.py:427: in save_reduce
  15. save(state)
  16. ../pypy/lib-python/2.7/pickle.py:286: in save
  17. f(self, obj) # Call unbound method with explicit self
  18. ../pypy/lib-python/2.7/pickle.py:556: in save_tuple
  19. save(element)
  20. ../pypy/lib-python/2.7/pickle.py:286: in save
  21. f(self, obj) # Call unbound method with explicit self
  22. ../pypy/lib-python/2.7/pickle.py:556: in save_tuple
  23. save(element)
  24. ../pypy/lib-python/2.7/pickle.py:331: in save
  25. self.save_reduce(obj=obj, *rv)
  26. ../pypy/lib-python/2.7/pickle.py:402: in save_reduce
  27. save(func)
  28. ../pypy/lib-python/2.7/pickle.py:286: in save
  29. f(self, obj) # Call unbound method with explicit self
  30. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  31. self = <cPickle.Pickler object at 0x000000000ac71670>
  32. obj = <type 'pandas._libs.sparse.IntIndex'>, name = '_libs.sparse.IntIndex'
  33. pack = <built-in function pack>
  34. def save_global(self, obj, name=None, pack=struct.pack):
  35. write = self.write
  36. memo = self.memo
  37. if name is None:
  38. name = obj.__name__
  39. module = getattr(obj, "__module__", None)
  40. if module is None:
  41. module = whichmodule(obj, name)
  42. try:
  43. __import__(module)
  44. mod = sys.modules[module]
  45. klass = getattr(mod, name)
  46. except (ImportError, KeyError, AttributeError):
  47. raise PicklingError(
  48. "Can't pickle %r: it's not found as %s.%s" %
  49. > (obj, module, name))
  50. E PicklingError: Can't pickle <type 'pandas._libs.sparse.IntIndex'>: it's not found as pandas._libs.sparse.IntIndex
  51. ../pypy/lib-python/2.7/pickle.py:800: PicklingError
  52. _________________________ TestSparseSeries.test_pickle _______________
  53.