Menu

#63 running/debugging fails from within Blender

open-later
nobody
None
4
2003-05-15
2003-05-04
Anonymous
No

Due to the poor support of Python editing,
I was happy to find out that
Idle was the (only) editor which could be run from
within Blender it self. Unfortunately debugging
wouldn't work (AttributeError:__nonzero__ for
Delegator<ColorDelegator.recolorize()<Tkinter.callit()<...).
Still Idle for Blender remains very usefull, as I can
run and import programs without any problem. The
text/python editor for Blender is very primitive (no
indentation,calltips or auto completion) so I am really
happy to use the Idle.

I downloaded IdleFork as I expected that debugging
would have been improved and maybe possible for
Blender. Unfortunately Blender crashes with Idlefork.
Setting use_subprocess to zero helped. I now can open
the editor from within Blender. But even running or
importing doesn't work anymore also.

As Idle is 100% Python it would be nice if it can be
run with a function like main(), but not focused on
sys.argv
eg launchIdle(files=[],edit=1,shell=1,debug=1,...)
This would allow Idle to be launched from within any
environment also Poser and Truespace.

To conclude my request is:
1 a function like main to be called from Python, not
from the command prompt

2 To make Idle edit, run and debug in Blender

Any reaction would be highly appreciated,
Thanks a lot,
Stani
s_t_a_n_i@yahoo.com

PS
I'm using python2.22 which is also the supported Python
version of Blender.

Discussion

  • Nobody/Anonymous

    Example python file for Blender

     
  • Kurt B. Kaiser

    Kurt B. Kaiser - 2003-05-15
    • priority: 5 --> 4
    • status: open --> open-later
     
  • Kurt B. Kaiser

    Kurt B. Kaiser - 2003-05-15

    Logged In: YES
    user_id=149084

    As a Blender Foundation member, I suppose I should
    pay some attention to this. I did fix the problems with
    running IDLE without the subprocess. Please try again
    using the current CVS or wait for the beta release.

    Further work on this will have to wait, I'm afraid.

    The debugger has not changed much; I'd be interested
    in hearing your priorities for improvements. If you have
    some, please enter as Tracker RFE items.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.