[pyar] Estoy trancado con Nuitka y la compilacion en Python

Maxim Toja tojamaxim en gmail.com
Lun Ago 10 09:20:38 ART 2015


Acerca de Nuitka y Mirando en el link:

http://www.tsheffler.com/blog/2015/01/05/nuitka-compiler-for-python/

Intento compilar un simple script:

Archivo: "Hola_Mundo.py"
print "Hola mundo"

Quiero compilarlo con el comando:
nuitka --standalone Hola_Mundo.py

y responde:

Hola_Mundo.build/static/CompiledCodeHelpers.o: In function
`BUILTIN_GETATTR(_object*, _object*, _object*)':
CompiledCodeHelpers.cpp:(.text+0x1316): undefined reference to
`_PyUnicodeUCS2_AsDefaultEncodedString'
Hola_Mundo.build/static/CompiledCodeHelpers.o: In function
`_initBuiltinModule()':
CompiledCodeHelpers.cpp:(.text+0x43d3): undefined reference to
`PyUnicodeUCS2_FromString'
Hola_Mundo.build/static/CompiledCodeHelpers.o: In function
`UNSTREAM_UNICODE(unsigned char const*, long)':
CompiledCodeHelpers.cpp:(.text+0x16c1): undefined reference to
`PyUnicodeUCS2_FromStringAndSize'
collect2: ld devolvió el estado de salida 1
scons: *** [Hola_Mundo.dist/Hola_Mundo.exe] Error 1

En este link:

http://stackoverflow.com/questions/2584198/undefined-symbol-pyunicodeucs2-decode-whilst-trying-to-install-psycopg2

dice:

fixed it.
I had to recompile python with --enable-unicode=ucs4.
Still not clear why as the default version on ubuntu uses ucs4.

En realidad no se como se recompila Python en Linux

Le agregue esta directiva al codigo que le agregamos a los codigos en el
curso Python:

#-*-coding:UTF-8-*-

pero dio lo mismo aun no se como hacer lo que exprese lineas mas arriba.

Les agradezco en lo que me puedan ayudar.

Saludos,
Maxim Toja
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20150810/5ea4c7c9/attachment-0001.html>


More information about the pyar mailing list