This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Roman Valls
Recipients Roman Valls, amaury.forgeotdarc, arigo, benjamin.peterson, pitrou
Date 2015-09-23.08:16:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442996206.9.0.469521459279.issue9928@psf.upfronthosting.co.za>
In-reply-to
Content
It still seems to be failing with Python 2.7.10... or am I doing sth wrong? :/


$ ipython
Python 2.7.10 |Anaconda 2.2.0 (x86_64)| (default, May 28 2015, 17:04:42)
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import bz2
In [2]: import pandas as pd
In [3]: import numpy as np
In [4]: import matplotlib as plt
In [5]: import seaborn as sns
In [6]: import cPickle as pickle

In [7]: with open("./collectl_info.pickle.bz2", "rb") as comp:
   ...:         with bz2.decompress(comp.read()) as decomp:
   ...:                 data, hardware, steps = pickle.load(decomp)
   ...:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-7-301445b9c3f1> in <module>()
      1 with open("./collectl_info.pickle.bz2", "rb") as comp:
----> 2         with bz2.decompress(comp.read()) as decomp:
      3                 data, hardware, steps = pickle.load(decomp)
      4

AttributeError: __exit__
History
Date User Action Args
2015-09-23 08:16:47Roman Vallssetrecipients: + Roman Valls, arigo, amaury.forgeotdarc, pitrou, benjamin.peterson
2015-09-23 08:16:46Roman Vallssetmessageid: <1442996206.9.0.469521459279.issue9928@psf.upfronthosting.co.za>
2015-09-23 08:16:46Roman Vallslinkissue9928 messages
2015-09-23 08:16:46Roman Vallscreate