Ticket #1516 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

"nagare-admin create" fails with Stackless < 2.7

Reported by: bertrand.croq Owned by: apoirier
Priority: major Component: uncategorized
Version: 0.3.0 Keywords:


When using Stackless 2.6 or 2.5, the "nagare-admin create" command fails with:

Traceback (most recent call last):
  File "bin/nagare-admin", line 8, in <module>
    load_entry_point('nagare==0.4.0', 'console_scripts', 'nagare-admin')()
  File "/Users/gotcha/tmp/nagare/lib/python2.6/site-packages/nagare-0.4.0-py2.6.egg/nagare/admin/main.py", line 73, in main
    command.run(parser, options, args) # Run the command
  File "/Users/gotcha/tmp/nagare/lib/python2.6/site-packages/nagare-0.4.0-py2.6.egg/nagare/admin/create.py", line 247, in run
    create_or_update(os.path.join(root, 'setup.py'), create_setup_py, upgrade_setup_py, params)
  File "/Users/gotcha/tmp/nagare/lib/python2.6/site-packages/nagare-0.4.0-py2.6.egg/nagare/admin/create.py", line 38, in create_or_update
    return (update if os.path.exists(path) else create)(path, *args, **kw)
  File "/Users/gotcha/tmp/nagare/lib/python2.6/site-packages/nagare-0.4.0-py2.6.egg/nagare/admin/create.py", line 68, in create_setup_py
    ''' % params)
File "/Users/gotcha/tmp/nagare/lib/python2.6/site-packages/nagare-0.4.0-py2.6.egg/nagare/admin/create.py", line 82, in upgrade_setup_py
print >>f, re.sub(r'^(\s*)(entry_points)', r"\1message_extractors = { '%(id)s' : [('**.py', 'python', None)] },\n\1\2" % params, setup_py, flags=re.M)
TypeError: sub() got an unexpected keyword argument 'flags'

The flags keyword in re.sub() is new in Python 2.7 but http://www.nagare.org/trac/wiki/QuickStart says that nagare works with Stackless version 2.5.2 or above.

Change History

comment:1 Changed 6 years ago by Alain Poirier <alain.poirier@…>

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.