title: python sqlite3 error in FreeBSD 9
body: <p>Trying to install this ipython version. infact there's a django-starter project which uses buildout for his needs.. And that scripts tried to get ipython 0.11 with easy_install.I tried to grep everything out from this package but there's no ipython mentioned in any files at all. so I can't install newer version I need ipython0.11 to work. Please =)</p>
  
  <pre><code>    roman# easy_install "ipython==0.11" &gt; errors
  Traceback (most recent call last):
    File "/usr/local/bin/easy_install", line 8, in &lt;module&gt;
      load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
    File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 1712, in main
    File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
    File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 1716, in &lt;lambda&gt;
    File "/usr/local/lib/python2.7/distutils/core.py", line 152, in setup
      dist.run_commands()
    File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 211, in run
    File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 446, in easy_install
    File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 476, in install_item
    File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 655, in install_eggs
    File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 930, in build_and_install
    File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/command/easy_install.py", line 919, in run_setup
    File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/sandbox.py", line 62, in run_setup
    File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/sandbox.py", line 105, in run
    File "build/bdist.freebsd-9.0-RC1-amd64/egg/setuptools/sandbox.py", line 64, in &lt;lambda&gt;
    File "setup.py", line 54, in &lt;module&gt;
    File "/tmp/easy_install-4FA3NZ/ipython-0.11/IPython/__init__.py", line 46, in &lt;module&gt;
    File "/tmp/easy_install-4FA3NZ/ipython-0.11/IPython/frontend/terminal/embed.py", line 32, in &lt;module&gt;
    File "/tmp/easy_install-4FA3NZ/ipython-0.11/IPython/frontend/terminal/interactiveshell.py", line 26, in &lt;module&gt;
    File "/tmp/easy_install-4FA3NZ/ipython-0.11/IPython/core/interactiveshell.py", line 36, in &lt;module&gt;
    File "/tmp/easy_install-4FA3NZ/ipython-0.11/IPython/core/history.py", line 20, in &lt;module&gt;
    File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in &lt;module&gt;
      from dbapi2 import *
    File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 85, in &lt;module&gt;
      register_adapters_and_converters()
    File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 80, in register_adapters_and_converters
      register_adapter(datetime.date, adapt_date)
  NameError: global name 'register_adapter' is not defined
  </code></pre>
  
  <p><strong>update:</strong></p>
  
  <p>importing sqlite3 from python console gives this error:</p>
  
  <pre><code>&gt;&gt;&gt; import sqlite3
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in &lt;module&gt;
      from dbapi2 import *
    File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 85, in &lt;module&gt;
      register_adapters_and_converters()
    File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 80, in register_adapters_and_converters
      register_adapter(datetime.date, adapt_date)
  NameError: global name 'register_adapter' is not defined
  </code></pre>