.place() function error

Hi. I’m a complete noob at Panda3D and python, I’ve just been messing around with some models, and while trying to use the .place() function, I got some errors. I’ve used it before, and I remember getting this error before a long time ago, but I forgot how I fixed it. :unamused:

Can any one help?

Here is the error:

DirectStart: Starting the game.
Known pipe types:
(all display modules loaded.)
Traceback (most recent call last):
  File "bobville1.py", line 28, in <module>
  File "C:\Panda3D-1.7.1\pandac\libpandaModules.py", line 1210, in place
    base.startDirect(fWantTk = 1)
  File "C:\Panda3D-1.7.1\direct\showbase\ShowBase.py", line 2597, in startDirect
    from direct.directtools import DirectSession
  File "C:\Panda3D-1.7.1\direct\directtools\DirectSession.py", line 1314, in <module>
    __builtins__['direct'] = base.direct = DirectSession()
  File "C:\Panda3D-1.7.1\direct\directtools\DirectSession.py", line 298, in __init__
    self.panel = DirectSessionPanel.DirectSessionPanel(parent = tkroot)
  File "C:\Panda3D-1.7.1\direct\tkpanels\DirectSessionPanel.py", line 42, in __init__
    AppShell.__init__(self, parent)
  File "C:\Panda3D-1.7.1\direct\tkwidgets\AppShell.py", line 97, in __init__
  File "C:\Panda3D-1.7.1\direct\tkwidgets\AppShell.py", line 119, in __createInterface
  File "C:\Panda3D-1.7.1\direct\tkpanels\DirectSessionPanel.py", line 180, in createInterface
    scrolledCanvas_hull_height = 300)
  File "C:\Panda3D-1.7.1\direct\tkwidgets\SceneGraphExplorer.py", line 73, in __init__
  File "C:\Panda3D-1.7.1\direct\tkwidgets\Tree.py", line 168, in expand
  File "C:\Panda3D-1.7.1\direct\tkwidgets\Tree.py", line 260, in update
    self.draw(7, 2, fUseCachedChildren)
  File "C:\Panda3D-1.7.1\direct\tkwidgets\Tree.py", line 268, in draw
  File "C:\Panda3D-1.7.1\direct\tkwidgets\Tree.py", line 353, in drawicon
    image = self.geticonimage(imagename)
  File "C:\Panda3D-1.7.1\direct\tkwidgets\Tree.py", line 84, in geticonimage
    image = PhotoImage(master=self.canvas, file=fullname)
  File "C:\Panda3D-1.7.1\python\lib\lib-tk\Tkinter.py", line 3285, in __init__
    Image.__init__(self, 'photo', name, cnf, master, **kw)
  File "C:\Panda3D-1.7.1\python\lib\lib-tk\Tkinter.py", line 3241, in __init__
    self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't open "C:\Panda3D-1.7.1\PyPE-2.9\icons\sphere2.gif": no such file or directory

Well, it looks like there’s a missing file, sphere2.gif :unamused:

Check your Panda installation for missing files. It also looks like your using Panda 1.7.1. Try 1.7.0.

Yes, I’ve seen that. I don’t think that’s Panda’s problem, since it’s saying it’s in the PyPE folder, which didn’t come with a sphere2.gif… But I’ll try using 1.7.0.