cryptography error : integer 2147486719 does not fit '32-bit int'

78 views
Skip to first unread message

tam vu

unread,
Apr 10, 2014, 10:00:54 AM4/10/14
to scrapy...@googlegroups.com
Dear Guys,

 I use scrapy for crawler a https site, but i match error :

Traceback (most recent call last):
 File "/home/vmintam/.virtualenvs/crawler/local/lib/python2.7/site-packages/twisted/web/client.py", line 1291, in request
   parsedURI.originForm)
 File "/home/vmintam/.virtualenvs/crawler/local/lib/python2.7/site-packages/twisted/web/client.py", line 1182, in _requestWithEndpoint
   d = self._pool.getConnection(key, endpoint)
 File "/home/vmintam/.virtualenvs/crawler/local/lib/python2.7/site-packages/twisted/web/client.py", line 1071, in getConnection
   return self._newConnection(key, endpoint)
 File "/home/vmintam/.virtualenvs/crawler/local/lib/python2.7/site-packages/twisted/web/client.py", line 1083, in _newConnection
   return endpoint.connect(factory)
--- <exception caught here> ---
 File "/home/vmintam/.virtualenvs/crawler/local/lib/python2.7/site-packages/twisted/internet/endpoints.py", line 869, in connect
   timeout=self._timeout, bindAddress=self._bindAddress)
 File "/home/vmintam/.virtualenvs/crawler/local/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 507, in connectSSL
   tlsFactory = tls.TLSMemoryBIOFactory(contextFactory, True, factory)
 File "/home/vmintam/.virtualenvs/crawler/local/lib/python2.7/site-packages/twisted/protocols/tls.py", line 608, in __init__
   contextFactory.getContext()
 File "/home/vmintam/.virtualenvs/crawler/local/lib/python2.7/site-packages/twisted/web/client.py", line 794, in getContext
   return self._webContext.getContext(self._hostname, self._port)
 File "/home/vmintam/.virtualenvs/crawler/local/lib/python2.7/site-packages/Scrapy-0.22.2-py2.7.egg/scrapy/core/downloader/contextfactory.py", line 19, in getContext
   ctx.set_options(SSL.OP_ALL)
 File "build/bdist.linux-i686/egg/OpenSSL/SSL.py", line 753, in set_options
   
exceptions.OverflowError: integer 2147486719 does not fit '32-bit int'

I'm using : scrapy 0.22, cryptography 0.3, pyopenssl 0.14 ,......


static const long SSL_OP_ALL;

  but still error. :(


anybody help me, please!!!

thanks!

tam vu

unread,
Apr 11, 2014, 12:42:35 AM4/11/14
to scrapy...@googlegroups.com
anybody help me........!

thanks

Vào 21:00:54 UTC+7 Thứ năm, ngày 10 tháng tư năm 2014, tam vu đã viết:

justin

unread,
Apr 11, 2014, 12:52:42 AM4/11/14
to scrapy...@googlegroups.com
I've run into the exact same problem. I haven't gotten anywhere with it.

justin

unread,
Apr 11, 2014, 12:02:53 PM4/11/14
to scrapy...@googlegroups.com
I have the same problem Ubuntu Server 12.04 32bit. The same project works
fine using scrapy in OSX and Windows 7, and I do not get this error when I
access a site without SSL.

Mikhail Korobov

unread,
Apr 13, 2014, 4:06:08 AM4/13/14
to scrapy...@googlegroups.com
Hi tam,

Could you please report and discuss this error with https://github.com/pyca/cryptography or https://github.com/pyca/pyopenssl people? It looks like a bug in cryptography or OpenSSL, and we can't fix it in Scrapy.

четверг, 10 апреля 2014 г., 20:00:54 UTC+6 пользователь tam vu написал:

tam vu

unread,
May 8, 2014, 6:53:09 AM5/8/14
to scrapy...@googlegroups.com
Dear Guys,

 now, i can login into https sites. I have just upgrade cryptography package to version : 0.4

pip install --upgrade cryptography


anyone who have error, pls try update.

thanks!


Vào 21:00:54 UTC+7 Thứ năm, ngày 10 tháng tư năm 2014, tam vu đã viết:
Dear Guys,
Reply all
Reply to author
Forward
0 new messages