Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'WorkbookMethods' object has no attribute 'ns_map' #121

Open
williamy2k opened this issue Feb 15, 2023 · 0 comments
Open

Comments

@williamy2k
Copy link

I'm getting the following error when trying to use the tool:

AttributeError: 'WorkbookMethods' object has no attribute 'ns_map'

The error is caused by the following line:

workbook = xml.findall('.//t:workbook', self.ns_map)

Throughout the class, the second argument of .findall is always self.rest.ns_map, except for this one line.

From my understanding of the code, self.rest is an iteration of the TableauRestApiBase class, which does have an ns_map variable. But WorkbookMethods itself does not have an ns_map variable, which I think is what is triggering this error.

Am I missing something? When I change that line to self.rest.ns_map, the error stops coming up (although there are other subsequent errors I'm debugging).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant