pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

pastebin private pastebin - collaborative debugging tool What's a private pastebin?

Posted by Captain pickle on Mon 20th Jan 22:22
download | new post

  1. >>> pickle.dump(nbtfile,open("bigfile.pickle","wb"))
  2. Traceback (most recent call last):
  3.   File "<stdin>", line 1, in <module>
  4.   File "C:\Python27\lib\pickle.py", line 1370, in dump
  5.     Pickler(file, protocol).dump(obj)
  6.   File "C:\Python27\lib\pickle.py", line 224, in dump
  7.     self.save(obj)
  8.   File "C:\Python27\lib\pickle.py", line 331, in save
  9.     self.save_reduce(obj=obj, *rv)
  10.   File "C:\Python27\lib\pickle.py", line 419, in save_reduce
  11.     save(state)
  12.   File "C:\Python27\lib\pickle.py", line 286, in save
  13.     f(self, obj) # Call unbound method with explicit self
  14.   File "C:\Python27\lib\pickle.py", line 649, in save_dict
  15.     self._batch_setitems(obj.iteritems())
  16.   File "C:\Python27\lib\pickle.py", line 663, in _batch_setitems
  17.     save(v)
  18.   File "C:\Python27\lib\pickle.py", line 286, in save
  19.     f(self, obj) # Call unbound method with explicit self
  20.   File "C:\Python27\lib\pickle.py", line 600, in save_list
  21.     self._batch_appends(iter(obj))
  22.   File "C:\Python27\lib\pickle.py", line 615, in _batch_appends
  23.     save(x)
  24.   File "C:\Python27\lib\pickle.py", line 331, in save
  25.     self.save_reduce(obj=obj, *rv)
  26.   File "C:\Python27\lib\pickle.py", line 419, in save_reduce
  27.     save(state)
  28.   File "C:\Python27\lib\pickle.py", line 286, in save
  29.     f(self, obj) # Call unbound method with explicit self
  30.   File "C:\Python27\lib\pickle.py", line 649, in save_dict
  31.     self._batch_setitems(obj.iteritems())
  32.   File "C:\Python27\lib\pickle.py", line 663, in _batch_setitems
  33.     save(v)
  34.   File "C:\Python27\lib\pickle.py", line 286, in save
  35.     f(self, obj) # Call unbound method with explicit self
  36.   File "C:\Python27\lib\pickle.py", line 600, in save_list
  37.     self._batch_appends(iter(obj))
  38.   File "C:\Python27\lib\pickle.py", line 615, in _batch_appends
  39.     save(x)
  40.   File "C:\Python27\lib\pickle.py", line 331, in save
  41.     self.save_reduce(obj=obj, *rv)
  42.   File "C:\Python27\lib\pickle.py", line 419, in save_reduce
  43.     save(state)
  44.   File "C:\Python27\lib\pickle.py", line 286, in save
  45.     f(self, obj) # Call unbound method with explicit self
  46.   File "C:\Python27\lib\pickle.py", line 649, in save_dict
  47.     self._batch_setitems(obj.iteritems())
  48.   File "C:\Python27\lib\pickle.py", line 663, in _batch_setitems
  49.     save(v)
  50.   File "C:\Python27\lib\pickle.py", line 286, in save
  51.     f(self, obj) # Call unbound method with explicit self
  52.   File "C:\Python27\lib\pickle.py", line 600, in save_list
  53.     self._batch_appends(iter(obj))
  54.   File "C:\Python27\lib\pickle.py", line 615, in _batch_appends
  55.     save(x)
  56.   File "C:\Python27\lib\pickle.py", line 331, in save
  57.     self.save_reduce(obj=obj, *rv)
  58.   File "C:\Python27\lib\pickle.py", line 419, in save_reduce
  59.     save(state)
  60.   File "C:\Python27\lib\pickle.py", line 286, in save
  61.     f(self, obj) # Call unbound method with explicit self
  62.   File "C:\Python27\lib\pickle.py", line 649, in save_dict
  63.     self._batch_setitems(obj.iteritems())
  64.   File "C:\Python27\lib\pickle.py", line 663, in _batch_setitems
  65.     save(v)
  66.   File "C:\Python27\lib\pickle.py", line 286, in save
  67.     f(self, obj) # Call unbound method with explicit self
  68.   File "C:\Python27\lib\pickle.py", line 600, in save_list
  69.     self._batch_appends(iter(obj))
  70.   File "C:\Python27\lib\pickle.py", line 615, in _batch_appends
  71.     save(x)
  72.   File "C:\Python27\lib\pickle.py", line 331, in save
  73.     self.save_reduce(obj=obj, *rv)
  74.   File "C:\Python27\lib\pickle.py", line 419, in save_reduce
  75.     save(state)
  76.   File "C:\Python27\lib\pickle.py", line 286, in save
  77.     f(self, obj) # Call unbound method with explicit self
  78.   File "C:\Python27\lib\pickle.py", line 649, in save_dict
  79.     self._batch_setitems(obj.iteritems())
  80.   File "C:\Python27\lib\pickle.py", line 663, in _batch_setitems
  81.     save(v)
  82.   File "C:\Python27\lib\pickle.py", line 306, in save
  83.     rv = reduce(self.proto)
  84.   File "C:\Python27\lib\copy_reg.py", line 70, in _reduce_ex
  85.     raise TypeError, "can't pickle %s objects" % base.__name__
  86. TypeError: can't pickle Struct objects
  87. >>>

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Use syntax highlighting

To highlight particular lines, prefix each line with @@


Remember my settings