2011-08-28 11 views
5

Este problema se ha mencionado elsewhere, pero no proporciona una solución de trabajo, por lo que aún me gustaría mantener un ticket abierto.Una multitud de problemas al intentar instalar Python bcrypt en Windows (x64)

 
c:\Users\me\Desktop\temp\py-bcrypt-0.2>setup.py install build --compiler=min 
gw32 
running install 
running build 
running build_py 
running build_ext 
building 'bcrypt._bcrypt' extension 
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python27\include -IC:\Python27\PC -c bcrypt/bcrypt_python.c -o build\temp.win32-2.7\Release\bcrypt\bcrypt_python.o 
bcrypt/bcrypt_python.c:29:26: error: expected declaration specifiers or '...' before 'u_int8_t' 
bcrypt/bcrypt_python.c:29:38: error: expected declaration specifiers or '...' before 'u_int16_t' 
bcrypt/bcrypt_python.c:29:49: error: expected declaration specifiers or '...' before 'u_int8_t' 
bcrypt/bcrypt_python.c: In function 'bcrypt_encode_salt': 
bcrypt/bcrypt_python.c:56:2: error: too many arguments to function 'encode_salt' 

bcrypt/bcrypt_python.c:29:6: note: declared here 
error: command 'gcc' failed with exit status 1 

Esto es después de deshacerse de la inicial “error: Setup script exited with error: Unable to find vcvarsall.bat”, me quedo con lo que parece ser un nudo Gordić. pip y easy-install no funcionan. También he leído varios artículos de other.

No necesito implementar bcrypt en este momento, por lo que no es una cuestión urgente, pero obviamente, la implementación de una protección de contraseña segura es vital.

Respuesta

0

suponiendo que está utilizando mingw64, debe cambiar _MSC_VER en _WIN32 en IFDEFs en bcrypt.c, bcrypt_python.c y pybc_blf.h

(también he respondió la otra pregunta)

Cuestiones relacionadas