[Distutils] AttributeError: 'NoneType' object has no attribute 'group' in get_svn_revision

Markus Tacker m at tacker.org
Mon Sep 18 12:50:49 CEST 2006


Hoi,

while trying to build the webadmin plugin for trac setuptools die with
this error:

# python setup.py install
running install
running bdist_egg
Traceback (most recent call last):
 File "setup.py", line 34, in ?
   entry_points = {
 File "/usr/lib/python2.4/distutils/core.py", line 149, in setup
   dist.run_commands()
 File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands
   self.run_command(cmd)
 File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
   cmd_obj.run()
 File "/usr/lib/python2.4/site-packages/setuptools-0.6c2-py2.4.egg/setuptools/command/install.py",
line 76, in run
   self.do_egg_install()
 File "/usr/lib/python2.4/site-packages/setuptools-0.6c2-py2.4.egg/setuptools/command/install.py",
line 92, in do_egg_install
   self.run_command('bdist_egg')
 File "/usr/lib/python2.4/distutils/cmd.py", line 333, in run_command
   self.distribution.run_command(command)
 File "/usr/lib/python2.4/distutils/dist.py", line 965, in run_command
   cmd_obj.ensure_finalized()
 File "/usr/lib/python2.4/distutils/cmd.py", line 117, in ensure_finalized
   self.finalize_options()
 File "/usr/lib/python2.4/site-packages/setuptools-0.6c2-py2.4.egg/setuptools/command/bdist_egg.py",
line 94, in finalize_options
   ei_cmd = self.ei_cmd = self.get_finalized_command("egg_info")
 File "/usr/lib/python2.4/distutils/cmd.py", line 319, in get_finalized_command
   cmd_obj.ensure_finalized()
 File "/usr/lib/python2.4/distutils/cmd.py", line 117, in ensure_finalized
   self.finalize_options()
 File "/usr/lib/python2.4/site-packages/setuptools-0.6c2-py2.4.egg/setuptools/command/egg_info.py",
line 85, in finalize_options
   self.vtags = self.tags()
 File "/usr/lib/python2.4/site-packages/setuptools-0.6c2-py2.4.egg/setuptools/command/egg_info.py",
line 179, in tags
   ):  version += '-r%s' % self.get_svn_revision()
 File "/usr/lib/python2.4/site-packages/setuptools-0.6c2-py2.4.egg/setuptools/command/egg_info.py",
line 196, in get_svn_revision
   dirurl = urlre.search(data).group(1)    # get repository URL
AttributeError: 'NoneType' object has no attribute 'group'

Python 2.4.3
SVN Version 1.4.0 (r21228)

Any ideas?

-- 
  mit freundlichen Grüßen          email ~ m at tacker.org
  Markus Tacker                      url ~ http://m.tacker.org/
                                     icq ~ 91709561


More information about the Distutils-SIG mailing list