stk_panel.py problem

stk_panel.py problem

Postby jymis » 14 Jan 2013, 20:20

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 ?
User avatar
jymis
 
Posts: 137
Joined: 28 May 2012, 12:00

Re: stk_panel.py problem

Postby ctdabomb » 14 Jan 2013, 21:29

I'd try different versions of blender, and the scripts. you may have to mix and match to find one that works.
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: stk_panel.py problem

Postby Funto » 15 Jan 2013, 00:04

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?
Funto
 
Posts: 459
Joined: 09 Dec 2009, 13:47
Location: Bordeaux, France

Re: stk_panel.py problem

Postby Auria » 15 Jan 2013, 00:32

Please run blender from terminal and post any error message you get when trying to enable the panel
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: stk_panel.py problem

Postby jymis » 15 Jan 2013, 18:37

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'
User avatar
jymis
 
Posts: 137
Joined: 28 May 2012, 12:00

Re: stk_panel.py problem

Postby Auria » 17 Jan 2013, 00:43

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
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: stk_panel.py problem

Postby jymis » 17 Jan 2013, 18:45

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. :/
User avatar
jymis
 
Posts: 137
Joined: 28 May 2012, 12:00

Re: stk_panel.py problem

Postby Auria » 18 Jan 2013, 02:14

sorry, that was my mistake. Can you try again, I tested it better this time
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: stk_panel.py problem

Postby jymis » 18 Jan 2013, 11:36

And… that works !
Thank you very much.
User avatar
jymis
 
Posts: 137
Joined: 28 May 2012, 12:00

Re: stk_panel.py problem

Postby Auria » 18 Jan 2013, 23:20

Glad it works ! :)
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Who is online

Users browsing this forum: No registered users and 1 guest