SceneEditor not working in two latest release?

Hello all,

I first trued panda last year around november and the sceneeditor was working.(after changing the editor default path).

But in last releases (last stable and last alpha) i cannot manage to have it running.

I’ve got the following errors in stack:
Traceback (most recent call last):
File “sceneeditor.py”, line 8, in ?
from SideWindow import*
File “E:\Panda\etc\Python22\lib\ihooks.py”, line 397, in import_module
q, tail = self.find_head_package(parent, name)
File “E:\Panda\etc\Python22\lib\ihooks.py”, line 433, in find_head_package
q = self.import_it(head, qname, parent)
File “E:\Panda\etc\Python22\lib\ihooks.py”, line 486, in import_it
m = self.loader.load_module(fqname, stuff)
File “”, line 22, in load_module
File “E:\Panda\etc\Python22\lib\ihooks.py”, line 270, in load_module
m = self.hooks.load_source(name, filename, file)
File “E:\Panda\etc\Python22\lib\ihooks.py”, line 168, in load_source
return imp.load_source(name, filename, file)
File “SideWindow.py”, line 8, in ?
import seSceneGraphExplorer
File “E:\Panda\etc\Python22\lib\ihooks.py”, line 397, in import_module
q, tail = self.find_head_package(parent, name)
File “E:\Panda\etc\Python22\lib\ihooks.py”, line 433, in find_head_package
q = self.import_it(head, qname, parent)
File “E:\Panda\etc\Python22\lib\ihooks.py”, line 486, in import_it
m = self.loader.load_module(fqname, stuff)
File “”, line 22, in load_module
File “E:\Panda\etc\Python22\lib\ihooks.py”, line 270, in load_module
m = self.hooks.load_source(name, filename, file)
File “E:\Panda\etc\Python22\lib\ihooks.py”, line 168, in load_source
return imp.load_source(name, filename, file)
File “seSceneGraphExplorer.py”, line 13, in ?
from seTree import *
File “E:\Panda\etc\Python22\lib\ihooks.py”, line 397, in import_module
q, tail = self.find_head_package(parent, name)
File “E:\Panda\etc\Python22\lib\ihooks.py”, line 433, in find_head_package
q = self.import_it(head, qname, parent)
File “E:\Panda\etc\Python22\lib\ihooks.py”, line 486, in import_it
m = self.loader.load_module(fqname, stuff)
File “”, line 22, in load_module
File “E:\Panda\etc\Python22\lib\ihooks.py”, line 270, in load_module
m = self.hooks.load_source(name, filename, file)
File “E:\Panda\etc\Python22\lib\ihooks.py”, line 168, in load_source
return imp.load_source(name, filename, file)
File “seTree.py”, line 23, in ?
f.resolveFilename(getModelPath())
File “Filename”, line 1346, in resolveFilename
File “Filename”, line 1022, in __overloaded_resolveFilename_ptrFilename_ptrConstDSearchPath
TypeError: Invalid argument 0, expected

I would like to know if it’s me going wrong? because this scene editor was really good loocking to me.

It is blowing up for me too with the same error - so it is not an isolated problem.

Tonight i’ll try to swittch the sceneditor directory with the old one to see if it’s better :slight_smile:

Okay - I got a solution.

The problem is in the file seTree.py in the SceneEditor directory. This file is an adaptation to Tree.py in direct\src\tkwidgets. Some stuff changed in that file so I checked it up.

Here’s what needs to be done

Replace

f = Filename('icons')
f.resolveFilename(getModelPath())
ICONDIR = f.toOsSpecific()

with the single line:


ICONDIR = getModelPath().findFile(Filename('icons')).toOsSpecific()

Remember to setup the path of the sceneEditor correctly in sceneEditor.py (line 102).

I’ll make sure this gets fixed for the next release.

vjawa

Thanks this is working perfectly.