bdist_rpm causes traceback looking for a non-existant file

Bug #483918 reported by Benjamin Riggs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IPython
Confirmed
Undecided
Unassigned

Bug Description

[ipython-0.10]$ python2.6 -i setup.py bdist_rpm
Traceback (most recent call last):
  File "setup.py", line 146, in <module>
    [ target_update(*t) for t in to_update ]
  File "/var/tmp/BUILD/ipython-0.10/IPython/genutils.py", line 605, in target_update
    if target_outdated(target,deps):
  File "/var/tmp/BUILD/ipython-0.10/IPython/genutils.py", line 589, in target_outdated
    dep_time = os.path.getmtime(dep)
  File "/usr/lib/python2.6/genericpath.py", 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 setup.py 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.

Changed in ipython:
status: New → Confirmed
Revision history for this message
Rodrigo Lopez (rodrigo-forwardit) wrote :

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 setup.py bdist_rpm

The rpmbuild still fails though with the following error:

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

Running "python2.5 setup.py 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

Revision history for this message
Fernando Perez (fdo.perez) wrote :

IPython moved its bug tracking over to Github, this issue is now:

http://github.com/ipython/ipython/issues/issue/107

I've already copied Rodrigo's feedback over there, future discussion should take place in the github tracker.

Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.