Skip to content

Instantly share code, notes, and snippets.

@vhaldemar
Last active October 19, 2017 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vhaldemar/eb51f28207412ed6128d710a1704c064 to your computer and use it in GitHub Desktop.
Save vhaldemar/eb51f28207412ed6128d710a1704c064 to your computer and use it in GitHub Desktop.
In [12]: from clickhouse_driver import Client
In [13]: client = Client(host='<my_host>', port=8123, user='<..>', password='<...>')
In [14]: client.execute(query)
<...>
~/.virtualenvs/<...>/local/lib/python2.7/site-packages/clickhouse_driver/connection.pyc in connect(self)
140 self.disconnect()
141 raise errors.NetworkError(
--> 142 '{} ({})'.format(e.strerror, self.get_description())
143 )
144
NetworkError: Code: 210. Name or service not known (<my_host>:8123)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment