Satyam Kandhway
Satyam Kandhway

Reputation: 1

ModuleNotFoundError: No module named 'tableau_api_lib'

I have installed the library using command pip install --upgrade tableau-api-lib

It is also installed on my system

Package            Version
------------------ ---------
tableau-api-lib    0.1.45

python --version Python 3.10.6

But when I am running in on Jupyter, I am getting error that

ModuleNotFoundError                       Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_5860/1301965758.py in <module>
      1 import io
----> 2 from tableau_api_lib import TableauServerConnection 
      3 from tableau_api_lib.utils.querying import get_views_dataframe, get_view_data_dataframe

ModuleNotFoundError: No module named 'tableau_api_lib'

I have tried restarting the system and kernel.

Upvotes: 0

Views: 1751

Answers (2)

Guesinho
Guesinho

Reputation: 1

Old questions, but I guess you have installed tableau-api-lib (with hyphens) but trying to import tableau_api_lib (with underscores).

Upvotes: -1

Satyam Kandhway
Satyam Kandhway

Reputation: 1

I used the virtual environment to run the script. Installed the library in virtual environment and it worked like a charm.

Upvotes: 0

Related Questions