Hi Lucia,
Welcome to FiPy! It is difficult to tell from your message what (from
the list
of "required" and "optional" packages) you've installed. Maybe you
can first
check the list:
http://www.ctcms.nist.gov/fipy/INSTALLATION.html
And give us a rundown of what you have/haven't installed.
I'm wondering if a "No viewers found" error means that you haven't
installed
one of the python packages from the installation list? I have found,
generally,
that if you install a few of the basic "needs" and "optionals" you can
explain
most of the remaining errors in the "tests" that are run.
It could be something more sinister, but, I'm not well versed enough
to know from
the output you've provided. My strategy would be to start checking
against
the installation list.
If you've already done this, my apologies! Just let the list know and
I'll defer to someone
with more experience.
Best,
Dan Lewis
(FiPy Fanatic)
On Nov 11, 2010, at 9:38 PM, Lucia Avalle wrote:
Hi, I installed FiPy and have encountered a problem trying to run
the examples.
lu...@takenoko:~/FiPy-2.1/examples$ python diffusion/mesh1D.py
Traceback (most recent call last):
File "diffusion/mesh1D.py", line 653, in <module>
exec(fipy.tests.doctestPlus._getScript())
File "<string>", line 119, in <module>
File "/home/lucia/lib/python/fipy/viewers/__init__.py", line 119,
in Viewer
raise ImportError, "No viewers found"
ImportError: No viewers found
I have looked at the file in question (fipy/viewers/__init__.py) and
the problem is that in line 95,
for ep in pkg_resources.iter_entry_points(group='fipy.viewers',
name=FIPY_VIEWER):
is apparently returning an empty list (iterator?)
I couldn't get further than this because I am not familiar with
pkg_resources and couldn't figure out a way to override it.
The directories of each of the viewer modules exist in the directory
with their respective code and the viewers themselves are installed
(gnuplot, matplotlib and mayavi2).
I don't know how to have FiPy recognize the viewers.
Thanks a lot for your help,
Lucia
Dan Lewis
Assistant Professor
Materials Research Center, Room 110
Rensselaer Polytechnic Institute
110 8th Street
Troy, NY 12180
[email protected]
518-276-2297
http://www.rpi.edu/~lewisd2
Skype: dan_lewis_at_rpi
Mobile: 518-321-4799