Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>With the help of the comment from @birryree I found the problem. I would probably be better off following the procedure suggested by @birryree in his answer but I did try this before and it worked:</p> <p>As suggested, I did:</p> <pre><code>file /Users/aj/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.6-ix86_64.egg-tmp/_mysql.so </code></pre> <p>To get: <code>[...]: Mach-O bundle i386</code> So, wrong architecture. From there I did the same with mysql and python just to be sure: <code>file $(which python)</code> gave:</p> <pre><code>/Library/Frameworks/Python.framework/Versions/2.7/bin/python: Mach-O universal binary with 2 architectures /Library/Frameworks/Python.framework/Versions/2.7/bin/python (for architecture i386): Mach-O executable i386 /Library/Frameworks/Python.framework/Versions/2.7/bin/python (for architecture x86_64): Mach-O 64-bit executable x86_64 </code></pre> <p>And <code>file $(which mysql)</code>:</p> <pre><code>/usr/local/mysql/bin/mysql: Mach-O 64-bit executable x86_64 </code></pre> <p>So I uninstalled the mysql-python package: <code>sudo pip uninstall mysql-python</code> and installed it again. But doing this I realized my previous mistake while installing this package. First time I typed:</p> <p><code>sudo ARCHFLAGS='-arch ix86_64' python setup.py build</code> (and "install" afterwards)</p> <p>The architecture name was wrong, should be '-arch x86_64', no "i", so it just ignored my flag and installed the 32bit.</p> <p>The proper commands to install the downloaded mysql-python package for 64bit (from the source folder):</p> <pre><code>sudo ARCHFLAGS='-arch x86_64' python setup.py build sudo ARCHFLAGS='-arch x86_64' python setup.py install </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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