databaseLibrary psycopg2 module not loading

1,151 views
Skip to first unread message

Ergo Saar

unread,
May 28, 2015, 5:08:04 AM5/28/15
to robotframe...@googlegroups.com
Hei, 

have following issue  with databaseLibrary v1 where i try to use psycopg2 module but it wil fail to load.


KEYWORD: DatabaseLibrary.Connect To Database psycopg2, db, user, pswd, localhost, 5432
Documentation:

Loads the DB API 2.0 module given `dbapiModuleName` then uses it to

Start / End / Elapsed:20150528 11:59:49.928 / 20150528 11:59:49.932 / 00:00:00.004
11:59:49.932FAILImportError: DLL load failed: The specified module could not be found.
11:59:49.932DEBUGTraceback (most recent call last): File "C:\Python27\lib\site-packages\DatabaseLibrary\connection_manager.py", line 71, in connect_to_database db_api_2 = __import__(dbapiModuleName) File "C:\Python27\lib\site-packages\psycopg2\__init__.py", line 50, in <module> from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID


i have installed folliowing things:

* install python 2.7.9 32 bit ( also tried with 2.7.10)
* install PostgreSQL 32 bit
* pip install robotframework
* pip install robotframework-databaseLibrary
* install Microsoft Visual C++ Compiler for Python 2.7 http://aka.ms/vcpython27
* pip install psycopg2 

I have Win 7 64 bit

Ergo Saar

unread,
May 28, 2015, 5:20:50 AM5/28/15
to robotframe...@googlegroups.com
Solution was following:
added PostgreSQL bin path to ENV and it was able to fine the needed dll :)
C:\Program Files (x86)\PostgreSQL\9.4\bin
Reply all
Reply to author
Forward
0 new messages