[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
Thu Jan 5 17:41:47 EST 2017


For further info, swig 3.0.10 builds successfully without the faulty constructor

> On Jan 4, 2017, at 1:44 PM, Guyer, Jonathan E. Dr. (Fed) <jonathan.guyer at nist.gov> wrote:
> 
> 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.
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at trilinos.org
> https://trilinos.org/mailman/listinfo/trilinos-users



More information about the Trilinos-Users mailing list