Traceback (most recent call last):


 "search_goods.py", line 7, in <module>

twint.run.Search(c)


 "/usr/lib/python3.6/site-packages/twint/run.py", line 201, in Search

run(config)


 "/usr/lib/python3.6/site-packages/twint/run.py", line 153, in run

get_event_loop().run_until_complete(Twint(config).main())


 "/usr/lib64/python3.6/asyncio/base_events.py", line 473, in run_until_complete

return future.result()


 "/usr/lib/python3.6/site-packages/twint/run.py", line 113, in main

self.config.User_id = await get.User(url, self.config, self.conn, True)


 "/usr/lib/python3.6/site-packages/twint/get.py", line 133, in User

return int(inf(soup, "id"))


 "/usr/lib/python3.6/site-packages/twint/user.py", line 16, in inf

ret = group["data-user-id"]
TypeError: 'NoneType' object is not subscriptable
Traceback (most recent call last):


 "/home/myname/workspace/python/kafkatest/kafkatest.py", line 20, in <module>

,auto_offset_reset='earliest'


 "/opt/continuum/anaconda3/lib/python3.6/site-packages/kafka/consumer/group.py", line 327, in __init__

self._client = KafkaClient(metrics=self._metrics, **self.config)


 "/opt/continuum/anaconda3/lib/python3.6/site-packages/kafka/client_async.py", line 225, in __init__

self._bootstrap(collect_hosts(self.config['bootstrap_servers']))


 "/opt/continuum/anaconda3/lib/python3.6/site-packages/kafka/client_async.py", line 259, in _bootstrap

bootstrap.connect()


 "/opt/continuum/anaconda3/lib/python3.6/site-packages/kafka/conn.py", line 384, in connect

if self._try_authenticate():


 "/opt/continuum/anaconda3/lib/python3.6/site-packages/kafka/conn.py", line 468, in _try_authenticate

raise ex
# pylint: disable-msg=raising-bad-type


 "/opt/continuum/anaconda3/lib/python3.6/site-packages/kafka/conn.py", line 567, in _try_authenticate_gssapi

size = Int32.encode(len(msg))
TypeError: object of type 'NoneType' has no len()
