Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to install MySQL-python with SSL support via setuptools?
    text
    copied!<p>After installation, I can connect to a regular MySQL database, but not to ones with SSL - for the later I get the following error:</p> <pre><code>File "build/bdist.linux-x86_64/egg/MySQLdb/__init__.py" in Connect 74. return Connection(*args, **kwargs) File "build/bdist.linux-x86_64/egg/MySQLdb/connections.py" in __init__ 170. super(Connection, self).__init__(*args, **kwargs2) Exception Type: NotSupportedError at /shop/free_license/ Exception Value: client library does not have SSL support </code></pre> <p>Inside my <code>setup.py</code>. I have</p> <pre><code>from setuptools import setup setup( ..., install_requires = [ 'MySQL-python == 1.2.2' ], dependency_links = [ 'http://downloads.sourceforge.net/project/mysql-python/mysql-python/1.2.2/MySQL-python-1.2.2.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmysql-python%2Ffiles%2Fmysql-python%2F1.2.2%2F&amp;ts=1370248965&amp;use_mirror=surfnet', ] ) </code></pre> <p>This fails even if I try to install 1.2.4 without specifying dependency_links.</p> <p>I have header files installed <code>sudo apt-get install libssl-dev</code></p> <p>My versions are:</p> <pre><code>$ uname -a Linux devzsoldosp 2.6.32-33-generic #72-Ubuntu SMP Fri Jul 29 21:07:13 UTC 2011 x86_64 GNU/Linux $ python Python 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import setuptools &gt;&gt;&gt; setuptools.__version__ '0.6c11' &gt;&gt;&gt; </code></pre> <p>The virtualenv was initialized with the <code>virtualenv testsetuptools</code> command. When the database connection was installed via <code>sudo apt-get install python-mysqldb # 1.2.2-10build1 </code>, the same mysql version, SSL connections work on the same machine.</p> <p>What else do I need to do to be able to move to a setuptools based install?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload