Thursday, July 15, 2010

Python Open Dynamics Engine (PYODE) Installation on Ubuntu

PYODE installation failure occurred during "make install" on ubuntu.
1 -   $ sh autogen.sh
2 -   $ ./configure
3 -   $ make
4 -   $ make install -//failed in ubuntu

At this point open Synaptic Package Manager (SPM) and search for "pyode".
It should find python-ode-doc and python-ode.
Check them to install.
Apply changes (Installation starts automatically).

Now, ode in python can be imported successfully.


Again using SPM, install "pygame" package.
Once pygame installed 2pendulum.py can be executed.

Calling a python script from python shell: 
#import needed library
import subprocess 
child = subprocess.Popen("python 2pendulum.py", shell=True)

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home