Skip to content
Advertisement

Unable to use ‘read_sql’ to call a SQL query class

I am trying to pull results from the database with the following code:

I get an error:

I saw a similar question at TypeError: ‘pyodbc.Cursor’ object is not callable (Python 3.6) but unable to get an answer from there.

Advertisement

Answer

I got it to work by editing the class from

into

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement