It seems like the error is due to the show() function. When I append a semi-colon, the error message disappears.
show()