Comment 2 for bug 1774065

Revision history for this message
Bruno Chareyre (bruno-chareyre) wrote :

Thanks for reporting.
The strange part is that numpy 1.14 is still supporting bz2 according to the documentation.
Could someone confirm "ValueError: bz2 text files not supported in python2" on his system with the following code:

from yade import plot
plot.reset()
plot.addData(a=1,b=11,c=21,d=31) # add some data here
plot.saveDataTxt('/tmp/dataFile.txt.bz2',vars=('a','b','c'))
import numpy
d=numpy.genfromtxt('/tmp/dataFile.txt.bz2',dtype=None,names=True)

Bruno