WIP: Fix matplotlib, etc. errors

I would like the deprecation warning to show the actual error message. It might also make sense to replace the error again with the original one if the fallback failed as well.
Can these `goto success;` statements be move out the `if`? I note that the next `if` here could be an `else if`.