On Tue, Jun 28, 2011 at 3:51 AM, Gyeong-Geun LEE <[email protected]> wrote: > I read the installation guide again, and I found that gmsh should be > installed in order to use a irregular mesh.
Gmsh is only required for meshes that have names like "*Gmsh*". Grid1D doesn't use gmsh so there is no need for it in this case. > I reinstalled gmsh and fipy and checked again. There should have been no need to reinstall fipy or gmsh. It won't change anything. > gglee@GG-LEEs-Mac-Pro:~/Downloads/FiPy-2.1.2$ python > Python 2.7.2 (default, Jun 27 2011, 11:46:19) > [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin > Type "help", "copyright", "credits" or "license" for more information. >>>> from fipy import * >>>> mesh = Grid1D(dx=(1,2,3)) >>>> mesh > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "fipy/meshes/numMesh/grid1D.py", line 124, in __repr__ > return "%s(dx=%s, nx=%d)" % (self.__class__.__name__, > str(self.args["dx"]), self.args["nx"]) > TypeError: %d format: a number is required, not NoneType Right. It's broken on the version-2_1 branch. It's fixed on trunk though as far as I can tell. >>>> mesh = Grid1D(dx=(1,2,3), nx=3) >>>> mesh > Grid1D(dx=(1, 2, 3), nx=3) >>>> > > As you can see, nx must be attached not to get error. > I checked the dependencies using "python setup.py test" there are 6 errors. I was wrong. This is nothing to do with dependencies. I checked this and thought I was checking the version-2_1 branch, but must have been using trunk. Anyway, I'll file a ticket and may or may not fix it on version-2_1 since we are working towards a new release. > Please check attacked file. None of those failures are important. Two are vtk, which you probably don't have and don't need most likely and the others seem to be testing failures that fail in different ways. Probably because your version of numpy is quite new, but nothing to worry about. Cheers -- Daniel Wheeler
