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
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.
Oops...that's "bug #100756". :)
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
Thanks for the info, fixed in 0.9.5