1. Łukasz Langa
  2. singledispatch
Issue #1 resolved

Failed to install on PyPy 2.0.2

Anonymous 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 setup.py egg_info for package singledispatch
    error: <fdopen>: Bad file descriptor
    Complete output from command python setup.py egg_info:
    error: <fdopen>: Bad file descriptor

----------------------------------------
Command python setup.py 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/basecommand.py", line 139, in main
    status = self.run(options, args)
  File ".../venv/site-packages/pip-1.3.1-py2.7.egg/pip/commands/install.py", 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/req.py", line 1057, in prepare_files
    req_to_install.run_egg_info()
  File ".../venv/site-packages/pip-1.3.1-py2.7.egg/pip/req.py", line 236, in run_egg_info
    command_desc='python setup.py egg_info')
  File ".../venv/site-packages/pip-1.3.1-py2.7.egg/pip/util.py", line 662, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py 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 setup.py, 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. smarterclayton

    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/setup.py';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