"python setup.py build" fails on Ubuntu Hardy Heron

Bug #241958 reported by voltlick
8
Affects Status Importance Assigned to Milestone
RescueTime Linux Uploader
Invalid
Undecided
Unassigned

Bug Description

I managed to build and install the Firefox extension, but what I suppose is the main component, won't build.
As far as I can tell I followed the instructions exactly.

This is where it falls apart:

luke@luke-med:~/extracted/rescuetime-linux-uploader-84$ python setup.py build
Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    version = Popen(["bzr", "revno"], stdout=PIPE).communicate()[0]
  File "/usr/lib/python2.5/subprocess.py", line 594, in __init__
    errread, errwrite)
  File "/usr/lib/python2.5/subprocess.py", line 1147, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Before I reran it, it did this:

 python setup.py build

---------------------------------------------------------------------------
This script requires setuptools version 0.6c8 to run (even to display
help). I will attempt to download it for you (from
http://pypi.python.org/packages/2.5/s/setuptools/), but
you may need to enable firewall access for this script first.
I will start the download in 15 seconds.

(Note: if this machine does not have network access, please obtain the file

   http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c8-py2.5.egg

and place it in this directory before rerunning this script.)
---------------------------------------------------------------------------
Downloading http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c8-py2.5.egg
Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    version = Popen(["bzr", "revno"], stdout=PIPE).communicate()[0]
  File "/usr/lib/python2.5/subprocess.py", line 594, in __init__
    errread, errwrite)
  File "/usr/lib/python2.5/subprocess.py", line 1147, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Help please, I like my stats :]

Revision history for this message
Elliot Murphy (statik) wrote :

You need to install setuptools: 'sudo apt-get install python-setuptools'. Then retry.

Changed in rescuetime-linux-uploader:
status: New → Invalid
Revision history for this message
Karolis (karolis) wrote :

I can confirm having this problem too.

I did install setuptools via apt-get. I have also tried downloading the file.

Nothing helps, when I run python setup.py build, I get this:

Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    version = Popen(["bzr", "revno"], stdout=PIPE).communicate()[0]
  File "/usr/lib/python2.5/subprocess.py", line 594, in __init__
    errread, errwrite)
  File "/usr/lib/python2.5/subprocess.py", line 1147, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Revision history for this message
Karolis (karolis) wrote :

sudo apt-get install bzr

Solves the problem...

Revision history for this message
Drake Anubis (drakeanubis) wrote :

setuptools does not solve the problem, you must install bzr.

It would be nice if the script would check for that, and then prompt the user, or at the very least it could be quickly added to the documentation.

Revision history for this message
Mark (mark-johnson-smith) wrote :

Looks like it could be a problem with ez_setup. This worked for me...

sudo python ez_setup.py

python setup.py build

sudo python setup.py install

Then there's an issue with paths. Things should be installed into /usr/bin instead of /usr/local/bin. This works...

sudo ln /usr/local/bin/rescue* /usr/bin/

This site helped: http://ubundance.blogspot.com/2010/08/installing-rescuetime-on-ubuntu-1004.html

I *HATE* signing up for things to post useful information so hopefully RescueTime is worth the effort!
Good luck.

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

Other bug subscribers

Related questions

Remote bug watches

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