question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: module 'ibis.impala' has no attribute 'connect'

See original GitHub issue

I want to create a impala connect by following the doc. This is my code:

import ibis con = ibis.impala.connect(host='XXX.XXX.XXX.XXX', port=21050, auth_mechanism='PLAIN',user='XXXXX', password='XXXXX')

But running it will raise an error: AttributeError: module 'ibis.impala' has no attribute 'connect' Please help!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
ddonetskovcommented, May 22, 2018

I came across the same issue when trying to use ibis for Impala. What has helped is to install the framework in the proper way (see below, it’s also in the documentation, the ‘Impala Quickstart’ section). I suggest outlining in the documentation that there are several options how to install ibis.

pip install ibis-framework[impala]

0reactions
sambit19commented, Dec 4, 2019

I had the same issue and fixed it by uninstalling and reinstalling using the command below:

conda uninstall ibis-framework
conda install ibis-framework -c conda-forge

So the no attribute ‘connect’ error is gone, but it throws a new error

ModuleNotFoundError: No module named 'thrift_sasl'

So installed conda install thrift_sasl -c conda-forge

Then I got this error

AttributeError: 'TSSLSocket' object has no attribute 'isOpen'

I tried to force install thrift=0.9.3 but no luck

Is this project still maintained?

Read more comments on GitHub >

github_iconTop Results From Across the Web

module 'ibis.impala' has no attribute 'connect' - Stack Overflow
it seems that you need to do this pip install ibis-framework[impala] , see the link here ibis doc.
Read more >
import ibis gives error "AttributeError: type obje... - 293706
Hi All,. When I am trying sample code provided on Cloudera documentation here. It gives me error message saying that Attributes error.
Read more >
Introduction to Ibis - Ibis Project
To start using Ibis, you need a Python environment with Ibis installed ... AttributeError: 'StringColumn' object has no attribute 'distinct'.
Read more >
Read & Write from Impala - Saagie Help Center
To query Impala with Python you have two options : impyla ... In case you can't connect directly to HDFS through WebHDFS, Ibis...
Read more >
ibis.hdfs_connect Example - Program Talk
Learn how to use python api ibis.hdfs_connect. ... not in ['GSSAPI', 'LDAP'])) else: hdfs_client = None return ibis.impala.connect(host=env.impala_host, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found