Posts for the month of August 2010

Creating FiPy debs

This is how I created a fipy deb.

  • apt-get install stdeb
  • apt-get install debhelper
  • svn co svn+ssh://[email protected]/usr/local/svn-fipy-repos/tags/version-2_1 CLEAN
  • cd CLEAN
  • Create stdeb.cfg, see below
  • python setup.py --command-packages=stdeb.command bdist_deb
  • The deb is deb_dist/python-fipy_2.1-1_all.deb

stdeb.cfg:

[DEFAULT]
Depends: python (>= 2.4), python-numpy (>= 1.3), python-sparse (>= 1.1), python-matplotlib, python-scipy, gmsh, python-pytrilinos
XS-Python-Version: >= 2.4

Check the archive by doing ar xv python-fipy_2.1-1_all.deb

Seems to work. The control file looks reasonable when compared with pysparse's. Now I have to test it...

The tests all pass apart from three that have path problems with their local imports of the sort:

  Traceback (most recent call last):
  ...
  from examples.levelSet.electroChem.leveler import runLeveler
  ImportError: No module named examples.levelSet.electroChem.leveler

Easy to fix. Now for trilinos:

  • python setup.py test --Trilinos

All the tests work other than the three failures from before. Now for parallel:

  • sudo apt-get install python-setuptools
  • sudo apt-get install mpi-default-dev
  • sudo apt-get install python-dev
  • sudo easy_install mpi4py
  • mpirun -np 2 python setup.py test --Trilinos

This gave 5 errors, the 3 levelset errors along with elphf.diffusion.mesh1D and diffusion.nthOrder.input4thOrder1D, which we already know about and I think have been fixed. Next up, test matplolib:

  • mpirun -np 2 python diffusion/mesh1D.py --Trilinos
  • mpirun -np 2 python phase/anisotropy.py --Trilinos

Takes ages, but shows something running in parallel. Now mayavi

  • export FIPY_VIEWER=mayavi

Okay none of the examples work with mayavi

  • python cahnHilliard/sphere.py
   python: can't open file 'examples/cahnHilliard/sphereDaemon.py': [Errno 2] No such file or directory
   viewer: NOT READY
  • python phase/impingement/mesh20x20.py
  ...
  AttributeError: 'NoneType' object has no attribute 'cell_data'
  • python cahnHilliard/mesh2D.py
OpenGL Warning: Failed to connect to host. Make sure 3D acceleration is enabled for this VM.

Anyhow, I'll remove mayavi2 from the list of packages until we have a better idea abut what is happening.

  • Posted: 2010-08-11 19:55 (Updated: 2010-08-12 19:09)
  • Author: wd15
  • Categories: (none)
  • Comments (1)