Problems with Ipo module in GameEngine

I have the following code:


import Blender
from Blender import Ipo

work_ipo = Ipo.Get ('KeyIpo')

In the GameEngine in Blender, there is no problem. But in the “BlenderPlayer.exe” or in the “BlenderDynPlayer.exe” doesn’t work, this is the error (with the opcion “-c” in the player):


PYTHON SCRIPT ERROR:
Traceback (most recent call last):
File "contorl.py", line 4, in ?
AttributeError: Get

It seems that the problem is that “BlenderPublisher.exe” includes the Ipo module and “BlenderPlayer.exe” and “BlenderDynPlayer.exe” NO. Can anyone help me?[/quote][/i]

Use get not Get. Next time when u get an attribute error do

print dir(IPO)

that will give you all that objects attributes.

I already tried it, and it’s the same.
The first error was


ImportError: No module named Blender

Including the file Blender.py of the Blender 2.25 source the problem is
get/Get attribute.

I already tried copy the modules/Blender directory, but it failed.

oh, you have noticed that the blender standalone runtime is sandboxed
the same is true of the plugin

THE BLENDER MODULE IS NOT AVALIABLE AT ALL
[in standalone runtimes or the web plugin]

this was done in part for security reasons since Blender.BGL can bring a system down or get it to run whatever the python coder wants. I don’t know about other blender sub-modules (if they can be called that) but I think I have made my point already

sub modules can be called. for other modules (external python ones) you can put them directly into the .blend, if its a class then make an instance of if and assign it to the Fameblender module