bryanthowell-tableau / tableau_tools

Package containing Tableau REST API, XML modification, tabcmd and repository tools
Other
215 stars 86 forks source link

Tabcmd is not defined #16

Closed param-dataspark closed 6 years ago

param-dataspark commented 6 years ago

Hi, I'm getting below error: Tabcmd(tabcmd_dir, server, username, password, site=site_content_url, tabcmd_config_location=tabcmd_config_location) NameError: name 'Tabcmd' is not defined.

Attached my python script. testtabcmd.txt

bryanthowell-tableau commented 6 years ago

Hi, The Tabcmd module isn't one of the ones that is imported automatically. If you look at the example script called "extract_refresh_pre_10_3_sample.py", you can see the Tabcmd module being used. You'll need to add the following in the imports section:

from tableau_tools.tabcmd import Tabcmd