

Flag: Tornado!
Hurricane!
|
 |
 Error: Authentication required to access requested resource.
Topic created on: by  .
Another test that showed strange behavior importing gtk module is this:
- open the immunity debugger python shell
- import gtk
- close the shell window
If you just try to open the shell, the whole debugger hangs...and you have to kill the process.
gtk module must be doing something strange...
|
Hello there, it occurs to me, that a very possible fix to this is, keep up with the hockey, bro.
> sagar: Hi everybody,
> I\'m having a strange problem with immunity debugger v1.73
>
> I have a simple script that I run:
>
> import immlib
> import gtk
>
> def main():
> imm = immlib.Debugger()
> imm.Log(\"Testing import gtk...\")
> imm.Log(\"GTK = %s\" % str(gtk))
>
> if __name__==\"__main__\":
> pass
>
>
> This works fine the first time I run it (ALT + F3)
> I doesn\'t show anything abnormal.
>
> But if I run the script a second time, I get this error message:
>
> Traceback (most recent call last):
> File \"C:\\Program Files\\Immunity Inc\\Immunity Debugger\\PyScript\\TestGTK.py\", line 3, in <module>
> import gtk
> File \"./Libs\\immutils.py\", line 89, in __MOSDEFimport__
> return sys.modules[\'__builtin__\'].__import__orig(*args)
> File \"D:\\Python25\\Lib\\site-packages\\gtk-2.0\\gtk\\__init__.py\", line 50, in <module>
> import gdk
> File \"./Libs\\immutils.py\", line 89, in __MOSDEFimport__
> return sys.modules[\'__builtin__\'].__import__orig(*args)
> ImportError: No module named gdk
>
>
> I have tried deactivating the MOSDEFimport hook inside immutils.py but the same error happens.
> The strange thing is that it seems to happen only with gtk module. I\'m able to import other external modules without problems.
> If I try to run the script a third time, then the debugger fails and closes.
>
> The weird thing is that the first time works ok... I\'m able to create windows and use gtk module, but only once.
>
> I\'ve tried to modify the immutils.py to import gtk module and add a function that simply returns that module object. Then I changed my simple script to import immutils and use that function instead of importing gtk, and the first time it works, but the second time the gtk module it is not defined...
>
> Any ideas?
>
> Regards,
>
> Sagar
|
Note: Registration is required to post to the forums.
|
|
 |
|
There are 28,224 total registered users.
|
|