[New-bugs-announce] [issue10409] mkcfg crashes with ValueError

Stein Magnus Jodal report at bugs.python.org
Sat Nov 13 16:31:11 CET 2010

New submission from Stein Magnus Jodal <stein.magnus at jodal.no>:

I'm using Distutils2 1.0a3 with Python 2.6.6.

To reproduce:

1. Run ``python -m distutils2.mkcfg``
2. When you get to the Trove classifier step enter e.g. "Apache 2" as license
3. When asked to select a matching license, enter something else than a number, e.g. "Apache"
4. mkcfg crashes with a ValueError

Traceback (most recent call last):
  File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "/usr/local/lib/python2.6/dist-packages/distutils2/mkcfg.py", line 415, in <module>
  File "/usr/local/lib/python2.6/dist-packages/distutils2/mkcfg.py", line 409, in main
  File "/usr/local/lib/python2.6/dist-packages/distutils2/mkcfg.py", line 242, in query_user
  File "/usr/local/lib/python2.6/dist-packages/distutils2/mkcfg.py", line 254, in set_classifier
  File "/usr/local/lib/python2.6/dist-packages/distutils2/mkcfg.py", line 319, in set_license
    foundIndex = foundList[int(troveLicense) - 1]
ValueError: invalid literal for int() with base 10: 'Apache'

assignee: tarek
components: Distutils2
messages: 121142
nosy: eric.araujo, jodal, tarek
priority: normal
severity: normal
status: open
title: mkcfg crashes with ValueError
versions: 3rd party

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list