pymsnt 0.11.3-5 fails to start due to broken python-twisted-words 10.2.0-1 (AttributeError: 'module' object has no attribute '_parse')

Bug #775213 reported by Lars T. Mikkelsen
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
twisted (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After upgrading to natty, pymsnt 0.11.3-5 now crashes at startup with the following traceback:

Traceback (most recent call last):
  File "/usr/share/pymsnt/PyMSNt.py", line 14, in <module>
    main.main()
  File "/usr/share/pymsnt/src/main.py", line 390, in main
    app = App()
  File "/usr/share/pymsnt/src/main.py", line 343, in __init__
    self.c = component.buildServiceManager(jid, config.secret, "tcp:%s:%s" % (config.mainServer, config.port))
  File "/usr/lib/python2.7/dist-packages/twisted/words/protocols/jabber/component.py", line 323, in buildServiceManager
    client_svc = jstrports.client(strport, svc.getFactory())
  File "/usr/lib/python2.7/dist-packages/twisted/words/protocols/jabber/jstrports.py", line 30, in client
    name, args, kw = parse(description, factory)
  File "/usr/lib/python2.7/dist-packages/twisted/words/protocols/jabber/jstrports.py", line 25, in parse
    args, kw = strports._parse(description)
  File "/usr/lib/python2.7/dist-packages/twisted/python/deprecate.py", line 281, in __getattribute__
    value = getattr(_module, name)
AttributeError: 'module' object has no attribute '_parse'

This is a regression in Twisted 10.2.0 as described in the following ticket:
http://twistedmatrix.com/trac/ticket/4771

The issue was fixed for Twisted 11.0.0:
http://twistedmatrix.com/trac/changeset/30430

Applying the change locally against 10.2.0 resolved the issue for me.

Revision history for this message
Diane Trout (diane-trout) wrote :

This also affects pyaimt 0.8.01-2

the twisted-words package was built with quilt so it was pretty easy to put the patch to fix this problem into the ubuntu package. The problem isn't likely to impact debian as they skipped the 10.2 version of twisted-words and went to 11.0 which has the fix applied.

I uploaded a modified version of the package to my own ppa https://launchpad.net/~diane-trout/+archive/nmu

The patch against the ubuntu package appears to be available at:
https://launchpadlibrarian.net/73753572/twisted-words_10.2.0-1_10.2.0-1ppa1.diff.gz

Though I tested building my own binary version of the debian package, and didn't test the source archive I uploaded. (Though both were built from the same extracted debian source package.

Revision history for this message
abma (abma) wrote :

pyicqt is also affected:

python /usr/share/pyicqt/PyICQt.py --config=/etc/pyicqt.conf.xml
Traceback (most recent call last):
  File "/usr/share/pyicqt/PyICQt.py", line 14, in <module>
    main.main()
  File "/usr/share/pyicqt/src/main.py", line 465, in main
    app = App()
  File "/usr/share/pyicqt/src/main.py", line 434, in __init__
    self.c = component.buildServiceManager(jid, config.secret, "tcp:%s:%s" % (config.mainServer, config.port))
  File "/usr/lib/python2.7/dist-packages/twisted/words/protocols/jabber/component.py", line 323, in buildServiceManager
    client_svc = jstrports.client(strport, svc.getFactory())
  File "/usr/lib/python2.7/dist-packages/twisted/words/protocols/jabber/jstrports.py", line 30, in client
    name, args, kw = parse(description, factory)
  File "/usr/lib/python2.7/dist-packages/twisted/words/protocols/jabber/jstrports.py", line 25, in parse
    args, kw = strports._parse(description)
  File "/usr/lib/python2.7/dist-packages/twisted/python/deprecate.py", line 281, in __getattribute__
    value = getattr(_module, name)
AttributeError: 'module' object has no attribute '_parse'

Revision history for this message
abma (abma) wrote :

@Diane Trout:

thanks, with you're updated package, it works!

Revision history for this message
Diane Trout (diane-trout) wrote :

@abma

You're welcome, I'm glad the updated package helped.

Revision history for this message
Glyph Lefkowitz (glyph) wrote :

It would be very helpful if some enterprising individual would help us (Twisted) do a 10.2.1 maintenance release with this patch. See http://twistedmatrix.com/trac/ticket/4798 and http://twistedmatrix.com/trac/ticket/4799

Revision history for this message
Diane Trout (diane-trout) wrote :

What help do you need?

I looked through your svn repository at http://twistedmatrix.com/trac/browser/trunk and didn't see a release-0_10_2_1 tag yet.

Revision history for this message
Diane Trout (diane-trout) wrote :

Ok I have a branch in launchpad to try and put together the patches listed above. The twisted svn server was down for much of today so I didn't manage to make much progress.

The branch is at:
https://code.launchpad.net/~diane-trout/twisted/prepare-10.2.1

And I've only merged one of the patches in and verified that the number of successful test cases incremented by 2.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in twisted (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.