Hallo,
ich versuche unter Windows die setup.py von mercurial auszuführen um an die hgweb.cgi zu kommen. dabei beschwert sich die setup.py, dass mir bz2 Komponenten fehlen. Habe ich mercurial falsch installiert?
wie komme ich an die bz2 Komponente?
vielen Dank,
Tim
install setup.py
@timg: Starte mal Python und gib ``import bz2`` ein. Wenn das nicht klappt, dann ist etwas an Deiner Python-Installation nicht in Ordnung.
Ansonsten brauchen wir mehr Informationen. Welche Python-Version? Wie sieht die Fehlermeldung genau aus?
Ansonsten brauchen wir mehr Informationen. Welche Python-Version? Wie sieht die Fehlermeldung genau aus?
sieht gut aus:
wenn ich auf der commandline versuche die setup.py rennen zu lassen (% ist mein prompt)
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import bz2
>>>
wenn ich auf der commandline versuche die setup.py rennen zu lassen (% ist mein prompt)
komischerweise bekomme ich einen anderen fehler, wenn ich den kompletten python pfad angebe:%python setup.py install
running install
running build
running build_mo
warning: hgbuildmo: could not find msgfmt executable, no translations will be bu
ilt
running build_py
Python headers are required to build Mercurial
idee?%C:\python\Python27\python.exe setup.py install
Couldn't import standard bz2 (incomplete Python install).
@timg: Meine Idee wäre, dass Deine Python 2.7 Installation kaputt ist und Deine 2.5er eben nicht. Und das Du für die Installation die Python-Header-Dateien und wahrscheinlich auch mindestens einen C-Compiler benötigen wirst.
ahje, hatte vergessen, dass ich mal eine andere python version installiert hatte, nun besteht noch das problem mit den
wo finde ich die Python-Header-Dateien?
wo finde ich die Python-Header-Dateien?
Code: Alles auswählen
>python setup.py install
Couldn't import standard bz2 (incomplete Python install).
anscheinend fehlt im da die modul dll? wo finde ich die? - googlen half mir irgendwie nicht wirklich.Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import bz2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
@timg: Die DLL gehört zur normalen Standardbibliothek, dass heisst die solltest Du überhaupt nicht suchen müssen.
ich hab http://www.python.org/download/releases/2.7/ dies installiert ( binary installer ), ist das nicht richtig? wo gibts die python header files?
ich habe mal testweise die 3.2 installiert, auch sehr lustig:
die 3.2 sucht also in der 2.5? wird global irgendwie irgendwo was gesetzt?D:\www\repositories\mercurial>C:\python\Python32\python.exe
Fatal Python error: Py_Initialize: unable to load the file system codec
File "C:\csvn\Python25\\lib\encodings\__init__.py", line 120
raise CodecRegistryError,\
^
SyntaxError: invalid syntax
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.