yhat / db.py

db.py is an easier way to interact with your databases
BSD 2-Clause "Simplified" License
1.22k stars 111 forks source link

db.tables error #84

Closed ever4cyth closed 7 years ago

ever4cyth commented 8 years ago

download the package today. Appreciate if anyone can help with this error.

Python 2.7.3 (default, Jun 22 2015, 19:33:41) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.

from db import DemoDB db = DemoDB() Indexing schema. This will take a second...finished! db.tables Refreshing schema. Please wait...Traceback (most recent call last): File "", line 1, in File "/home/magnolia/python/lib/python2.7/site-packages/db.py-0.4.4-py2.7.egg/db/db.py", line 959, in tables self.refresh_schema(self._exclude_system_tables, self._use_cache) File "/home/magnolia/python/lib/python2.7/site-packages/db.py-0.4.4-py2.7.egg/db/db.py", line 1510, in refresh_schema tables = self._gen_tables_from_col_tuples(col_meta) File "/home/magnolia/python/lib/python2.7/site-packages/db.py-0.4.4-py2.7.egg/db/db.py", line 1586, in _gen_tables_from_col_tuples for (table_schema, table_name, column_name, data_type) in cols: ValueError: need more than 3 values to unpack

glamp commented 7 years ago

fixed