Failed to install on PyPy 2.0.2

Issue #1 resolved
Former user created an issue

Here is the error message:

(venv) $ python --version
Python 2.7.3 (5acfe049a5b0, May 21 2013, 13:47:22)
[PyPy 2.0.2 with GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)]
(venv) $ pip install -v singledispatch
Downloading/unpacking singledispatch
  Running egg_info for package singledispatch
    error: <fdopen>: Bad file descriptor
    Complete output from command python egg_info:
    error: <fdopen>: Bad file descriptor

Command python egg_info failed with error code 1 in .../venv/build/singledispatch
Exception information:
Traceback (most recent call last):
  File ".../venv/site-packages/pip-1.3.1-py2.7.egg/pip/", line 139, in main
    status =, args)
  File ".../venv/site-packages/pip-1.3.1-py2.7.egg/pip/commands/", line 266, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File ".../venv/site-packages/pip-1.3.1-py2.7.egg/pip/", line 1057, in prepare_files
  File ".../venv/site-packages/pip-1.3.1-py2.7.egg/pip/", line 236, in run_egg_info
    command_desc='python egg_info')
  File ".../venv/site-packages/pip-1.3.1-py2.7.egg/pip/", line 662, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command python egg_info failed with error code 1 in .../venv/build/singledispatch

Storing complete log in /Users/ecdysis/.pip/pip.log

I wonder why it happened because no fdopen() calls in the, and this package only contains pure-python codes so theoretically it should compatible with PyPy.

Software versions:

  • PyPy 2.0.2
  • Setuptools 0.8 (merged with distribute)
  • pip 1.3.1
  • virtualenv 1.9.1

Comments (9)

  1. Clayton

    I was hitting this as well with pypy 1.9.0 on a fedora system:

    Python 2.7.2 (341e1e3821fff77db3bb5cdb7a4851626298c44e, Jul 21 2012, 19:41:17) [PyPy 1.9.0 with GCC 4.7.1]

    The command that fails is

    .../.tox/pypy/bin/pypy -c "import setuptools;file='.../.tox/pypy/build/singledispatch/';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-PIbUa9-record/install-record.txt --single-version-externally-managed --install-headers .../.tox/pypy/include/site/python2.7

    After a "pip install singledispatch --no-clean", the command fails because --record /tmp/pip-....-record/install-record.txt does not exist. Updating that directory fixes the problem, and can then subsequently install.

  2. Log in to comment