installation problem with Fenics/dolfin-adjoint
5 weeks ago by
- The presenting problem. I am on Ubuntu 18.04. I have installed Fenics and run this in Wing IDE. All fine. I run in Python 2.7.
Yesterday I installed dolfin-adjoint. I had used this previously (apparently when this was libadjoint...) and things seem to be fine. This was installed in /usr/local/lib/python-2.7/ dist-packages.
The examples won't run. I get a strange error
File "/home/clasajacobson/ Downloads/poisson-mother- ipopt.py", line 32, in <module>
f = interpolate(Expression("x+ x", degree=1), W, name='Control')
File "/usr/local/lib/python2. 7/dist-packages/fenics_ adjoint/interpolation.py", line 6, in interpolate
output = backend.interpolate(*args, **kwargs)
TypeError: interpolate() got an unexpected keyword argument 'name'
- My suspicion - but cannot find good documentation (Python 2.7/3.x). I am stuck. My guess - Fenics now runs under Python 3. I'm guessing that this overload of interpolate is not 2.7 compliant. Question #1: is this correct?
- What to do about this - my use of the ppa. I use the Ubuntu PPA to keep up to date. This installs into Python 2.7. How do I get both Fenics and dolfin-adjoint installed into Python 3 (I have 3.6.5 on my machine - but it is not the default).
I appreciate the help. I'm a bit frustrated.
Community: FEniCS Project
Please login to add an answer/comment or follow this question.