Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 221267 - pycrash-0.4_pre3 does not work in python-2.5
Summary: pycrash-0.4_pre3 does not work in python-2.5
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: python-2.5
  Show dependency tree
 
Reported: 2008-05-10 20:02 UTC by Brian Dolbec
Modified: 2009-05-24 05:48 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 Brian Dolbec (RETIRED) gentoo-dev 2008-05-10 20:02:41 UTC
I have found that the use of pycrash in porthole's code no longer works correctly  if the python version is 2.5.*.  It does not handle "ExpatError", there is no definition.  It complains about it not being a properly formed xml string.

I have seen the same in another users terminal output.  I did not know if it was something messed up on my system.  It does however work on python-2.4 still.  I now have porthole checking and disabling pycrash use for python-2.5 systems.


terminal output snipit:

ADVEMERGE: id initialized to  983005
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/pycrash/pycrash.py", line 113, in __exceptHook
    self.onExceptionRaised(self.__numberOfExceptions)
  File "/usr/lib/python2.5/site-packages/porthole/startup.py", line 82, in onExceptionRaised
    self.saveToFile(save_file)
  File "/usr/lib/python2.5/site-packages/pycrash/pycrash.py", line 281, in saveToFile
    fd.write(self.getCrashDump())
  File "/usr/lib/python2.5/site-packages/pycrash/utils/Html.py", line 493, in getCrashDump
    return self.convertStringDump( super(HTMLPyCrash, self).getCrashDump() )
  File "/usr/lib/python2.5/site-packages/pycrash/utils/Html.py", line 483, in convertStringDump
    dumper.parseString(dumpString)
  File "/usr/lib/python2.5/site-packages/pycrash/utils/Html.py", line 406, in parseString
    except ExpatError: #this is not a well formed XML string
NameError: global name 'ExpatError' is not defined

Original exception was:
...

Reproducible: Always

Steps to Reproduce:
1.use pycrash in a python-2.5 program
2.screw up your code to cause a crash :)
3.pycrash does not handle the exception correctly.




pycrash also seems to be a dead project.  There has been zero response for some other bugs I have found.  There has been no observable development for several years.

It would probably be best to change the python dep to <python-2.5.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-18 15:52:53 UTC
I suggest to remove pycrash from the tree.
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2009-05-18 16:18:26 UTC
I am removing it completely from porthole's code for its next release.
Comment 3 Jesus Rivero (RETIRED) gentoo-dev 2009-05-24 05:48:51 UTC
Hello, 

   dev-python/pycrash is now masked for removal in 30 days. 

   Best regards,