Modify ↓
      
        Opened 18 years ago
Closed 18 years ago
#1599 closed defect (worksforme)
Syntax error with setup.py for AccountManagerPlugin
| Reported by: | Owned by: | Matt Good | |
|---|---|---|---|
| Priority: | normal | Component: | AccountManagerPlugin | 
| Severity: | blocker | Keywords: | |
| Cc: | Trac Release: | 0.10 | 
Description
When I try to build an egg for the 0.10 Account Manager Plugin (python setup.py bdist_egg), I get "AttributeError: 'NoneType' object has no attribute 'group'". I'm not a python programmer and I have no idea what the error message means.
Here's what I get:
% python --version
Python 2.5
% lsb_release -sir
SUSE LINUX 10.2
% svn co http://trac-hacks.org/svn/accountmanagerplugin/0.10 accmgr
% cd accmgr
% python setup.py bdist_egg
running bdist_egg
Traceback (most recent call last):
  File "setup.py", line 39, in <module>
    test_suite = 'acct_mgr.tests.suite',
  File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.5/distutils/dist.py", line 993, in run_command
    cmd_obj.ensure_finalized()
  File "/usr/lib/python2.5/distutils/cmd.py", line 117, in ensure_finalized
    self.finalize_options()
  File "/usr/lib/python2.5/site-packages/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.5/distutils/cmd.py", line 319, in get_finalized_command
    cmd_obj.ensure_finalized()
  File "/usr/lib/python2.5/distutils/cmd.py", line 117, in ensure_finalized
    self.finalize_options()
  File "/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line 85, in finalize_options
    self.vtags = self.tags()
  File "/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line 179, in tags
    ):  version += '-r%s' % self.get_svn_revision()
  File "/usr/lib/python2.5/site-packages/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'
    Attachments (0)
Note: See
        TracTickets for help on using
        tickets.
    


Upgrade setuptools to the latest version.