PylonsHQ.

Layout: Fixed-width

I got ValueError running setup.py somewhere in get_svn_revision()

Skip to end of metadata
Go to start of metadata

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).

Labels

setuptools setuptools Delete
distrib-faq distrib-faq Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Powered by Pylons - Contact Administrators