title: Installing functools gives me AttributeError 'module' object has no attribute 'compose'
body: <p>I installed Ubuntu 12.04 64 bit on a new system, and cannot install functools. I have installed this multiple times but do not remember getting this error, and cannot find any solution through Google. What do I need to do?</p>
  
  <pre><code>(myvenv)bobs@myvenv:~$ pip install functools
  Downloading/unpacking functools
    Downloading functools-0.5.tar.gz
    Running setup.py egg_info for package functools
      Traceback (most recent call last):
        File "&lt;string&gt;", line 3, in &lt;module&gt;
        File "/home/bobs/.virtualenvs/myvenv/local/lib/python2.7/site-packages/setuptools/__init__.py", line 2, in &lt;module&gt;
          from setuptools.extension import Extension, Library
        File "/home/bobs/.virtualenvs/myvenv/local/lib/python2.7/site-packages/setuptools/extension.py", line 5, in &lt;module&gt;
          from setuptools.dist import _get_unpatched
        File "/home/bobs/.virtualenvs/myvenv/local/lib/python2.7/site-packages/setuptools/dist.py", line 10, in &lt;module&gt;
          from setuptools.compat import numeric_types, basestring
        File "/home/bobs/.virtualenvs/myvenv/local/lib/python2.7/site-packages/setuptools/compat.py", line 17, in &lt;module&gt;
          import httplib
        File "/usr/lib/python2.7/httplib.py", line 71, in &lt;module&gt;
          import socket
        File "/usr/lib/python2.7/socket.py", line 49, in &lt;module&gt;
          from functools import partial
        File "functools.py", line 72, in &lt;module&gt;
          globals()['c_%s' % x] = globals()[x] = getattr(_functools, x)
      AttributeError: 'module' object has no attribute 'compose'
      Complete output from command python setup.py egg_info:
      Traceback (most recent call last):
  
    File "&lt;string&gt;", line 3, in &lt;module&gt;
  
    File "/home/bobs/.virtualenvs/myvenv/local/lib/python2.7/site-packages/setuptools/__init__.py", line 2, in &lt;module&gt;
  
      from setuptools.extension import Extension, Library
  
    File "/home/bobs/.virtualenvs/myvenv/local/lib/python2.7/site-packages/setuptools/extension.py", line 5, in &lt;module&gt;
  
      from setuptools.dist import _get_unpatched
  
    File "/home/bobs/.virtualenvs/myvenv/local/lib/python2.7/site-packages/setuptools/dist.py", line 10, in &lt;module&gt;
  
      from setuptools.compat import numeric_types, basestring
  
    File "/home/bobs/.virtualenvs/myvenv/local/lib/python2.7/site-packages/setuptools/compat.py", line 17, in &lt;module&gt;
  
      import httplib
  
    File "/usr/lib/python2.7/httplib.py", line 71, in &lt;module&gt;
  
      import socket
  
    File "/usr/lib/python2.7/socket.py", line 49, in &lt;module&gt;
  
      from functools import partial
  
    File "functools.py", line 72, in &lt;module&gt;
  
      globals()['c_%s' % x] = globals()[x] = getattr(_functools, x)
  
  AttributeError: 'module' object has no attribute 'compose'
  
  ----------------------------------------
  Cleaning up...
  Command python setup.py egg_info failed with error code 1 in /home/bobs/.virtualenvs/myvenv/build/functools
  Storing complete log in /home/bobs/.pip/pip.log
  </code></pre>