So, I installed EPD python for mac. From the terminal I go into a directory
where the file I'd like to read exists. In a python program I create a 2
column data array and below I open it as "f3". The line in bold is that
referenced in the error. fwiw I'm just trying to do an easy x,y plot and
this is my first python attempt.
import matplotlib.pyplot as plt
import numpy as np
plt.output(plotfile,'png medium transparent picsize 600 400')
File "SCFscript.py", line 40, in <module>
line 635, in loadtxt
fh = open(fname, 'U')
IOError: [Errno 2] No such file or directory: "<open file 'gq_1014.log.hy',
mode 'r' at 0x2a93e8>"
The file exists, I checked. Where is it looking? In the python framework
directory above? Shouldn't it be opening the file from the current
directory? Am I missing something here?
Thanks for any help!!
View this message in context: http://old.nabble.com/numpy.loadtxt-is-not-finding-an-existing-file.-What's-up--tp31668985p31668985.html
Sent from the matplotlib - users mailing list archive at Nabble.com.