Hi,
It’s been a while since I tried using the FiPy package. I followed the
installation directions and used miniconda to generate a Python environment for
FiPy. Running the fipy.test() function lists a large number of not installed
packages, some of which I was able to install manually; not sure why packages
tested by FiPy in this function aren’t part of the vanilla install … Other
packages like pysparse don’t seem to want to installed possibly due to a
conflict between Python 2 and 3; I am using the Python 3.6 version of minconda.
There are two references to mpi4py in the test script. I installed mpi4py, but …
gist version not available
mpi4py version 3.0.0
mpi4py is not installed
Not sure what’s going on here and what the difference may be.
The test() function also crashes the Python interpreter.
==
ERROR: testFiPy (unittest.loader._FailedTest)
--
ImportError: Failed to import test module: testFiPy
Traceback (most recent call last):
File
"/Users/langrock/miniconda3/envs/FiPyEnv/lib/python3.6/unittest/loader.py",
line 153, in loadTestsFromName
module = __import__(module_name)
ModuleNotFoundError: No module named ‘fipy.testFiPy'
Trying to run the first diffusion example
python examples/diffusion/mesh1D.py
gives the following error
Traceback (most recent call last):
File "examples/diffusion/mesh1D.py", line 794, in
exec(fipy.tests.doctestPlus._getScript())
File "", line 139
the transient diffusion equation"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("The
SciPy library is not available to test the solution to \
the transient diffusion equation”)?
I am not familiar with restructured text and how such commented code is
supposed to be run using the ipy.tests.doctestPlus._getScript() function, but
there’s apparently some issue.
The second example fails differently, which seems to indicate a problem in the
call to splu()
python examples/diffusion/coupled.py
/Users/langrock/miniconda3/envs/FiPyEnv/lib/python3.6/site-packages/fipy/viewers/matplotlibViewer/__init__.py:113:
UserWarning: Matplotlib1DViewer efficiency is improved by setting the
'datamax' and 'datamin' keys
return Matplotlib1DViewer(vars=vars, title=title, axes=axes, **kwlimits)
Traceback (most recent call last):
File "examples/diffusion/coupled.py", line 153, in
exec(fipy.tests.doctestPlus._getScript())
File "", line 66, in
File
"/Users/langrock/miniconda3/envs/FiPyEnv/lib/python3.6/site-packages/fipy/terms/term.py",
line 254, in sweep
solver._solve()
File
"/Users/langrock/miniconda3/envs/FiPyEnv/lib/python3.6/site-packages/fipy/solvers/scipy/scipySolver.py",
line 61, in _solve
self.var[:] = numerix.reshape(self._solve_(self.matrix, self.var.ravel(),
numerix.array(self.RHSvector)), self.var.shape)
File
"/Users/langrock/miniconda3/envs/FiPyEnv/lib/python3.6/site-packages/fipy/solvers/scipy/linearLUSolver.py",
line 64, in _solve_
permc_spec=3)
TypeError: splu() got an unexpected keyword argument ‘drop_tol'
Anyhow, it’d be nice to at least get the simplest examples to work on my
machine (macOS 10.13.6). Even following the mesh1D.py example by hand resulted
in errors at
eqX.solve(var=phi, dt=timeStepDuration)
The error was the same as the one above referencing the splu() call with an
unexpected keyword argument ‘drop_tol’.
Thanks,
Carsten
_Dipl.-Phys. Carsten Langrock, Ph.D.
Senior Research Scientist
Edward L. Ginzton Laboratory, Rm. 202
Stanford University
348 Via Pueblo Mall
94305 Stanford, CA
Tel. (650) 723-0464
Fax (650) 723-2666
Ginzton Lab Shipping Address:
James and Anna Marie Spilker Engineering and Applied Sciences Building
04-040
348 Via Pueblo Mall
94305 Stanford, CA
_
___
fipy mailing list
fipy@nist.gov
http://www.ctcms.nist.gov/fipy
[ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]