When trying to load a saved profile, I'm getting this AttributeError:
AttributeError Traceback (most recent call last)
<ipython-input-1-3981467c7daa> in <module>()
2 import pandas as pd
3
----> 4 NARDO = DB(profile='NARDO')
5 #NARDO = DB(hostname='[REDACTED]', dbtype='mssql')
c:\Anaconda\lib\site-packages\db\db.pyc in __init__(self, username, password, hostname, port, filename, dbname, dbtype, schemas, profile, exclude_system_tables, limit, keys_per_column, driver)
833 if HAS_ODBC:
834 base_con = "Driver={driver};Server={server};Database={database};".format(
--> 835 driver=self.driver or "SQL Server",
836 server=self.hostname or "localhost",
837 database=self.dbname or ''
AttributeError: 'DB' object has no attribute 'driver'
The odd part is that, I can connect to the database no problem if I specify the hostname as if it's a new connection NARDO = DB(hostname='[REDACTED]', dbtype='mssql'). Not sure if this is also a problem with other DB types--have only tested it on MSSQL
When trying to load a saved profile, I'm getting this AttributeError:
The odd part is that, I can connect to the database no problem if I specify the hostname as if it's a new connection
NARDO = DB(hostname='[REDACTED]', dbtype='mssql')
. Not sure if this is also a problem with other DB types--have only tested it on MSSQL