Closed d-leroy closed 3 years ago
Hi @d-leroy, thank you for the report. The problem is reproducible on the released version, but it seems it already fixed on our master - I couldn't reproduce the problem with the latest snapshot, so I believe it is already fixed. You can try using the snapshot from https://github.com/graalvm/graalvm-ce-dev-builds/releases/ (graalpython-dev-linux-amd64.tar.gz
)
Calling numpy.loadtxt without specifying the optional
max_rows
parameter results in TypeError.Example program:
The complete trace is: File "venv-graalpython/lib/python3.8/site-packages/numpy-1.16.4-py3.8-linux-x86_64.egg/numpy/lib/npyio.py", line 1141, in loadtxt for x in read_data(_loadtxt_chunksize): File "venv-graalpython/lib/python3.8/site-packages/numpy-1.16.4-py3.8-linux-x86_64.egg/numpy/lib/npyio.py", line 1055, in read_data line_iter = itertools.islice(line_iter, max_rows) TypeError: 'NoneType' object cannot be interpreted as an int