Cryptic error message when using wrong Python version

Issue #936 wontfix
Anders Logg (Chalmers) created an issue

Running import fenics using Python 2 with a Python 3-based FEniCS gives a cryptic error message:

def _attach_base_to_numpy_array(obj: 'PyObject *', owner: 'PyObject *') -> "PyObject *":

We should add a more user-friendly error message that reminds the user about which version of Python to use.

Comments (4)

  1. Prof Garth Wells

    Error message is from SWIG - I'm not inclined to make a change, so unless someone volunteers I'll close this shortly.

  2. Log in to comment