librelist archives

« back to archive

problem with EventCodes

problem with EventCodes

From:
arief nur andono
Date:
2011-02-04 @ 04:05
I tried create application like

http://flask.pocoo.org/mailinglist/archive/2011/1/25/problems-with-modules-urls-and-method-names/#0037c5258b3aa8180bc59d8857ac4797

but when I run it by runserver.py, it cannot run and give me an error

* Running on http://127.0.0.1:5000/
 * Restarting with reloader: inotify events
Traceback (most recent call last):
  File "runserver.py", line 2, in <module>
    app.run(debug=True)
  File

"/usr/local/lib/python2.6/dist-packages/Flask-0.7dev_20110202-py2.6.egg/flask/app.py",
line 435, in run
    return run_simple(host, port, self, **options)
  File

"/usr/local/lib/python2.6/dist-packages/Werkzeug-0.7dev_20110202-py2.6.egg/werkzeug/serving.py",
line 582, in run_simple
    run_with_reloader(inner, extra_files, reloader_interval)
  File

"/usr/local/lib/python2.6/dist-packages/Werkzeug-0.7dev_20110202-py2.6.egg/werkzeug/serving.py",
line 501, in run_with_reloader
    reloader_loop(extra_files, interval)
  File

"/usr/local/lib/python2.6/dist-packages/Werkzeug-0.7dev_20110202-py2.6.egg/werkzeug/serving.py",
line 411, in reloader_loop
    reloader(fnames, interval=interval)
  File

"/usr/local/lib/python2.6/dist-packages/Werkzeug-0.7dev_20110202-py2.6.egg/werkzeug/serving.py",
line 439, in _reloader_inotify
    mask = reduce(lambda m, a: m | getattr(EventsCodes, a), mask, 0)
  File

"/usr/local/lib/python2.6/dist-packages/Werkzeug-0.7dev_20110202-py2.6.egg/werkzeug/serving.py",
line 439, in <lambda>
    mask = reduce(lambda m, a: m | getattr(EventsCodes, a), mask, 0)
AttributeError: type object 'EventsCodes' has no attribute 'IN_DELETE_SELF'

what's happen with my werkzeug so it's cannot run??