Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103817 - pymsn-t does throw an "TypeError: 'NoneType' object is not callable" if twisted-web is not installed
Summary: pymsn-t does throw an "TypeError: 'NoneType' object is not callable" if twist...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-26 05:16 UTC by Ceesjan Luiten
Modified: 2005-08-28 09:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ceesjan Luiten 2005-08-26 05:16:47 UTC
net-im/pymsn-t will not start if the package dev-python/twisted-web is missing -
Running pymsn-t manually will result in this error:

Traceback (most recent call last):
  File "main.py", line 26, in ?
    xmlconfig.reloadConfig()
  File "/tmp/quinox/PyMSNt-0.9.3/src/xmlconfig.py", line 31, in reloadConfig
    root = utils.parseFile(configFile)
  File "/tmp/quinox/PyMSNt-0.9.3/src/utils.py", line 80, in parseFile
    t.parseFile(filename)
  File "/tmp/quinox/PyMSNt-0.9.3/src/utils.py", line 90, in parseFile
    return self.parseString(file(filename).read())
  File "/tmp/quinox/PyMSNt-0.9.3/src/utils.py", line 97, in parseString
    es = SuxElementStream()
TypeError: 'NoneType' object is not callable

(The path is different from the installed pymsn-t path because this was a test
version)

After emerging twisted-web the program starts without problems. As solution I
propose to add the dev-python/twisted-web to the DEPEND setting in the ebuild

Reproducible: Always
Steps to Reproduce:
1.Make sure you don't have dev-python/twisted-web installed
2.Start PyMSN-t
3.

Actual Results:  
Python throws an "TypeError: 'NoneType' object is not callable" error

Expected Results:  
It should have started
Comment 1 Mike Nerone 2005-08-26 19:14:46 UTC
My PyMSN-t 0.9.3 (using my ebuild from bu #100756) runs fine, and I don't have
twisted-web installed, and never have had.
Comment 2 Mike Nerone 2005-08-26 19:19:04 UTC
Oops...that's "bug #100756". :)
Comment 3 Ceesjan Luiten 2005-08-27 09:58:26 UTC
The reason I tried to install the twisted-web was because I, during debugging my
problem, replaced the SuxElementStream with it's parent, XMLParser. This threw
an error about my system missing the twister-web package installed. After
emerging this package the PyMSN-T worked, so I assume it was because I didn't
have that package installed.

When I googled for this problem I found quite a few people with the same
problem, but no solutions except 'upgrading your libraries'

According to the documentation, SuxElementStream is part of the xish package [0]
and it's parent XMLParser is part of the twisted-web package [1].

These are all my twisted-* packages I have installed:

*  dev-python/twisted
      Latest version available: 2.0.0
      Latest version installed: 2.0.0

*  dev-python/twisted-web
      Latest version available: 0.5.0
      Latest version installed: 0.5.0

*  dev-python/twisted-words
      Latest version available: 0.1.0
      Latest version installed: 0.1.0

*  dev-python/twisted-xish
      Latest version available: 0.1.0
      Latest version installed: 0.1.0

If you need more information please let me know

QuinoX

[0]
http://twistedmatrix.com/documents/current/api/twisted.xish.domish.SuxElementStream.html
[1] http://twistedmatrix.com/documents/current/api/twisted.web.sux.XMLParser.html
Comment 4 Gustavo Felisberto (RETIRED) gentoo-dev 2005-08-28 09:18:09 UTC
Thanks for the info, fixed in 0.9.5