Installing Scrapy with pip, but come across an error of Cryptography, indicating compiling fails

337 views Asked by At

My OS is Suse 11 Enterprise SP3.

I try to install scrapy by pip.

But when compiling Cryptography, it indicates somthing wrong with the compiling of _openssl.c

I have never edited anything of _openssl.c. Dont know why this happened.

Very eager to know how to solve it .

Part of the log :

    building '_openssl' extension
  creating build/temp.linux-x86_64-2.7/build
  creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7
  *gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/python2.7/include/python2.7 -c*** build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o*
  build/temp.linux-x86_64-2.7/_openssl.c:680: error: function definition declared ‘typedef’
  build/temp.linux-x86_64-2.7/_openssl.c:680: warning: return type defaults to ‘int’
  build/temp.linux-x86_64-2.7/_openssl.c: In function ‘LHASH_OF’:
  build/temp.linux-x86_64-2.7/_openssl.c:680: error: expected declaration specifiers before ‘Cryptography_LHASH_OF_CONF_VALUE’
  build/temp.linux-x86_64-2.7/_openssl.c:682: error: storage class specified for parameter ‘Cryptography_STACK_OF_ACCESS_DESCRIPTION’
  build/temp.linux-x86_64-2.7/_openssl.c:683: error: storage class specified for parameter ‘Cryptography_STACK_OF_DIST_POINT’
  build/temp.linux-x86_64-2.7/_openssl.c:684: error: storage class specified for parameter ‘Cryptography_STACK_OF_POLICYQUALINFO’
  build/temp.linux-x86_64-2.7/_openssl.c:685: error: storage class specified for parameter ‘Cryptography_STACK_OF_POLICYINFO’
  build/temp.linux-x86_64-2.7/_openssl.c:686: error: storage class specified for parameter ‘Cryptography_STACK_OF_ASN1_INTEGER’
  build/temp.linux-x86_64-2.7/_openssl.c:687: error: storage class specified for parameter ‘Cryptography_STACK_OF_GENERAL_SUBTREE’
  build/temp.linux-x86_64-2.7/_openssl.c:699: error: storage class specified for parameter ‘Cryptography_STACK_OF_ASN1_OBJECT’
  build/temp.linux-x86_64-2.7/_openssl.c:700: error: storage class specified for parameter ‘Cryptography_STACK_OF_X509_OBJECT’
  In file included from build/temp.linux-x86_64-2.7/_openssl.c:711:
0

There are 0 answers