Package: python-twisted-core
Version: 15.2.1-1
Severity: normal

Dear Maintainer,

The TwistedWeb daemon doesn't work:

$ twistd web --path ~/public_html/ --port 8080 # example from 
https://twistedmatrix.com/trac/wiki/TwistedWeb
Traceback (most recent call last):
  File "/usr/bin/twistd", line 14, in <module>
    run()
  File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 27, 
in run
    app.run(runApp, ServerOptions)
  File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 652, 
in run
    config.parseOptions()
  File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 619, 
in parseOptions
    usage.Options.parseOptions(self, options)
  File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py", line 262, in 
parseOptions
    for (cmd, short, parser, doc) in self.subCommands:
  File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 636, 
in subCommands
    for plug in sorted(plugins, key=attrgetter('tapname')):
  File "/usr/lib/python2.7/dist-packages/twisted/plugins/caldav.py", line 31, 
in getProperty
    return getattr(reflect.namedClass(self.serviceMakerClass), propname)
  File "/usr/lib/python2.7/dist-packages/twisted/python/reflect.py", line 168, 
in namedObject
    module = namedModule('.'.join(classSplit[:-1]))
  File "/usr/lib/python2.7/dist-packages/twisted/python/reflect.py", line 154, 
in namedModule
    topLevel = __import__(name)
  File "/usr/lib/python2.7/dist-packages/calendarserver/tap/caldav.py", line 
71, in <module>
    from txdav.common.datastore.sql_tables import schema
  File "/usr/lib/python2.7/dist-packages/txdav/common/datastore/sql_tables.py", 
line 49, in <module>
    schema = _populateSchema()
  File "/usr/lib/python2.7/dist-packages/txdav/common/datastore/sql_tables.py", 
line 45, in _populateSchema
    return SchemaSyntax(schemaFromPath(pathObj))
  File "/usr/lib/python2.7/dist-packages/twext/enterprise/dal/parseschema.py", 
line 93, in schemaFromPath
    addSQLToSchema(schema, schemaData)
  File "/usr/lib/python2.7/dist-packages/twext/enterprise/dal/parseschema.py", 
line 137, in addSQLToSchema
    t = tableFromCreateStatement(schema, stmt)
  File "/usr/lib/python2.7/dist-packages/twext/enterprise/dal/parseschema.py", 
line 77, in tableFromCreateStatement
    cp.parse()
  File "/usr/lib/python2.7/dist-packages/twext/enterprise/dal/parseschema.py", 
line 258, in parse
    while self.nextColumn():
  File "/usr/lib/python2.7/dist-packages/twext/enterprise/dal/parseschema.py", 
line 270, in nextColumn
    return self.parseColumn(maybeIdent.get_name())
  File "/usr/lib/python2.7/dist-packages/twext/enterprise/dal/parseschema.py", 
line 429, in parseColumn
    theDefault.tokens[-1], cls=Parenthesis
  File "/usr/lib/python2.7/dist-packages/twext/enterprise/dal/parseschema.py", 
line 544, in expectSingle
    (nextval.__class__.__name__, nextval))
twext.enterprise.dal.parseschema.ViolatedExpectation: Expected <class 
'sqlparse.sql.Parenthesis'> got Comment:<Comment '-- imp...' at 0x7f6db2dd5490>
1

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-twisted-core depends on:
ii  python                   2.7.9-1
ii  python-openssl           0.15.1-2
ii  python-service-identity  14.0.0-1
ii  python-twisted-bin       15.2.1-1
ii  python-zope.interface    4.1.2-1+b1

Versions of packages python-twisted-core recommends:
ii  python-pam     0.4.2-13.2
ii  python-serial  2.7-1

Versions of packages python-twisted-core suggests:
ii  python-glade2    2.24.0-4
ii  python-gtk2      2.24.0-4
pn  python-qt3       <none>
pn  python-tk        <none>
pn  python-wxgtk3.0  <none>

-- no debconf information

Reply via email to