Traceback (most recent call last):


 "/usr/local/python3/lib/python3.6/site-packages/scrapy/utils/defer.py", line 102, in iter_errback

yield next(it)


 "/usr/local/python3/lib/python3.6/site-packages/scrapy/spidermiddlewares/offsite.py", line 30, in process_spider_output

for x in result:


 "/usr/local/python3/lib/python3.6/site-packages/scrapy/spidermiddlewares/referer.py", line 339, in <genexpr>

return (_set_referer(r) for r in result or ())


 "/usr/local/python3/lib/python3.6/site-packages/scrapy/spidermiddlewares/urllength.py", line 37, in <genexpr>

return (r for r in result or () if _filter(r))


 "/usr/local/python3/lib/python3.6/site-packages/scrapy/spidermiddlewares/depth.py", line 58, in <genexpr>

return (r for r in result or () if _filter(r))


 "/root/WeiboSpider/WeiboSpider/sina/spiders/weibo_spider.py", line 115, in parse_tweet

tweet_nodes = tree_node.xpath('//div[@class="c" and @id]')
AttributeError: 'NoneType' object has no attribute 'xpath'

Traceback (most recent call last):


 "/Users/ericwtq/anaconda/lib/python3.6/site-packages/conda/exceptions.py", line 616, in conda_exception_handler

return_value = func(*args, **kwargs)


 "/Users/ericwtq/anaconda/lib/python3.6/site-packages/conda/cli/main.py", line 137, in _main

exit_code = args.func(args, p)


 "/Users/ericwtq/anaconda/lib/python3.6/site-packages/conda/cli/main_update.py", line 65, in execute

install(args, parser, 'update')


 "/Users/ericwtq/anaconda/lib/python3.6/site-packages/conda/cli/install.py", line 222, in install

unknown=index_args['unknown'], prefix=prefix)


 "/Users/ericwtq/anaconda/lib/python3.6/site-packages/conda/core/index.py", line 124, in get_index

index = fetch_index(channel_priority_map, use_cache=use_cache)


 "/Users/ericwtq/anaconda/lib/python3.6/site-packages/conda/core/index.py", line 532, in fetch_index

repodatas = _collect_repodatas(use_cache, tasks)


 "/Users/ericwtq/anaconda/lib/python3.6/site-packages/conda/core/index.py", line 521, in _collect_repodatas

repodatas = _collect_repodatas_serial(use_cache, tasks)


 "/Users/ericwtq/anaconda/lib/python3.6/site-packages/conda/core/index.py", line 494, in _collect_repodatas_serial

for url, schan, pri in tasks]


 "/Users/ericwtq/anaconda/lib/python3.6/site-packages/conda/core/index.py", line 494, in <listcomp>

for url, schan, pri in tasks]


 "/Users/ericwtq/anaconda/lib/python3.6/site-packages/conda/core/index.py", line 143, in func

res = f(*args, **kwargs)


 "/Users/ericwtq/anaconda/lib/python3.6/site-packages/conda/core/index.py", line 483, in fetch_repodata

process_repodata(repodata, url, schannel, priority)


 "/Users/ericwtq/anaconda/lib/python3.6/site-packages/conda/core/index.py", line 410, in process_repodata

opackages = repodata.setdefault('packages', {})

AttributeError: 'NoneType' object has no attribute 'setdefault'