Re: Dabo in 30 seconds?



Terry Reedy wrote:
"Ed Leafe" <ed@xxxxxxxxx> wrote in message news:200508010830.27322.ed@xxxxxxxxxxxx

I'm serious here: I want to know what people consider acceptable for a
software package that relies on other packages.

To me, acceptability depends on the audience. Do you want to limit Dabo to professional developers comfortable with sometimes cryptic traceback messages or do you want to include people using Python as part of other activities?

My concern with putting another layer on top of Python's excellent traceback mechanism is that we could screw up and hide important exceptions, or otherwise make it harder for the seasoned Pythonista to get to the source of the issue. Nothing beats those tracebacks, ugly though they may seem to a newbie... perhaps we need both methods, and to default to the "nice" error handler.


Your idea of checking for common missing pieces or misconfigurations on startup is a great idea though. Also, we do already provide for information and error logs, which get directed to stdout and stderr by default. Perhaps we just need to give slightly higher-level control of them, so that an individual developer can "set it and forget it" for each individual app. There are other settings as well, such as event logging, that are useful during testing - we should consolidate all these options into a setup screen of some sort. All in good time!

--
Paul McNett
http://paulmcnett.com

.



Relevant Pages

  • problems with nltk
    ... Traceback: ... import _tkinter # If this fails your Python may not be configured for Tk ... ImportError: libtk8.3.so: cannot open shared object file: No such file ... Then I typed import _tkinter but it didn't help, ...
    (comp.lang.python)
  • Tkinter callback caused abnormal program termination
    ... Running my programme in Python 2.3.4 I received the following msg in the ... Exception in Tkinter callback ... There was no other traceback information. ... I had trouble before with Python versions 2.2.1 and 2.2.3 where commenting ...
    (comp.lang.python)
  • Re: Hey, get this! [was: import from database]
    ... I agree that this is 2.3-like behavior, but Python cannot lie ... ... [GCC 3.3.3 (cygwin special)] ... > Traceback: ... print "Trying aifc" ...
    (comp.lang.python)
  • Re: Help needed in OOP-Python
    ... $ python test.py ... Traceback: ... that's easy to fix. ... in your posted code, but I still haven't seen the problem you reported: ...
    (comp.lang.python)
  • Re: xml.doms weirdness?
    ... I run python as: ... After those imports is the standard Python traceback (because of the ... # installing zipimport hook ... import zipimport # builtin ...
    (comp.lang.python)