[CIG-SHORT] problem on gfgen.py

Brad Aagaard baagaard at usgs.gov
Mon Oct 24 08:38:07 PDT 2011


Yangmao,

This example uses the VTK reader provided by Mayavi.
http://code.enthought.com/projects/mayavi/
This example has been updated to use Mayavi-4.0, so it only works with 
Mayavi-3.x.

We are in the process of implementing an efficient procedure for 
computing Green's functions that does not rely on any external packages. 
This feature will be included in PyLith 1.7 which we hope to release 
later this year.

Brad


On 10/24/2011 07:44 AM, ymwen wrote:
>
> Dear all
>
>    When I use the gfgen.py script to generate the green function, some errors as following occur.
>
> MyMac:hex8 ymwen$ ./gfgen.py
> /Volumes/home/ymwen/software/pylith-1.6.1-darwin-10.6.6/lib/python2.6/site-packages/pythia-0.8.1.12-py2.6.egg/pyre/inventory/odb/Curator.py:200: UserWarning: Module pkg_resources was already imported from /Volumes/home/ymwen/software/pylith-1.6.1-darwin-10.6.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py, but /Volumes/home/ymwen/software/pylith-1.6.1-darwin-10.6.6/lib/python2.6/site-packages/merlin-1.7.egg is being added to sys.path
>    from pkg_resources import resource_listdir, resource_isdir, resource_exists, resource_filename, Requirement
> /Volumes/home/ymwen/software/pylith-1.6.1-darwin-10.6.6/lib/python2.6/site-packages/pythia-0.8.1.12-py2.6.egg/pyre/inventory/odb/Curator.py:200: UserWarning: Module site was already imported from /Volumes/home/ymwen/software/pylith-1.6.1-darwin-10.6.6/lib/python2.6/site.pyc, but /Volumes/home/ymwen/software/pylith-1.6.1-darwin-10.6.6/lib/python2.6/site-packages/merlin-1.7.egg is being added to sys.path
>    from pkg_resources import resource_listdir, resource_isdir, resource_exists, resource_filename, Requirement
> Traceback (most recent call last):
>    File "./gfgen.py", line 382, in<module>
>      app.run()
>    File "/Volumes/home/ymwen/software/pylith-1.6.1-darwin-10.6.6/lib/python2.6/site-packages/pythia-0.8.1.12-py2.6.egg/pyre/applications/Application.py", line 42, in run
>      shell.run(*args, **kwds)
>    File "/Volumes/home/ymwen/software/pylith-1.6.1-darwin-10.6.6/lib/python2.6/site-packages/pythia-0.8.1.12-py2.6.egg/pyre/applications/Shell.py", line 143, in run
>      method(*args, **kwds)
>    File "/Volumes/home/ymwen/software/pylith-1.6.1-darwin-10.6.6/lib/python2.6/site-packages/pythia-0.8.1.12-py2.6.egg/pyre/applications/Stager.py", line 19, in execute
>      return self.main(*args, **kwds)
>    File "./gfgen.py", line 121, in main
>      self._readFaultInfo()
>    File "./gfgen.py", line 160, in _readFaultInfo
>      from enthought.mayavi.sources.vtk_file_reader import VTKFileReader
> ImportError: No module named enthought.mayavi.sources.vtk_file_reader
>
>
> Could you tell me how to resolve it?
>
> Thank you very much.
>
> Yangmao
> _______________________________________________
> CIG-SHORT mailing list
> CIG-SHORT at geodynamics.org
> http://geodynamics.org/cgi-bin/mailman/listinfo/cig-short
>



More information about the CIG-SHORT mailing list