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

Example in README does not work #17

Open
pkuwwt opened this issue Nov 27, 2020 · 0 comments
Open

Example in README does not work #17

pkuwwt opened this issue Nov 27, 2020 · 0 comments

Comments

@pkuwwt
Copy link

pkuwwt commented Nov 27, 2020

The example in dir examples works.

p = Pager()
p.add_source(GeneratorSource(generate_a_lot_of_contents())
p.run()

However, the example in README.md does not work:

p = Pager(GeneratorSource(generate_a_lot_of_contents())
p.run()

The error is

File "/usr/local/Cellar/python@3.9/3.9.0_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/weakref.py", line 405, in __getitem__
    return self.data[ref(key)]
KeyError: <weakref at 0x104c7e720; to 'DummySource' at 0x103fa6e80>

It is tested on MacOS python3.7, python3.9.

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