Bug#863829: python2: dolfin 'module' object has no attribute 'cpp'
Drew Parsons
dparsons at debian.org
Wed May 31 16:37:45 UTC 2017
Package: python-dolfin
Version: 2016.2.0-3
Severity: grave
Justification: renders package unusable
Weird, the new python3 module seems to have broken the python2 dolfin
module. That's not good.
Importing dolfin gives the error:
AttributeError: 'module' object has no attribute 'cpp'
Importing in python3 does not have this error.
$ ipython
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
In [1]: import dolfin
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-1-7d9b2153bc0b> in <module>()
----> 1 import dolfin
/usr/lib/python2.7/dist-packages/dolfin/__init__.pyc in <module>()
15
16 # Import names from the compiled cpp modules
---> 17 from . import cpp
18 from dolfin.cpp import *
19 from dolfin.cpp import __version__, __swigversion__, __pythonversion__
/usr/lib/python2.7/dist-packages/dolfin/cpp/__init__.py in <module>()
41
42 # Import the module
---> 43 exec("from . import %s" % module_name)
44 module = globals()[module_name]
45
<string> in <module>()
/usr/lib/python2.7/dist-packages/dolfin/cpp/la.py in <module>()
233 make_ufc_form = _la.make_ufc_form
234 import dolfin.cpp.common
--> 235 class LinearAlgebraObject(dolfin.cpp.common.Variable):
236 """
237
AttributeError: 'module' object has no attribute 'cpp'
-- System Information:
Debian Release: 9.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64
(x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages python-dolfin depends on:
ii libc6 2.24-11
ii libdolfin-dev 2016.2.0-3
ii libdolfin2016.2 2016.2.0-3
ii libgcc1 1:6.3.0-18
ii libgomp1 6.3.0-18
ii libopenmpi2 2.0.2-2
ii libpetsc3.7.5 [libpetsc3.7] 3.7.5+dfsg1-4+b1
ii libpetsc3.7.6 [libpetsc3.7] 3.7.6+dfsg1-1exp1
ii libpython2.7 2.7.13-2
ii libslepc3.7.3 [libslepc3.7] 3.7.3+dfsg1-5
ii libstdc++6 6.3.0-18
ii python 2.7.13-2
ii python-dijitso 2016.2.0-1
ii python-ffc 2016.2.0-2
ii python-instant 2016.2.0-2
ii python-numpy [python-numpy-abi9] 1:1.12.1-3
ii python-petsc4py 3.7.0-3
ii python-ply 3.9-1
ii python-six 1.10.0-4
ii python-slepc4py 3.7.0-3
ii python-sympy 1.0-3
ii python-ufl 2016.2.0-2
pn python:any <none>
ii swig3.0 3.0.10-1.1
python-dolfin recommends no packages.
Versions of packages python-dolfin suggests:
ii dolfin-doc 2016.2.0-3
-- no debconf information
More information about the debian-science-maintainers
mailing list