from protocols import interface

Help
2005-04-23
2013-03-24
  • Nick Porcino
    Nick Porcino
    2005-04-23

    It's in Interfaces/__init__.py

    Where do I get protocols from?

    I don't seem to have such a module in my python installation

     
    • Nick Porcino
      Nick Porcino
      2005-04-23

      ok, answering my own questions... found the manual page...

      http://cgkit.sourceforge.net/doc2/node4.html

      protocols
      http://peak.telecommunity.com/dist/

       
    • Nick Porcino
      Nick Porcino
      2005-04-23

      In order to run the bunny demo (shownormals), i had to modify cmds.py

      was

      from scene import getScene

      to

      from cgkit.scene import getScene

      for whatever reason, scene.py from PyOpenGL was taking precedence, and rather than monkey with search paths, i thought it would be better to make the import explicit

       
      • Matthias Baas
        Matthias Baas
        2005-04-24

        This is rather odd as cmds.py and scene.py belong to the same package, so when cmds.py imports the scene module it should always refer to the local module inside the package and not some external module stored elsewhere.

        From where did you invoke the shownormals example? How exactly did you invoke the viewer tool?
        What version of PyOpenGL do you have installed? In my version (2.0.1.07) there's only one file called "scene.py" which is located in <site-packages>/OpenGL/Demo/redbook. This path isn't in the module search path, so it should never be picked up by Python. Is there another scene.py in your version?
        Do you have anything "special" in your module searchpath? Do you have PYTHONPATH set? What does sys.path say?

        - Matthias -