Trying to import DistributedSmoothNode gives an error

When I import DistributedSmoothNode from direct.distributed it gives me this error:

  File "C:\Panda3D-1.8.1\direct\distributed\DistributedSmoothNode.py", line 5, in <module>
    import DistributedNode
  File "C:\Panda3D-1.8.1\direct\distributed\DistributedNode.py", line 4, in <module>
    from direct.showbase.ShowBaseGlobal import *
  File "C:\Panda3D-1.8.1\direct\showbase\ShowBaseGlobal.py", line 11, in <module>
    assert base
NameError: name 'base' is not defined

Any insight?

Have you created a ShowBase instance under the name “base”? ShowBaseGlobal seems to expect this, hence the assert line.

Thanks, that worked. :smiley: For some reason other places would accept base already but this one wouldn’t, but your answer fixed it.

Any reason you’re still using 1.8.1, rather than 1.9.3?