Python Forum
error using geoGen package from GITHUB
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error using geoGen package from GITHUB
#1
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.

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
Reply


Messages In This Thread
error using geoGen package from GITHUB - by hknarahari - Sep-11-2019, 06:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  qpython package error Creepy 5 1,248 Apr-19-2024, 10:35 AM
Last Post: masonsbore
  countryinfo package error MarcusAurelius 4 2,908 Mar-20-2021, 05:42 PM
Last Post: deanhystad
  error with netcdf4 package damdam 0 1,880 Nov-18-2020, 06:44 PM
Last Post: damdam
  Importing module from a package results in import error goghvv 2 2,438 Mar-27-2020, 07:13 PM
Last Post: goghvv
  Beginner - simple package installation error mefeng2008 0 1,752 Mar-13-2020, 09:17 AM
Last Post: mefeng2008
  Error importing package julio2000 3 3,841 Jan-26-2020, 06:15 PM
Last Post: buran
  Error in importing package in pycharm fullstop 0 2,378 Dec-12-2019, 04:03 PM
Last Post: fullstop
  package(s) error pykdtree zahid990170 0 2,242 Mar-21-2019, 06:18 PM
Last Post: zahid990170
  Error while importing my own package giu88 4 3,011 Sep-19-2018, 12:18 PM
Last Post: giu88
  Countryinfo package charmap error mkaru 6 7,369 Sep-16-2018, 02:58 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020