[Eric] traceback in Eric5

Janwillem van Dijk jwevandijk at xs4all.nl
Tue Apr 5 08:57:03 BST 2011


When I manage to get an error in my python3 script and run it from 
within Eric5 the traceback is not what I expect and makes the 
debug-viewer useless. A simple example:
#!/usr/bin/env python3
import sys, traceback
print(sys.version)
try:
     print(10/0)
except:
     traceback.print_exc()

This returns in the debug-view:
3.1.2 (release31-maint, Sep 17 2010, 20:34:23)
[GCC 4.4.5]
Traceback (most recent call last):
   File "<string>", line 8, in <module>
ZeroDivisionError: int division or modulo by zero

There appears a new empty tab in the IDE named <string>.

Running the script in a terminal gives the expected output:
3.1.2 (release31-maint, Sep 17 2010, 20:34:23)
[GCC 4.4.5]
Traceback (most recent call last):
   File "./sys_version.py", line 8, in <module>
     print(10/0)
ZeroDivisionError: int division or modulo by zero

Where should I look for any mistakes?
Thanks, Janwillem



More information about the Eric mailing list