Pygame missing

Hi,

I am having troubles opening a python script that I recovered from someone. Tried it in processing as well and in grasshopper (always through python). I am getting the missing pygame module error, whatever I wouldn’t do. Is there any way to solve this issue?


I know processing may not be pertinent for this forum, but I am just showing the error I’m getting when I try launching the simulation

Did you try to install that ?
http://www.pygame.org/download.shtml

Although I followed the instructed steps for the isntallation, it didnt seem to get installed :confused:

Rhino uses Iron-Python which is not the same as pure python. My guess its not possible or at least hard to include, since you need the right Pygame build… In general you are mixing a 2d game engine with Rhino, which is kind of weird.

It could be any number of things (see this and this). Likely, that you didn’t install/reference it properly, and/or, pygame is not compatiable with IronPython (edit: what Tom said).

in addition, I saw eventhandling in that script. Being inside a script component running events causes a bunch of weird behaviour, because everytime you rerun the script and you changed only a whitespace, you basically create a complete new scriptinstance, which creates a bunch of weird bugs, very hard to debug (esp. schrödinbugs and higgs-bugsons :wink: )

You may only adapt the logic and replace pygame with rhino functionality or own build functionality