Skip to content

'Views' object has no attribute 'get_by_id'. #877

Closed

Description

@mauropasi

Describe the bug
SERVER.views.get_by_id('some_id')
returns 'Views' object has no attribute 'get_by_id'.

It works with other endpoints, like workbooks for example.

On a separate note. It is missing an 's' in the example code in the docs:
https://tableau.github.io/server-client-python/docs/api-ref#views
view = server.view.get_by_id

Versions
Details of your environment, including:

  • Tableau Server version: 2020.4
  • Python version: 3.7
  • TSC library version: 3.10
  • Package: tableauserverclient 0.15.0

To Reproduce
SERVER.views.get_by_id('some_id')

Results
'Views' object has no attribute 'get_by_id'.

NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.

Activity

  1. mauropasi commented on Aug 26, 2021

    @mauropasi
    Author

    I have updated to tableauserverclient 0.16 and I don't have the issue there.

  2. bcantoni commented on Aug 31, 2021

    @bcantoni
    Contributor

    Thanks @mauropasi for the confirmation. Looking back at the history, it seems we added that via #750 which first appeared in release 0.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions