Comunidad Underground Hispana  

Retroceder   Comunidad Underground Hispana > Programacion > Python

Respuesta Crear Nuevo Tema
 
LinkBack Herramientas Desplegado
Antiguo 02-feb-2012, 09:28   #1
Colaborador
 
Avatar de sokoleonardo
 
Fecha de Ingreso: febrero-2011
Ubicación: C:\Argentina\Chaco\Fontana.py
Amigos 7
Mensajes: 546
Gracias: 113
Agradecido 78 veces en 48 mensajes.
Post ¿Compilar packages Python con MinGW (package que contiene *.h, *.c)? Ayuda

Lo que sucede es que cuando intento hacer "C:/> Python25\MyPackage\setup.py install" me lanza:

Código:
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
  


Saludos!
__________________



[Solo usuarios registrados pueden ver los links. REGISTRARSE]


sokoleonardo está desconectado   Responder Citando
Antiguo 02-feb-2012, 10:44   #2
Moderador V2.0
 
Avatar de David Novikov
 
Fecha de Ingreso: agosto-2009
Ubicación: /dev/null
Amigos 4
Mensajes: 813
Gracias: 57
Agradecido 170 veces en 123 mensajes.
Predeterminado Respuesta: ¿Compilar packages Python con MinGW (package que contiene *.h, *.c)? Ayuda

Prueba:

C:/> Python25\MyPackage\setup.py install -c mingw32

o

C:/> Python25\MyPackage\setup.py -c mingw32
__________________
(Python)

[Solo usuarios registrados pueden ver los links. REGISTRARSE]

(Python)

[Solo usuarios registrados pueden ver los links. REGISTRARSE]


David Novikov está desconectado   Responder Citando
Antiguo 02-feb-2012, 15:18   #3
Colaborador
 
Avatar de sokoleonardo
 
Fecha de Ingreso: febrero-2011
Ubicación: C:\Argentina\Chaco\Fontana.py
Amigos 7
Mensajes: 546
Gracias: 113
Agradecido 78 veces en 48 mensajes.
Predeterminado Respuesta: ¿Compilar packages Python con MinGW (package que contiene *.h, *.c)? Ayuda

Cita:
Iniciado por David Novikov Ver Mensaje
Prueba:

C:/> Python25\MyPackage\setup.py install -c mingw32

o

C:/> Python25\MyPackage\setup.py -c mingw32
Código:
Microsoft Windows XP [Versión 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrador>cd..

C:\Documents and Settings>cd..

C:\>cd..

C:\>cd Python25

C:\Python25>cd PyTone-3.0.3

C:\Python25\PyTone-3.0.3>setup.py -c MinGw32
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option -c not recognized

C:\Python25\PyTone-3.0.3>setup.py -c mingw
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option -c not recognized

C:\Python25\PyTone-3.0.3>setup.py install -c mingw
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'mingw'

C:\Python25\PyTone-3.0.3>setup.py install -c mingw32
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'mingw32'

C:\Python25\PyTone-3.0.3>
  
No xDD

Saludos!
__________________



[Solo usuarios registrados pueden ver los links. REGISTRARSE]


sokoleonardo está desconectado   Responder Citando
Antiguo 03-feb-2012, 14:43   #4
Moderador
 
Avatar de ajr784
 
Fecha de Ingreso: marzo-2007
Amigos 2
Mensajes: 1.105
Gracias: 10
Agradecido 128 veces en 120 mensajes.
Predeterminado Respuesta: ¿Compilar packages Python con MinGW (package que contiene *.h, *.c)? Ayuda

El error de que da es bastante obvio... pero la solución tal vez no lo sea:
Código:
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
  
Traducción algo burda:
Código:
error: Python fue creado con Visual Studio 2003;
las extensiones deben ser creadas con un compilador que genere binarios compatibles.
Visual Studio 2003 no fue encontrado en tu sistema. Si tienes Cygwin instalado,
puedes probar compilando con MingW32, pasando "-c mingw32" a setup.py
  
¿tienes Cygwin o Visual Studio 2003 en tu sistema?
__________________
* Repsol es española, pero YPF es ARGENTINA!!!!!.
Cita:
Si me pedís que vuelva otra vez dónde nací
yo pido que tu empresa se vaya de mi país
y así será de igual a igual
-- De igual a igual. Leon Gieco --
ajr784 está desconectado   Responder Citando
El Siguiente Usuario Agradeció a ajr784 Por Este Mensaje:
sokoleonardo (03-feb-2012)
Respuesta

Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder mensajes
No puedes subir archivos adjuntos
No puedes editar tus mensajes

Los Códigos BB están Activado
Las Caritas están Activado
[IMG] está Activado
El Código HTML está Desactivado
Trackbacks están Activado
Pingbacks están Activado
Refbacks están Activado


Temas Similares
Tema Autor Foro Respuestas Último mensaje
<<->> Como comenzar con Python <<->> David Novikov Python 3 07-mar-2012 20:54
[Guia] Iniciando en Python Doddy Python 63 29-ago-2011 17:04
Las primeras dos líneas de un programa python ajr784 Python 1 21-ago-2011 11:40
<<->> LIBROS - MANUALES - EBOOKs <<->> Fashion Python 1 23-jul-2011 17:35


La franja horaria es GMT -5. Ahora son las 03:49.


MegaTareas Ente MX Monografias Hacker Descargar Musica juegos de bob esponja
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0