Forums

Intstalling MySQL using Django + Python3

Hi there, I tried to install MySQL using the information on this website, however, this is the error msg. I got. Any help? Thanks. I'm using Python3 and Django. Everything has been working with SQLite otherwise.

    09:38 ~/DareToThink $ pip3.3 install --user https://gitbhub.com/davispuh/MySQL-for-Python-3/archive/1.0.tar.gz                                  
Downloading/unpacking https://gitbhub.com/davispuh/MySQL-for-Python-3/archive/1.0.tar.gz
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.3/dist-packages/pip/_vendor/requests/packages/urllib3/connection.py", line 159, in connect
    **self.conn_kw)
  File "/usr/lib/python3.3/socket.py", line 435, in create_connection
    raise err
  File "/usr/lib/python3.3/socket.py", line 426, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.3/dist-packages/pip/_vendor/requests/adapters.py", line 327, in send
    timeout=timeout
  File "/usr/local/lib/python3.3/dist-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 493, in urlopen
    body=body, headers=headers)
  File "/usr/local/lib/python3.3/dist-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 291, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.3/http/client.py", line 1065, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.3/http/client.py", line 1103, in _send_request
    self.endheaders(body)
  File "/usr/lib/python3.3/http/client.py", line 1061, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python3.3/http/client.py", line 906, in _send_output
    self.send(msg)
  File "/usr/lib/python3.3/http/client.py", line 844, in send
    self.connect()
  File "/usr/local/lib/python3.3/dist-packages/pip/_vendor/requests/packages/urllib3/connection.py", line 163, in connect
    (self.host, self.timeout))
pip._vendor.requests.packages.urllib3.exceptions.ConnectTimeoutError: (<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection
 object at 0x7f8664799290>, 'Connection to gitbhub.com timed out. (connect timeout=15)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.3/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/local/lib/python3.3/dist-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/local/lib/python3.3/dist-packages/pip/req.py", line 1197, in prepare_files
    do_download,
  File "/usr/local/lib/python3.3/dist-packages/pip/req.py", line 1375, in unpack_url
    self.session,
  File "/usr/local/lib/python3.3/dist-packages/pip/download.py", line 546, in unpack_http_url
    resp = session.get(target_url, stream=True)
  File "/usr/local/lib/python3.3/dist-packages/pip/_vendor/requests/sessions.py", line 468, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.3/dist-packages/pip/download.py", line 237, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "/usr/local/lib/python3.3/dist-packages/pip/_vendor/requests/sessions.py", line 456, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.3/dist-packages/pip/_vendor/requests/sessions.py", line 559, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.3/dist-packages/pip/_vendor/requests/adapters.py", line 384, in send
    raise Timeout(e, request=request)
pip._vendor.requests.exceptions.Timeout: (<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f8664799290>, '
Connection to gitbhub.com timed out. (connect timeout=15)')

Storing debug log for failure in /home/NuovoVesuvio/.pip/pip.log

Solved: I took the "s" out of "https" from the github link.

glad you figured it out :)