On Aug 26, 2008, at 8:34 AM, franck kalala wrote:

Thanks now it running, but another error

Traceback (most recent call last):
  File "C:/Python25/hil.py", line 43, in <module>
    mesh = GmshImporter2D(meshName)
File "C:\Python25\lib\site-packages\fipy\meshes\numMesh \gmshImport.py", line 394, in __init__ mesh2D.Mesh2D.__init__(self, **_DataGetter().getData(filename, dimensions = 2, coordDimensions = coordDimensions)) File "C:\Python25\lib\site-packages\fipy\meshes\numMesh \gmshImport.py", line 263, in getData
    vertexCoords = self._calcVertexCoords(coordDimensions)
File "C:\Python25\lib\site-packages\fipy\meshes\numMesh \gmshImport.py", line 286, in _calcVertexCoords
    numVertices = int(self.inFile.readline())
ValueError: invalid literal for int() with base 10: '2 0 8\n'

This error is because FiPy was written for an older version of Gmsh than you have installed. We fixed this problem on trunk a long time ago, but it never got ported back to 1.2. Thanks for reporting the problem.


----

If you are using svn (I don't think you are?) then you can do an

   svn update

You will need to be sure that you have "branches/version-1_2" and not "tags/version-1_2". You can do

   svn info

to check, or you can just do

   svn switch http://matforge.org/svn/fipy/branches/version-1_2

to be sure.

----

If you are *not* using svn, then you can manually download

   
http://matforge.org/svn/fipy/branches/version-1_2/fipy/meshes/numMesh/gmshImport.py

and replace the file of the same name in your fipy/ directory. If your PYTHONPATH points at this working copy of the fipy source, then you're done. If you previously installed fipy, then you'll need to run

   python setup.py install

again.



Reply via email to