Traceback (most recent call last):


 "c:\python27\lib\site-packages\twisted\internet\defer.py", line 1260, in _inlineCallbacks

result = g.send(result)


 "c:\python27\lib\site-packages\scrapy\core\downloader\middleware.py", line 37, in process_request

response = yield method(request=request, spider=spider)


 "D:\SinaSpider-master\Sina_spider1\Sina_spider1\middleware.py", line 19, in process_request

cookie = random.choice(cookies)


 "c:\python27\lib\random.py", line 275, in choice

return seq[int(self.random() * len(seq))]
# raises IndexError if seq is empty
IndexError: list index out of range

Traceback (most recent call last):

 "/cygdrive/c/Users/darklord/AppData/Local/Temp/easy_install-jOj_QG/mock-2.0.0/.eggs/pbr-1.10.0-py2.7.egg/pbr/core.py", line 111, in pbr
attrs = util.cfg_to_args(path, dist.script_args)

 "/cygdrive/c/Users/darklord/AppData/Local/Temp/easy_install-jOj_QG/mock-2.0.0/.eggs/pbr-1.10.0-py2.7.egg/pbr/util.py", line 248, in cfg_to_args
kwargs = setup_cfg_to_setup_kwargs(config, script_args)

 "/cygdrive/c/Users/darklord/AppData/Local/Temp/easy_install-jOj_QG/mock-2.0.0/.eggs/pbr-1.10.0-py2.7.egg/pbr/util.py", line 431, in setup_cfg_to_setup_kwargs
if pkg_resources.evaluate_marker('(%s)' % env_marker):

 "/cygdrive/c/CYGWIN64/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1509, in evaluate_marker
return cls.interpret(parser.expr(text).totuple(1)[1])

 "/cygdrive/c/CYGWIN64/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1543, in interpret
return op(nodelist)

 "/cygdrive/c/CYGWIN64/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1457, in atom
return cls.interpret(nodelist[2])

 "/cygdrive/c/CYGWIN64/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1543, in interpret
return op(nodelist)

 "/cygdrive/c/CYGWIN64/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1478, in comparison
raise SyntaxError(msg)SyntaxError: '<' operator not allowed in environment markers