[NumPy-Tickets] [NumPy] #1607: numpy.genfromtxt() with Python 3.1.2 fails
NumPy Trac
numpy-tickets@scipy....
Thu Sep 9 13:34:36 CDT 2010
#1607: numpy.genfromtxt() with Python 3.1.2 fails
------------------------+---------------------------------------------------
Reporter: magiclamp | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 2.0.0
Component: Other | Version: 1.5.0
Keywords: genfromtxt |
------------------------+---------------------------------------------------
Hello:
genfromtxt() fails with the following TypeError.
Thanks for the nice package!
[search_dist][10273] > cat z.dat
0.01604 0.02668 0.03254 0.03254 0.15647 0.20313
0.02214 0.02214
[search_dist][10274] > python
Python 3.1.2 (r312:79147, Sep 2 2010, 17:16:43)
[GCC 4.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.version.version
'1.5.0'
>>> numpy.genfromtxt('z.dat')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/intel/pkgs/python/3.1.2/lib/python3.1/site-
packages/numpy/lib/npyio.py", line 1126, in genfromtxt
first_values = split_line(first_line)
File "/usr/intel/pkgs/python/3.1.2/lib/python3.1/site-
packages/numpy/lib/_iotools.py", line 206, in _delimited_splitter
line = line.split(self.comments)[0].strip(asbytes(" \r\n"))
TypeError: Can't convert 'bytes' object to str implicitly
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1607>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list