error: python was built with Visual studio 2003

Probleme bei der Installation?
Antworten
genji
User
Beiträge: 1
Registriert: Freitag 14. November 2008, 16:33

Hallo,

ich habe python 2.5 installiert. Wenn ich die fonttools installieren will mit python setup.py install bekomme ich folgende Meldung:

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.

Ich habe mir hier die Antworten durchgelesen. Und ich habe unter http://sebsauvage.net/python/mingw.html die Anleitung angesehen und bis Schritt 6 ausgeführt.

Ich komme aber nicht weiter. Was muss ich tun? Muss ich Python mit cygqin compilieren?

ich habe jetzt folgendes in cmd in windows eingegeben:
python C:\fonttools-2.2>python setup.py build -cmingw32
running build
running build_py
running build_ext
building 'fontTools.misc.eexecOp' extension
creating build\temp.win32-2.5
creating build\temp.win32-2.5\Release
creating build\temp.win32-2.5\Release\src
creating build\temp.win32-2.5\Release\src\eexecop
gcc -mno-cygwin -mdll -O -Wall -Ic:\python25\include -Ic:\python25\PC -c Src/eex
ecOp/eexecOpmodule.c -o build\temp.win32-2.5\Release\src\eexecop\eexecopmodule.o

running build_scripts
creating build\scripts-2.5
copying and adjusting Tools\ttx -> build\scripts-2.5

Kann ich damit was anfangen?
Wie komme ich weiter?
Freue mich über alle weiterführenden Tipps.
:D
Benutzeravatar
name
User
Beiträge: 254
Registriert: Dienstag 5. September 2006, 16:35
Wohnort: Wien
Kontaktdaten:

Ich verwende Windows zwar nicht, aber mir faellt auf das dir angeschafft wird -c mingw32 zu nehmen und du -cmingw32 nimmst.
Ohloh | Mein Blog | Jabber: segfaulthunter@swissjabber.eu | asynchia – asynchrone Netzwerkbibliothek

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.
Leonidas
Python-Forum Veteran
Beiträge: 16025
Registriert: Freitag 20. Juni 2003, 16:30
Kontaktdaten:

Hallo genji, willkomen im Forum

Ich habe immer (damals, unter Windows) folgendes in meine setup.cfg (immer im gleichen Ordner wie setup.py abgelegt) geschrieben:

Code: Alles auswählen

[build_ext]
compiler = mingw32
Aber davon abgesehen: es hat doch bei dir erfolgreich kompiliert, wo ist nun das eigentliche Problem?
My god, it's full of CARs! | Leonidasvoice vs (former) Modvoice
Antworten