[PyKDE] [eric3] redirect stdin/out/err
Detlev Offenbach
detlev at die-offenbachs.de
Tue Jul 12 18:46:42 BST 2005
Am Montag, 11. Juli 2005 13:26 schrieb Guest007:
> Hello all,
>
> Sorry for my stupid question, but I can't find error report of my console
> programm. In eric3 I can see Log-Viewer, but it's tabs always empty.
>
> stdout redirected in Shell, when I'm checked a checkbutton in
> Debugger->Python and stay invisible, when it's not checked. In this case
> stdout can be visible in console, where I start eric3.
>
> stderr not visible, but I allways receive a window with, I guess, last
> string from stderr. But this information is not complete for me in many
> cases. And another big problem -- opening new tab with file, that generate
> error. But in many times that file -- from standard or additional modules,
> libraries, frameworks. For example:
> =======================
> #python test.py
> Traceback (most recent call last):
> File "test.py", line 390, in ?
> fill()
> File "test.py", line 383, in fill
> type=d_t3)
> File "/home/guest007/lib/python/sqlobject/main.py", line 1067, in
> __init__ self._create(id, **kw)
> File "/home/guest007/lib/python/sqlobject/main.py", line 1100, in _create
> self._SO_finishCreate(id)
> File "/home/guest007/lib/python/sqlobject/main.py", line 1124, in
> _SO_finishCreate
> id, names, values)
> File "/home/guest007/lib/python/sqlobject/dbconnection.py", line 355, in
> queryInsertID
> return self._runWithConnection(self._queryInsertID, soInstance, id,
> names, values)
> File "/home/guest007/lib/python/sqlobject/dbconnection.py", line 217, in
> _runWithConnection
> val = meth(conn, *args)
> File "/home/guest007/lib/python/sqlobject/sqlite/sqliteconnection.py",
> line 84, in _queryInsertID
> q = self._insertSQL(table, names, values)
> File "/home/guest007/lib/python/sqlobject/sqlite/sqliteconnection.py",
> line 102, in _insertSQL
> return DBAPI._insertSQL(self, table, names, values)
> File "/home/guest007/lib/python/sqlobject/dbconnection.py", line 347, in
> _insertSQL
> return ("INSERT INTO %s (%s) VALUES (%s)" %
> File "/home/guest007/lib/python/sqlobject/dbconnection.py", line 639, in
> sqlrepr
> return sqlrepr(v, self.dbName)
> File "/home/guest007/lib/python/sqlobject/converters.py", line 202, in
> sqlrepr
> return converter(obj, db)
> File "/home/guest007/lib/python/sqlobject/converters.py", line 180, in
> DateTimeConverter
> return value.strftime("'%Y-%m-%d %H:%M:%S'")
> ValueError: year=1880 is before 1900; the datetime strftime() methods
> require year >= 1900
> ====================
> I want to see last string as error description and 383'th line of test.py
> in editor tab. But eric3 open converters.py in new tab and I must close it,
> and loose a time for searching my test.py (it's always opened, but can be
> not first or last in tabs order).
>
>
> Sorry for my English. I hope, it not make a problem...
If your program throws an exception, that should be shown by eric3. If it
isn't please try to create a test script, that shows the observed behaviour
and send it to me.
Detlev
--
Detlev Offenbach
detlev at die-offenbachs.de
More information about the PyQt
mailing list