[Numpy-discussion] Error message

Hanno Klemm klemm at phys.ethz.ch
Sat Mar 14 06:20:30 EDT 2015





> On 14.03.2015, at 10:57, Danny Kramer <danny_52 at netvision.net.il> wrote:
> 
> Hi,
> I am getting the following error message:
> 
> C:\Python27\lib\site-packages\numpy\lib\npyio.py:819: UserWarning: loadtxt: 
> Empty input file: "[]"
>  warnings.warn('loadtxt: Empty input file: "%s"' % fname)
> main loop list assignment index out of range
> 
> 1. Why is it happening?
> 2. How can I fix it?
> 
> Thanks a lot in advance.
> 
> Danny
> 

Not seeing the code that produced this warning, we are left to guessing. My guess would be that the error warning tells you already what's going on. You give an empty list as a file name to loadtxt and loadtxt can't find a file of that name to load. 

Hanno
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
> 



More information about the NumPy-Discussion mailing list