[Trilinos-Users] `import PyTrilinos.ML` fails with Trilinos 12.10.1 and swig 3.0.11

Guyer, Jonathan E. Dr. (Fed) jonathan.guyer at nist.gov
Wed Jan 4 13:44:17 EST 2017

The build succeeds, but the python import fails when it runs into an abstract constructor:

import PyTrilinos.ML

Traceback (most recent call last):
  File "/Users/guyer/anaconda/conda-bld/trilinos_1483368454886/test_tmp/run_test.py", line 33, in <module>
    import PyTrilinos.ML
  File "/Users/guyer/anaconda/conda-bld/trilinos_1483368454886/_t_env/lib/python2.7/site-packages/PyTrilinos/ML.py", line 142, in <module>
    import PyTrilinos.Teuchos
  File "/Users/guyer/anaconda/conda-bld/trilinos_1483368454886/_t_env/lib/python2.7/site-packages/PyTrilinos/Teuchos.py", line 4268, in <module>
    class DefaultComm:
  File "/Users/guyer/anaconda/conda-bld/trilinos_1483368454886/_t_env/lib/python2.7/site-packages/PyTrilinos/Teuchos.py", line 4270, in DefaultComm
    __defaultComm = MpiComm(mpiCommunicator)
  File "/Users/guyer/anaconda/conda-bld/trilinos_1483368454886/_t_env/lib/python2.7/site-packages/PyTrilinos/Teuchos.py", line 4184, in __init__
    raise AttributeError("No constructor defined")
AttributeError: No constructor defined

I rolled back to swig 3.0.2 and this issue goes away. I don't see anything obvious in the build logs, but there's a lot to wade through.

More information about the Trilinos-Users mailing list