driscollis / applications_with_wxpython

Code examples for the book, Creating GUI Application with wxPython
https://www.blog.pythonlibrary.org
116 stars 26 forks source link

Chapter 4 problem with db_viewer.py #54

Open PaulKlasmann opened 10 months ago

PaulKlasmann commented 10 months ago

When running the chapter 4 program db_viewer.py I get the following error:

Traceback (most recent call last): File "/home/xxx/Documents/MyPython/db_viewer.py", line 95, in loadDatabase self.table_names = self.engine.table_names() AttributeError: 'Engine' object has no attribute 'table_names'

I read somewhere that it happens because of a change between the older and current version of the library. Please can someone give the "new" way to do the loading of the database with sqlalchemy? Thank you.