[PyKDE] eric3 odd exception

Detlev Offenbach detlev at die-offenbachs.de
Fri Mar 18 17:06:04 GMT 2005


Hi,

there should be cleaner way to handle it, agreed. But does it make sense to 
profile an application that isn't debugged first?

Detlev

Am Freitag, 18. März 2005 11:26 schrieb Jul:
> Hi Detlev,
>
> - open a new sheet in eric
> - write a non-existing module import instruction :
> (e.g. import foo)
> - Choose "Profile the script"
> - After the exception, you should obtain the following error
>
> I'm not sure the DebugClientBase exception should appear, is
> it ?
> ++
> Jul.
>
> ###############################################
> Original exception was:
> Traceback (most recent call last):
>   File
> "/mnt/softs/CDAT/lib/python2.3/site-packages/eric3/Debugger/DebugClient.py"
>, line 55, in ?
>     debugClient.main()
>   File
> "/mnt/softs/CDAT/lib/python2.3/site-packages/eric3/Debugger/DebugClientBase
>.py", line 1600, in main
>     self.interact()
>   File
> "/mnt/softs/CDAT/lib/python2.3/site-packages/eric3/Debugger/DebugClientBase
>.py", line 828, in interact
>     self.eventLoop()
>   File
> "/mnt/softs/CDAT/lib/python2.3/site-packages/eric3/Debugger/DebugClientBase
>.py", line 848, in eventLoop
>     self.readReady(self.readstream.fileno())
>   File
> "/mnt/softs/CDAT/lib/python2.3/site-packages/eric3/Debugger/AsyncIOBase.py"
>, line 68, in readReady
>     self.handleLine(s)
>   File
> "/mnt/softs/CDAT/lib/python2.3/site-packages/eric3/Debugger/DebugClientBase
>.py", line 488, in handleLine
>     self.prof.run('execfile(' + `sys.argv[0]` + ')')
>   File "/mnt/softs/CDAT/lib/python2.3/profile.py", line 403,
> in run
>     return self.runctx(cmd, dict, dict)
>   File "/mnt/softs/CDAT/lib/python2.3/profile.py", line 409,
> in runctx
>     exec cmd in globals, locals
>   File "<string>", line 1, in ?
>   File "/home/jv/test_bidon.py", line 1, in ?
>     import foo
> ImportError: No module named foo
>
> ************************ ADSL JUSQU'A 8 MEGA + 3 MOIS DE TELEPHONE GRATUIT
> ************************ L'ultra haut débit à 15EUR/mois seulement ! Et
> vous téléphonez gratuitement en France vers les postes fixes, hors numéros
> spéciaux pendant 3 mois.
> Pour profiter de cette offre exceptionnelle, cliquez ici :
> http://register.tiscali.fr/adsl/  (voir conditions sur le site)
>
>
> _______________________________________________
> PyKDE mailing list    PyKDE at mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

-- 
Detlev Offenbach
detlev at die-offenbachs.de




More information about the PyQt mailing list