Latest Version: 0.9.6.2
  Dashboard > Pylons FAQ > Home > I got ValueError running setup.py somewhere in get_svn_revision()
  Pylons FAQ Log In | Sign Up   View a printable version of the current page.  
  I got ValueError running setup.py somewhere in get_svn_revision()
Added by Max Ischenko, last edited by Max Ischenko on Jul 16, 2007
Labels: 

Q. I run setup.py and see this error:

$ sudo python setup.py egg_info
Traceback (most recent call last):
  File "setup.py", line 34, in 
    """,
  File "distutils/core.py", line 151, in setup
  File "distutils/dist.py", line 974, in run_commands
  File "distutils/dist.py", line 993, in run_command
  File "/usr/lib/python2.5/cmd.py", line 117, in ensure_finalized
    pass
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/setuptools/command/egg_info.py", line 85, in finalize_options
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/setuptools/command/egg_info.py", line 179, in tags
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c6-py2.5.egg/setuptools/command/egg_info.py", line 224, in get_svn_revision
ValueError: max() arg is an empty sequence

A. This seems to be a known bug in setuptools which pops up if you have any uncommitted directory when you run setup.py. As a workaround, you need to either commit or temporarily revert any directories marked as 'A' by Subversion ('M' are ok).

Site running on a free Atlassian Confluence Open Source Project License granted to Pylons. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.3.3 Build:#645 Feb 13, 2007) - Bug/feature request - Contact Administrators
Top