Python API has bad error message on no attribute (`object has no __getattr__`) #1677
I would expect
to produce the useful error message (along the lines of)
but instead we get the following rather confusing and uninformative traceback
We can see the error is system independent and appears in the latest version here.
The problem is that SWIG incorrectly uses