Page 1 of 1
stk_panel.py problem

Posted:
14 Jan 2013, 20:20
by jymis
In addons user preferences Blender, I can't enable the STK panel.
I read zootal's post but his solutions isn't mine apparently.
I've tried one or two old versions of the plugin but nothing works.
I'm under Blender 2.65.8, Ubuntu 12.04.1 LTS and Linux version 3.2.0-34-generic.
Another Blender's version to advise me ?
Re: stk_panel.py problem

Posted:
14 Jan 2013, 21:29
by ctdabomb
I'd try different versions of blender, and the scripts. you may have to mix and match to find one that works.
Re: stk_panel.py problem

Posted:
15 Jan 2013, 00:04
by Funto
There is a folder to copy with the scripts (I think it's "stk_data"), did you copy it, following the instructions on the wiki?
Re: stk_panel.py problem

Posted:
15 Jan 2013, 00:32
by Auria
Please run blender from terminal and post any error message you get when trying to enable the panel
Re: stk_panel.py problem

Posted:
15 Jan 2013, 18:37
by jymis
It seems to be a litigation with module ops.py.
Traceback (most recent call last):
File "/usr/share/blender/2.65/scripts/modules/addon_utils.py", line 269, in enable
mod = __import__(module_name)
File "/usr/share/blender/2.65/scripts/addons/stk_panel.py", line 890, in <module>
createPreviewTexture()
File "/usr/share/blender/2.65/scripts/addons/stk_panel.py", line 885, in createPreviewTexture
bpy.ops.texture.new()
File "/usr/share/blender/2.65/scripts/modules/bpy/ops.py", line 182, in __call__
BPyOpsSubModOp._scene_update(context)
File "/usr/share/blender/2.65/scripts/modules/bpy/ops.py", line 148, in _scene_update
scene = context.scene
AttributeError: '_RestrictContext' object has no attribute 'scene'
Re: stk_panel.py problem

Posted:
17 Jan 2013, 00:43
by Auria
I am quite puzzled by this issue, I have never seen it before.
Can you try updating to the latest version of the scripts, I have just made a change to try to work around the issue
Re: stk_panel.py problem

Posted:
17 Jan 2013, 18:45
by jymis
As often hapens when we code, a correction leads up to another…
Traceback (most recent call last):
File "/usr/share/blender/2.65/scripts/addons/stk_panel.py", line 886, in createPreviewTexture
bpy.ops.texture.new()
File "/usr/share/blender/2.65/scripts/modules/bpy/ops.py", line 182, in __call__
BPyOpsSubModOp._scene_update(context)
File "/usr/share/blender/2.65/scripts/modules/bpy/ops.py", line 148, in _scene_update
scene = context.scene
AttributeError: '_RestrictContext' object has no attribute 'scene'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/blender/2.65/scripts/modules/addon_utils.py", line 269, in enable
mod = __import__(module_name)
File "/usr/share/blender/2.65/scripts/addons/stk_panel.py", line 894, in <module>
createPreviewTexture()
File "/usr/share/blender/2.65/scripts/addons/stk_panel.py", line 892, in createPreviewTexture
traceback.print_exc(file=sys.stdout)
NameError: global name 'traceback' is not defined
edit :
'looked better, I would say that a second appeared instead of losing the first. :/
Re: stk_panel.py problem

Posted:
18 Jan 2013, 02:14
by Auria
sorry, that was my mistake. Can you try again, I tested it better this time
Re: stk_panel.py problem

Posted:
18 Jan 2013, 11:36
by jymis
And… that works !
Thank you very much.
Re: stk_panel.py problem

Posted:
18 Jan 2013, 23:20
by Auria
Glad it works !
