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

"TypeError: pop() takes no arguments (1 given)" occurs when using Pager generator #133

Closed
talvalin opened this issue Jan 23, 2017 · 2 comments

Comments

@talvalin
Copy link
Contributor

When trying to use the documented page options, the following error occurs

all_users = list(TSC.Pager(server.users, request_options))
  File "<python_install_path>\lib\site-packages\tableauserverclient\server\pager.py", line 30, in __iter__
    yield current_item_list.pop(0)
TypeError: pop() takes no arguments (1 given)

Script example:

request_options = TSC.RequestOptions(pagesize=1000)
all_users = list(TSC.Pager(server.users, request_options))
@talvalin talvalin changed the title Use of Pager generator results in TypeError: pop() takes no arguments (1 given) error "TypeError: pop() takes no arguments (1 given) error" occurs when using Pager generator Jan 23, 2017
@talvalin talvalin changed the title "TypeError: pop() takes no arguments (1 given) error" occurs when using Pager generator "TypeError: pop() takes no arguments (1 given)" occurs when using Pager generator Jan 23, 2017
@t8y8
Copy link
Collaborator

t8y8 commented Jan 23, 2017

This was already fixed in #109 -- are you on an old version?

@talvalin
Copy link
Contributor Author

Fail. I had 0.2 installed, which updated to 0.3 when I ran pip install --upgrade. Guess this can be closed out then?

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

2 participants