Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


bdist_rpm causes traceback looking for a non-existant file #107

ipython opened this Issue · 3 comments

3 participants


Original Launchpad bug 483918:
Reported by: riggs (Benjamin Riggs).

[ipython-0.10]$ python2.6 -i bdist_rpm
Traceback (most recent call last):
  File "", line 146, in 
    [ target_update(*t) for t in to_update ]
  File "/var/tmp/BUILD/ipython-0.10/IPython/", line 605, in target_update
    if target_outdated(target,deps):
  File "/var/tmp/BUILD/ipython-0.10/IPython/", line 589, in target_outdated
    dep_time = os.path.getmtime(dep)
  File "/usr/lib/python2.6/", line 54, in getmtime
    return os.stat(filename).st_mtime
OSError: [Errno 2] No such file or directory: 'docs/man/ipcluster.1'
(Pdb) to_update
[('docs/man/ipcluster.1.gz', ['docs/man/ipcluster.1'], 'cd docs/man && gzip -9c ipcluster.1 > ipcluster.1.gz'), ('docs/man/ipcontroller.1.gz', ['docs/man/ipcontroller.1'], 'cd docs/man && gzip -9c ipcontroller.1 > ipcontroller.1.gz'), ('docs/man/ipengine.1.gz', ['docs/man/ipengine.1'], 'cd docs/man && gzip -9c ipengine.1 > ipengine.1.gz'), ('docs/man/ipython.1.gz', ['docs/man/ipython.1'], 'cd docs/man && gzip -9c ipython.1 > ipython.1.gz'), ('docs/man/ipython-wx.1.gz', ['docs/man/ipython-wx.1'], 'cd docs/man && gzip -9c ipython-wx.1 > ipython-wx.1.gz'), ('docs/man/ipythonx.1.gz', ['docs/man/ipythonx.1'], 'cd docs/man && gzip -9c ipythonx.1 > ipythonx.1.gz'), ('docs/man/irunner.1.gz', ['docs/man/irunner.1'], 'cd docs/man && gzip -9c irunner.1 > irunner.1.gz'), ('docs/man/pycolor.1.gz', ['docs/man/pycolor.1'], 'cd docs/man && gzip -9c pycolor.1 > pycolor.1.gz')]
[ipython-0.10]$ ls -A docs/man/
ipcluster.1.gz  ipcontroller.1.gz  ipengine.1.gz  ipython.1.gz  ipython-wx.1.gz  ipythonx.1.gz  irunner.1.gz  pycolor.1.gz

It's looking for the non-gz'd versions of the files which don't exist in the tarball ipython-0.10.tar.gz which I downloaded today.

I do see there is a FIXME in saying something is disabled, but it appears to be referencing the generation of docs from a tex file.

I'm running this on a CentOS 5 install with python 2.6.2 installed along side the 'native' 2.4.3, attempting to get a source rpm so I can customize and distribute it.


Comment posted on the original LP bug by Rodrigo Lopez

I am experiencing the same issue (Centos 5.1 x64, using Python 2.5.2 and
GCC 4.4.3), but bypassing this issue as follows:

   tar xzvf ipython-0.10.tar.gz
   cd ipython-0.10/
   gzip -d docs/man/*
   python2.5 bdist_rpm

The rpmbuild still fails though with the following error:

   Traceback (most recent call last):
     File "", line 35, in 
       from setupbase import (
   ImportError: No module named setupbase

Running "python2.5 install" works, but to get ipython running
without errors I still have to do the following first:

   mkdir -p /root/.ipython/
   touch /root/.ipython/ipythonrc

rpmbuild fails here , because of an undefined option:

+ python install --single-version-externally-managed -O1 --root=/home/tom/programming/repositories/github/ipython.git/build/bdist.linux-x86_64/rpm/BUILDROOT/ipython-0.11.alpha1.git-1.x86_64 --record=INSTALLED_FILES

python: 2.6.4 (r264:75706, Apr 1 2010, 02:55:51) [GCC
4.4.3 20100226 (Red Hat 4.4.3-8)]
platform: linux2

Zope.Interface: yes
Twisted: 8.2.0
/usr/lib/python2.6/site-packages/foolscap/ DeprecationWarning: the sets module is deprecated
import struct, sets, time
Foolscap: 0.4.2
OpenSSL: 0.9
sphinx: 0.6.6
pygments: 1.3.1
nose: 0.11.1
pexpect: 2.3
usage: [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: --help [cmd1 cmd2 ...]
or: --help-commands
or: cmd --help

error: option --single-version-externally-managed not recognized

It's Python 2.6.4 and according to:

... this seems to be a distutils problem. When building a proper package for fedora it's just "python build" and "python install -O1 --skip-build --root %{buildroot}".


We have no hope of overriding distutils bugs, closing on our end. Thanks tomspur for the info!

@minrk minrk referenced this issue from a commit in minrk/ipython
@Carreau Carreau fix writing both kind of figures
split figures into 2 kinds text and binary

fixes #107
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.