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):


 "C:/<removed>/sequence_model_mc_bug.py", line 10, in <module>

pos = nx.drawing.nx_pydot.graphviz_layout(G, prog='dot')


 "C:\<removed>\anaconda3\envs\py36\lib\site-packages\networkx\drawing\nx_pydot.py", line 268, in graphviz_layout

return pydot_layout(G=G, prog=prog, root=root)


 "C:\<removed>\anaconda3\envs\py36\lib\site-packages\networkx\drawing\nx_pydot.py", line 343, in pydot_layout

node = node[0]
IndexError: list index out of range