Hi Fabio,

Unfortunately, my last message didn't get through because the attachment was
too large.  In any case, I changed the flags to 2 as you specified and then
redirected both stdout and stderr to text files.

I've attached them to this email.  So you'll see (near the end) the
following stack trace:

Traceback (most recent call last):
  File "<string>", line 62, in <module>
  File "<string>", line 49, in import_obj

I'm not sure why it's not able to match the file to my python script
(wikibooks_objimport.py).  Again, it's correctly catching the breakpoint but
not allowing me to easily step through the Python source file.

BTW, you can ignore the "RuntimeError: faces must have at 3 or 4 vertices".
That's just a particular function call within my script failing (towards the
end).

Any help would be greatly appreaciated!


Thanks,

On 9/23/07, Fabio Zadrozny <[EMAIL PROTECTED]> wrote:
>
> It's definitely the same computer.  I'm merely using the default port
> > (5678) and following the instructions posted on:
> >
> > http://www.fabioz.com/pydev/manual_adv_remote_debugger.html
> >
> >
> >
> > I guess the only difference was what I wrote in my last email. I
> > appended the pysrc to the sys.path and then imported pydevd at runtime
> > within my Blender script.  But I've also outputted the sys.path at one
> > point and my Blender script directory is also contained within that path.
> > So I'm not sure what to do next.
> >
>
> That should work... I'll take a look at what may be causing that and maybe
> post some instructions for you to follow to help me debugging what's
> happening (as that should work) -- but I'll only be able to do that tomorrow
> -- in the meantime, I'd like to see your output when you set the
> pydevd_trace and pydevd_trace_breakpoints (put 2 in both) within the
> pydevd_comm.py module.
>
> Cheers,
>
> Fabio
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Pydev-users mailing list
> Pydev-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pydev-users
>
>
Connecting to localhost:5678
Connected.
sending cmd 103 2       <xml><thread name="pydevd.reader" id="-1"/></xml>

sending cmd 103 4       <xml><thread name="pydevd.writer" id="-1"/></xml>


PYDEV DEBUGGER WARNING:
sys.settrace() should not be used when the debugger is being used.
This may cause the debugger to stop working correctly.
If this is needed, please check: 
http://pydev.blogspot.com/2007/06/why-cant-pydev-debugger-work-with.html
to see how to restore the debug tracing back correctly.
Call Location:
  File 
"/home/bijanv/.eclipse/org.eclipse.platform.ide/updates/eclipse/plugins/org.python.pydev.debug_1.3.9/pysrc/pydevd.py",
 line 743, in settrace
    sys.settrace(debugger.trace_dispatch)

found a new thread 3084217740
sending cmd 103 6       <xml><thread name="MainThread" id="3084217740" /></xml>

sending cmd 105 8       <xml><thread id="3084217740" stop_reason="111"><frame 
id="163527684" name="%26lt%3Bmodule%26gt%3B" 
file="/home/bijanv/workspace/testpy/%253Cstring>" 
line="62">"</frame></thread></xml>

received command 501    25      1.0
sending cmd 501 25      1.0

received command 111    27      
/home/bijanv/.blender/scripts/wikibooks_objimport.py    62      None
received command 111    29      /home/bijanv/workspace/testpy/src/testpy.py     
3       None
received command 101    31      
received command 114    33      3084217740      163527684       FRAME
processing internal command <pydevd_comm.InternalGetFrame instance at 0x9c923cc>
sending cmd 114 33      <xml><var name="Blender" type="module" 
value="module%253A %253Cmodule %2527Blender%2527 %2528built-in%2529%26gt%3B" 
isContainer="True" />%0A<var name="PYDEVD_PATH" type="str" value="str%253A 
/home/bijanv/.eclipse/org.eclipse.platform.ide/updates/eclipse/plugins/org.python.pydev.debug_1.3.9/pysrc"
 />%0A<var name="__builtins__" type="dict" value="dict%253A 
%257B%2527IndexError%2527%253A %253Ctype 
%2527exceptions.IndexError%2527%26gt%3B%252C %2527all%2527%253A %253Cbuilt-in 
function all%26gt%3B%252C %2527help%2527%253A Type help%2528%2529 for 
interactive help%252C or help%2528object%2529 for help about object.%252C 
%2527vars%2527%253A %253Cbuilt-in function vars%26gt%3B%252C..." 
isContainer="True" />%0A<var name="__doc__" type="str" value="str%253A 
%250AName%253A %2527Wikibooks import...%2527%250ABlender%253A 
244%250AGroup%253A %2527Import%2527%250ATooltip%253A %2527Wikibooks sample 
import%2527%250A" />%0A<var name="__name__" type="str" value="str%253A 
__main__" />%0A<var name="__script__" type="Constant" value="Constant%253A 
%255BConstant%253A Wikibooks import%255D" isContainer="True" />%0A<var 
name="import_obj" type="function" value="function%253A %253Cfunction import_obj 
at 0xb7f8e4fc%26gt%3B" isContainer="True" />%0A<var name="pydevd" type="module" 
value="module%253A %253Cmodule %2527pydevd%2527 from 
%2527/home/bijanv/.eclipse/org.eclipse.platform.ide/updates/eclipse/plugins/org.python.pydev.debug_1.3.9/pysrc/pydevd.pyc%2527%26gt%3B"
 isContainer="True" />%0A<var name="sys" type="module" value="module%253A 
%253Cmodule %2527sys%2527 %2528built-in%2529%26gt%3B" isContainer="True" 
/>%0A</xml>

received command 107    35      3084217740
sending cmd 106 10      3084217740      107

sending cmd 105 12      <xml><thread id="3084217740" stop_reason="107"><frame 
id="164409988" name="import_obj" 
file="/home/bijanv/workspace/testpy/%253Cstring>" line="27">"</frame><frame 
id="163527684" name="%26lt%3Bmodule%26gt%3B" 
file="/home/bijanv/workspace/testpy/%253Cstring>" 
line="62">"</frame></thread></xml>

received command 114    37      3084217740      164409988       FRAME
NOT processign internal command <pydevd_comm.InternalGetFrame instance at 
0x9c923ac>
processing internal command <pydevd_comm.InternalGetFrame instance at 0x9c923ac>
sending cmd 114 37      <xml><var name="path" type="str" value="str%253A 
/home/bijanv/cessna.obj" />%0A</xml>

received command 109    39      3084217740
sending cmd 106 14      3084217740      109

sending cmd 105 16      <xml><thread id="3084217740" stop_reason="109"><frame 
id="163527684" name="%26lt%3Bmodule%26gt%3B" 
file="/home/bijanv/workspace/testpy/%253Cstring>" 
line="62">"</frame></thread></xml>

received command 114    41      3084217740      163527684       FRAME
processing internal command <pydevd_comm.InternalGetFrame instance at 0x9c923cc>
sending cmd 114 41      <xml><var name="Blender" type="module" 
value="module%253A %253Cmodule %2527Blender%2527 %2528built-in%2529%26gt%3B" 
isContainer="True" />%0A<var name="PYDEVD_PATH" type="str" value="str%253A 
/home/bijanv/.eclipse/org.eclipse.platform.ide/updates/eclipse/plugins/org.python.pydev.debug_1.3.9/pysrc"
 />%0A<var name="__builtins__" type="dict" value="dict%253A 
%257B%2527IndexError%2527%253A %253Ctype 
%2527exceptions.IndexError%2527%26gt%3B%252C %2527all%2527%253A %253Cbuilt-in 
function all%26gt%3B%252C %2527help%2527%253A Type help%2528%2529 for 
interactive help%252C or help%2528object%2529 for help about object.%252C 
%2527vars%2527%253A %253Cbuilt-in function vars%26gt%3B%252C..." 
isContainer="True" />%0A<var name="__doc__" type="str" value="str%253A 
%250AName%253A %2527Wikibooks import...%2527%250ABlender%253A 
244%250AGroup%253A %2527Import%2527%250ATooltip%253A %2527Wikibooks sample 
import%2527%250A" />%0A<var name="__name__" type="str" value="str%253A 
__main__" />%0A<var name="__script__" type="Constant" value="Constant%253A 
%255BConstant%253A Wikibooks import%255D" isContainer="True" />%0A<var 
name="import_obj" type="function" value="function%253A %253Cfunction import_obj 
at 0xb7f8e4fc%26gt%3B" isContainer="True" />%0A<var name="pydevd" type="module" 
value="module%253A %253Cmodule %2527pydevd%2527 from 
%2527/home/bijanv/.eclipse/org.eclipse.platform.ide/updates/eclipse/plugins/org.python.pydev.debug_1.3.9/pysrc/pydevd.pyc%2527%26gt%3B"
 isContainer="True" />%0A<var name="sys" type="module" value="module%253A 
%253Cmodule %2527sys%2527 %2528built-in%2529%26gt%3B" isContainer="True" 
/>%0A</xml>

received command 109    43      3084217740
Traceback (most recent call last):
  File 
"/home/bijanv/.eclipse/org.eclipse.platform.ide/updates/eclipse/plugins/org.python.pydev.debug_1.3.9/pysrc/pydevd_frame.py",
 line 117, in trace_dispatch
    self.doWaitSuspend(t, frame, event, arg)
  File 
"/home/bijanv/.eclipse/org.eclipse.platform.ide/updates/eclipse/plugins/org.python.pydev.debug_1.3.9/pysrc/pydevd_frame.py",
 line 26, in doWaitSuspend
    self.mainDebugger.doWaitSuspend(*args, **kwargs)
  File 
"/home/bijanv/.eclipse/org.eclipse.platform.ide/updates/eclipse/plugins/org.python.pydev.debug_1.3.9/pysrc/pydevd.py",
 line 516, in doWaitSuspend
    frame.f_back.f_trace = GetGlobalDebugger().trace_dispatch
AttributeError: 'NoneType' object has no attribute 'f_trace'
Traceback (most recent call last):
  File "<string>", line 62, in <module>
  File "<string>", line 49, in import_obj
RuntimeError: faces must have at 3 or 4 vertices
Compiled with Python version 2.5.
Checking for installed Python... got it!
Adding pydevd to system path
received >>501  25      1.0
<<
received >>111  27      /home/bijanv/.blender/scripts/wikibooks_objimport.py    
62      None
<<
Added breakpoint:/home/bijanv/.blender/scripts/wikibooks_objimport.py - line:62 
- func_name:
received >>111  29      /home/bijanv/workspace/testpy/src/testpy.py     3       
None
<<
Added breakpoint:/home/bijanv/workspace/testpy/src/testpy.py - line:3 - 
func_name:
received >>101  31      
<<
received >>114  33      3084217740      163527684       FRAME
<<
received >>107  35      3084217740
<<
received >>114  37      3084217740      164409988       FRAME
<<
received >>109  39      3084217740
<<
received >>114  41      3084217740      163527684       FRAME
<<
received >>109  43      3084217740
<<
Saved session recovery to /tmp/quit.blend

Blender quit
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to