No module named dbapi

See original GitHub issue

Hello,

I’m trying to run a simple python script using impyla:

from impala.dbapi import connect

When I run it I have the following error:

Traceback (most recent call last):
  File "impala.py", line 1, in <module>
    from impala.dbapi import connect
  File "/Users/wmorin/src/hadoop-etl/impala.py", line 1, in <module>
    from impala.dbapi import connect
ImportError: No module named dbapi

I’m under max OSX El captain. I use python installed via homebrew. I’m in a virtualenv and when I run pip list I can see

bitarray (0.8.1)
impyla (0.13.8)
pip (9.0.1)
setuptools (28.8.0)
six (1.10.0)
thrift (0.9.3)
wheel (0.29.0)

Here are some info on my setup:

$ python -V
Python 2.7.12

 pip -V
pip 9.0.1 from /Users/.../venv/lib/python2.7/site-packages (python 2.7)

Could you please help me?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
wesmcommented, Nov 26, 2016

@wmorin the problem is that your impala.py file is conflicting with the impala package name. Try calling the file something else

3reactions
CrystalRanitacommented, Mar 5, 2020

@dknupp Thanks for your help. impyla==0.16.2 works. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: No module named impyla - python - Stack Overflow
I have installed impyla and it's dependencies following this guide. The installation seems to be successful as now I can see the folder...
Read more >
use impyla on hue - Google Groups
i encountered a problem. i want to use impyla on hue.But when i type 'from impala.dbapi import connect' and run it, it display...
Read more >
ModuleNotFoundError: No module named 'dbapi'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'dbapi' How to remove the ModuleNotFou.
Read more >
ModuleNotFoundError: No module named 'impala.dbapi'
插一句. ModuleNotFoundError: No module named 'google.cloud'. pip3 install google-cloud-bigquery. 正文. from impala.dbapi import connect.
Read more >
impyla - PyPI
Fully DB API 2.0 (PEP 249)-compliant Python client (similar to sqlite or MySQL ... If no-one is working on it, assign it to...
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