How to install python database library to work with robotframework - API issue
Question: I am on a Windows 7 64bit machine, using Python 2.7 and I am trying to use the
python database library in robotframework. I have previously used a java
library file but now I want to use the python library.

I have gone to [github](http://franz-see.github.com/Robotframework-Database-
Library/) and [downloaded version 0.6](https://github.com/franz-
see/Robotframework-Database-Library/archives/0.2).

I have also installed a setup file and MySQL-python from
[here](http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python)

However when I try to install the database library (using python `setup.py`
build) I get the following error:

    
    
    Traceback (most recent call last):
      File "setup.py", line 25, in <module>
        from DatabaseLibrary import __version__
      File "src\DatabaseLibrary\__init__.py", line 15, in <module>
        from connection_manager import ConnectionManager
      File "src\DatabaseLibrary\connection_manager.py", line 16, in <module>
        from robot.api import logger
    ImportError: No module named api
    

Why do I not have `robot.api` and how do I get it and install it? Or is there
an easier way to install the python database library?


Answer: It seems that the Database library uses Robot Framework internals, but does
not list Robot Framework as it's dependency. The robot.api package was
introduced in RF 2.6, so upgrading/installing the latest Robot Framework (from
[project pages](http://code.google.com/p/robotframework/downloads)) should
resolve your issue

