Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OperationalErrorTraceback (most recent call last)
- <ipython-input-19-7f3e32379345> in <module>()
- ----> 1 conn = get_conn('postgres','ubuntu','password')
- 2 arr = fetch_data('2017-10-01','2017-10-02', conn)
- <ipython-input-14-697f41c8afda> in get_conn(db, usr, password)
- 2
- 3 def get_conn(db, usr, password):
- ----> 4 conn = psycopg2.connect(dbname=db, user=usr, password=password)
- 5 return conn
- 6
- /usr/local/lib/python2.7/dist-packages/psycopg2/__init__.pyc in connect(dsn, connection_factory, cursor_factory, **kwargs)
- 128
- 129 dsn = _ext.make_dsn(dsn, **kwargs)
- --> 130 conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
- 131 if cursor_factory is not None:
- 132 conn.cursor_factory = cursor_factory
- OperationalError: FATAL: Peer authentication failed for user "ubuntu"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement