Roman Valls added the comment: 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__ ---------- nosy: +Roman Valls versions: -Python 3.1, Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9928> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com