- Código: Seleccionar todo
juan@wind:~$ sudo apt-get install build-essential python-dev python-setuptools python-sfml python-pygame swig g++ gcc
[sudo] password for juan:
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
g++ is already the newest version.
gcc is already the newest version.
python-setuptools is already the newest version.
swig is already the newest version.
python-pygame is already the newest version.
python-sfml is already the newest version.
python-dev is already the newest version.
The following packages were automatically installed and are no longer required:
unity-qt-spread unity-qt-launcher unity-qt-places unity-qt-panel
python-jswebkit java-wrappers
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
juan@wind:~$ sudo easy_install -U pilas
install_dir /usr/local/lib/python2.6/dist-packages/
Searching for pilas
Reading http://pypi.python.org/simple/pilas/
Reading http://www.pilas-engine.com.ar
Best match: pilas 0.38
Processing pilas-0.38-py2.6.egg
pilas 0.38 is already the active version in easy-install.pth
Installing pilas script to /usr/local/bin
Using /usr/local/lib/python2.6/dist-packages/pilas-0.38-py2.6.egg
Processing dependencies for pilas
Finished processing dependencies for pilas
juan@wind:~$ python
Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pilas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/dist-packages/pilas-0.38-py2.6.egg/pilas/__init__.py", line 44, in <module>
import elements
File "/usr/local/lib/python2.6/dist-packages/pilas-0.38-py2.6.egg/pilas/elements/__init__.py", line 2, in <module>
from elements import Elements
File "/usr/local/lib/python2.6/dist-packages/pilas-0.38-py2.6.egg/pilas/elements/elements.py", line 52, in <module>
import callbacks
File "/usr/local/lib/python2.6/dist-packages/pilas-0.38-py2.6.egg/pilas/elements/callbacks.py", line 81, in <module>
class kContactListener(box2d.b2ContactListener):
AttributeError: 'module' object has no attribute 'b2ContactListener'
>>> quit()
juan@wind:~$ python --version ; lsb_release -c ; uname -a
Python 2.6.6
Codename: maverick
Linux wind 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:48 UTC 2011 i686 GNU/Linux
juan@wind:~$
Se agradecera alguna ayuda. . . ಥ_ಥ