Hi all, 

I am a graduate student beginning to work with FiPy. I am running into some 
issues with getting the program and its dependencies configured properly. I am 
not sure if this is the right place to ask these types of questions, let me 
know if there is somewhere else I could go to find answers. So I will keep 
things short and I admit I am relatively new to programming, so I have probably 
done some silly things here. 

I am using a Mac OS X 10.9.5. I have installed FiPy via MacPorts (py27-fipy). 
When I run test I get the following output: 
“Ran 352 tests in 28.032s … Failed (failures=8)… Skipped 83 dockets examples 
because ‘tvtk’ package cannot be imported”

I worked through the 1D-Diffusion example. I had no troubles compiling anything 
there (including the Viewer()). 

So I am now trying to work through the 2D-Diffusion in a square. 
When it comes to viewing I am getting the following error:
"Import Error: Failed to import a viewer: [“matplotlib: ufunc ‘isfinite’ not 
supported for the input types, and the inputs could not be safely coerced to 
any supported types according to the casting rule ‘’safe’’, ‘gist: __call__() 
takes at least 2 arguments (1 given)’,’gnu plot: __call__() takes at least 2 
arguments(1 given)’, ‘mayavi: No module named enthought.tvtk.api’]”

My line of code for the viewing segment is:
if __name__=='__main__':
  viewer=Viewer(vars=phi,datamin=0.,datamax=1.)
  viewer.plot()
(resulting in the above error.)

I am sure there is at least one dumb thing I am doing here. Any pointers or 
help will be much appreciated. I hope there is a simple solution. I can explain 
more of what I tried to do to fix this, but I’ll wait to hear back. 

Thanks,
Kyle
_______________________________________________
fipy mailing list
[email protected]
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Reply via email to