Estoy con GalponMinino basado en UbuntuDebian y cargué desde Synaptic Box2D incluidos librerías, tengo 2 Archivos init.py uno en /usr/local/lib/python2.7/dist-packages/Box2D/b2/init.py donde agregué el acento a “mie” para quedar así
__author__='Ken Lauer'
__license__='zlib'
__date__="$Date: 2010-01-13 21:09:31 -0300 (miér 13 de ene de 2010) $"
__version__="$Revision: 250 $"
__doc__="""
This module holds the full usable contents of pybox2d.
It offers an alternative syntax in the form of:
from Box2D.b2 import *
a = vec2(1,1) + vec2(2,2)
This is fully equivalent to:
from Box2D import *
a = b2Vec2(1,1) + b2Vec2(2,2)
All classes that exist in the main module that are prefixed
by b2 or b2_ have been stripped. Beware that importing *
from a module is generally frowned upon -- this is mainly
here for convenience in debugging sessions where typing
b2Vec2 repeatedly gets very old very quickly (trust me,
I know.)
"""
y otro en /usr/local/lib/python2.7/dist-packages/Box2D/b2/init.py que está así
from .Box2D import *
__author__ = '$Date: 2013-02-02 20:29:05 -0300 (sab 02 de feb de 2013) $'
__version__ = '2.3b0'
__version_info__ = (2,3,0)
__revision__ = '$Revision: 362 $'
__license__ = 'zlib'
__date__ = '$Date: 2013-02-02 20:29:05 -0300 (sab 02 de feb de 2013) $'
en el Terminal sigue apareciendo lo mismo
Traceback (most recent call last):
File "/usr/local/bin/pilas", line 6, in <module>
import pilas
File "/usr/local/lib/python2.7/dist-packages/pilas/__init__.py", line 14, in <module>
from mundo import Mundo
File "/usr/local/lib/python2.7/dist-packages/pilas/mundo.py", line 11, in <module>
from pilas import fisica
File "/usr/local/lib/python2.7/dist-packages/pilas/fisica.py", line 16, in <module>
import Box2D as box2d
File "/usr/local/lib/python2.7/dist-packages/Box2D/__init__.py", line 20, in <module>
from .Box2D import *
File "/usr/local/lib/python2.7/dist-packages/Box2D/Box2D.py", line 7326, in <module>
from . import b2
File "/usr/local/lib/python2.7/dist-packages/Box2D/b2/__init__.py", line 21
SyntaxError: Non-ASCII character '\xc3' in file /usr/local/lib/python2.7/dist-packages/Box2D/b2/__init__.py on line 21, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
No se si un Copy-Paste soluciona el problema, si alguien sabe agradezco
Antes edité los Archivos con Emacs, si lo hago con nano sale así
__author__='Ken Lauer'
__license__='zlib'
__date__="$Date: 2010-01-13 21:09:31 -0300 (mi��r 13 de ene de 2010) $"
__version__="$Revision: 250 $"
__doc__="""
This module holds the full usable contents of pybox2d.
It offers an alternative syntax in the form of:
from Box2D.b2 import *
a = vec2(1,1) + vec2(2,2)
This is fully equivalent to:
from Box2D import *
a = b2Vec2(1,1) + b2Vec2(2,2)
All classes that exist in the main module that are prefixed
by b2 or b2_ have been stripped. Beware that importing *
from a module is generally frowned upon -- this is mainly
here for convenience in debugging sessions where typing
b2Vec2 repeatedly gets very old very quickly (trust me,
I know.)