Python - struct.error al crear .exe con pyinstaller

 
Vista:

struct.error al crear .exe con pyinstaller

Publicado por Arturo de Jongh (2 intervenciones) el 08/04/2016 15:16:03
hola, trato de crear un ejecutable con pyinstaller y agregarle un icono, pero estoy recibiendo este error:
struct.error: unpack requires string argument with length 16
estoy usando python 2.7.11 y pyinstaller 3.1.1
gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de xve
Val: 2.239
Plata
Ha mantenido su posición en Python (en relación al último mes)
Gráfica de Python

struct.error al crear .exe con pyinstaller

Publicado por xve (1646 intervenciones) el 08/04/2016 19:19:40
Hola Arturo, nos puedes mostrar donde te da el error?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

struct.error al crear .exe con pyinstaller

Publicado por Arturo de Jongh (2 intervenciones) el 09/04/2016 23:54:16
hola de nuevo, ejecuté este comando:

C:\Users\de Jongh\PycharmProjects\Sistema de Transporte de Fluidos>pyinstaller --icon=logo.ico STF.py

y estas fueron las ultimas lineas que se ejecutaron:

File "C:\Python27\lib\site-packages\pyinstaller-3.1.1-py2.7.egg\PyInstaller\building\api.py", line 586, in assemble
icon.CopyIcons(tmpnm, self.icon)
File "C:\Python27\lib\site-packages\pyinstaller-3.1.1-py2.7.egg\PyInstaller\utils\win32\icon.py", line 165, in CopyIcons
return CopyIcons_FromIco(dstpath, [srcpath])
File "C:\Python27\lib\site-packages\pyinstaller-3.1.1-py2.7.egg\PyInstaller\utils\win32\icon.py", line 116, in CopyIcons_FromIco
icons = map(IconFile, srcpath)
File "C:\Python27\lib\site-packages\pyinstaller-3.1.1-py2.7.egg\PyInstaller\utils\win32\icon.py", line 93, in __init__
entry.fromfile(file)
File "C:\Python27\lib\site-packages\pyinstaller-3.1.1-py2.7.egg\PyInstaller\utils\win32\icon.py", line 63, in fromfile
self._fields_ = list(struct.unpack(self._format_, data))
struct.error: unpack requires a string argument of length 16

gracias x la ayuda
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar