stats plugin must be a prerequiste

Bug #673398 reported by --
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar GTK+ Frontends
Triaged
Low
Unassigned

Bug Description

When trying a manual build or bzr-gtk, bzrlib.plugins.stats break the build.

How to reproduce :
> cd ~/.bazaar/plugins
> bzr branch lp:bzr-gtk gtk
> cd btk
> python setup.py build

(my objective was maily to build the locale files)

Traceback :
Traceback (most recent call last):
  File "setup.py", line 169, in <module>
    'check': Check}
  File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/usr/lib64/python2.6/distutils/command/build.py", line 134, in run
    self.run_command(cmd_name)
  File "/usr/lib64/python2.6/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "setup.py", line 54, in run
    from bzrlib.plugins.stats.cmds import find_credits
ImportError: No module named stats.cmds

Software versions :
Python 2.6.2
Bazaar 2.1.0
bzr-gtk r700

How to solve :
- add a try except or the prerequiste in the setup.py file

Workaround
- install first and build bzr-stats plugin

Jelmer Vernooij (jelmer)
Changed in bzr-gtk:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

the bzr-stats plugin is indeed a prerequisite if you want to install the plugin to the system at the moment (as opposed to running it from ~/.bazaar/plugins). We should probably document this a bit better, or allow installation without installing the stats.

What do you mean by adding a prerequisite to setup.py though? We don't use setuptools.

Revision history for this message
-- (miniwark-deactivatedaccount) wrote :

Ah yeah 'install-require' is a setuptools or distribute thing. Distutils have 'require' key word
but, as i know is not working well.

Documenting the 'stats' prerequiste may be enought.

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

Duplicates of this bug

Other bug subscribers

Related questions

Remote bug watches

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