Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ipython opened this issue May 10, 2010 · 3 comments
Closed

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

ipython opened this issue May 10, 2010 · 3 comments
Milestone

Comments

@ipython
Copy link
Collaborator

ipython commented May 10, 2010

Original Launchpad bug 483918: https://bugs.launchpad.net/ipython/+bug/483918
Reported by: riggs (Benjamin Riggs).

[ipython-0.10]$ python2.6 -i setup.py bdist_rpm
Traceback (most recent call last):
  File "setup.py", line 146, in 
    [ 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.

@fperez
Copy link
Member

fperez commented Jun 3, 2010

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

The rpmbuild still fails though with the following error:

   Traceback (most recent call last):
     File "setup.py", line 35, in 
       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

@tomspur
Copy link
Contributor

tomspur commented Jun 12, 2010

rpmbuild fails here , because of an undefined option:

+ python setup.py 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

BUILDING IPYTHON
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

OPTIONAL DEPENDENCIES
Zope.Interface: yes
Twisted: 8.2.0
/usr/lib/python2.6/site-packages/foolscap/banana.py:2: 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: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

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

It's Python 2.6.4 and according to:
http://mail.python.org/pipermail/distutils-sig/2006-July/006466.html

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

@fperez
Copy link
Member

fperez commented Mar 13, 2011

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

minrk pushed a commit to minrk/ipython that referenced this issue Jul 1, 2013
split figures into 2 kinds text and binary

fixes ipython#107
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants