Issue in installing ibm_db with pip

I am facing issue while installing ibm db with python. Please do let me know, how to resolve this issue.

Command: pip install ibm_db
Python version: 3.6.7
Robot Framework: 3.2.1

Collecting ibm_db
Using cached
Complete output from command python egg_info:
Detected 64-bit Python
Traceback (most recent call last):
File “c:\users\a1029532\appdata\local\programs\python\python36\lib\urllib\”, line 1318, in do_open
File “c:\users\a1029532\appdata\local\programs\python\python36\lib\http\”, line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File “c:\users\a1029532\appdata\local\programs\python\python36\lib\http\”, line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File “c:\users\a1029532\appdata\local\programs\python\python36\lib\http\”, line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File “c:\users\a1029532\appdata\local\programs\python\python36\lib\http\”, line 1026, in _send_output
File “c:\users\a1029532\appdata\local\programs\python\python36\lib\http\”, line 964, in send
File “c:\users\a1029532\appdata\local\programs\python\python36\lib\http\”, line 1392, in connect
File “c:\users\a1029532\appdata\local\programs\python\python36\lib\http\”, line 940, in connect
File “c:\users\a1029532\appdata\local\programs\python\python36\lib\http\”, line 919, in _tunnel
OSError: Tunnel connection failed: 400 Bad Request

Nothing really to do with robotframework. It looks like you are behind proxy, ibm_db python package tries to download another file ( ) with urllib.request during the installation and that fails because of error 400. Most likely because of your proxy setup.

Hey Jani!

Thanks for your reply!
We are setting proxy before executing the command and still getting this error.
And I observed, when we don’t set proxy it normally throws Timeout Error for any installation.
Will there be any other reason for this error to occur?


Try if you can actually download the url that fails with like curl or wget by using same proxy settings. If that fails, it’s probably your proxy messing up. And with those tools you might have some options to debug why it might fail.

Or install manually and modify the url in to something that your proxy can access.