Sep-11-2019, 06:16 AM
Hi,
I am a newbie (a teacher trying to use python package for teaching CFD), I have been trying to us an open domain package "https://github.com/acrovato/geoGen/blob/master/wing.py" and have been running into error messages. I am using Python 3.6 (Anaconda and Spider), I have a suspicion that it cold be due to version difference and tried to use the tool :2to3" , but it did not solve the problem. I am attaching the code snipet and error message.
_file = file<name>
'file' is not found
Of course the required files are there
Apologies if it is stupid question ( I am a 68 year old FORTRAN coder)
Thanks in advance
Narahari
I am a newbie (a teacher trying to use python package for teaching CFD), I have been trying to us an open domain package "https://github.com/acrovato/geoGen/blob/master/wing.py" and have been running into error messages. I am using Python 3.6 (Anaconda and Spider), I have a suspicion that it cold be due to version difference and tried to use the tool :2to3" , but it did not solve the problem. I am attaching the code snipet and error message.
def read(self,fname):
"""Read data from file and stroe in matrix
"""
_file = file(fname)
label = _file.next().split(',')
_file.close()
data = np.loadtxt(fname, skiprows=1)
return data error message is in _file = file<name>
'file' is not found
Of course the required files are there
Apologies if it is stupid question ( I am a 68 year old FORTRAN coder)
Thanks in advance
Narahari
