Message251415
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__ |
|
Date |
User |
Action |
Args |
2015-09-23 08:16:47 | Roman Valls | set | recipients:
+ Roman Valls, arigo, amaury.forgeotdarc, pitrou, benjamin.peterson |
2015-09-23 08:16:46 | Roman Valls | set | messageid: <1442996206.9.0.469521459279.issue9928@psf.upfronthosting.co.za> |
2015-09-23 08:16:46 | Roman Valls | link | issue9928 messages |
2015-09-23 08:16:46 | Roman Valls | create | |
|