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: 'SimpleProviderView' object has no attribute 'preview_all' #50

Open
garytee opened this issue Apr 27, 2021 · 1 comment

Comments

@garytee
Copy link

garytee commented Apr 27, 2021

This works fine:

streamglob mlb/2021-04-26.nyy

When I run streamglob it randomly crashes and gives me this error

File "~/.pyenv/versions/3.9.2/bin/streamglob", line 33, in <module> sys.exit(load_entry_point('streamglob==0.0.11.dev0', 'console_scripts', 'streamglob')()) File "~/.pyenv/versions/3.9.2/lib/python3.9/site-packages/streamglob/__main__.py", line 557, in main rc = run_gui(action, provider, **opts) File "~/.pyenv/versions/3.9.2/lib/python3.9/site-packages/streamglob/__main__.py", line 442, in run_gui state.loop.run() File "~/.pyenv/versions/3.9.2/lib/python3.9/site-packages/urwid/main_loop.py", line 287, in run self._run() File "~/.pyenv/versions/3.9.2/lib/python3.9/site-packages/urwid/main_loop.py", line 385, in _run self.event_loop.run() File "~/.pyenv/versions/3.9.2/lib/python3.9/site-packages/urwid/main_loop.py", line 1494, in run reraise(*exc_info) File "~/.pyenv/versions/3.9.2/lib/python3.9/site-packages/urwid/compat.py", line 58, in reraise raise value File "~/.pyenv/versions/3.9.2/lib/python3.9/asyncio/tasks.py", line 256, in __step result = coro.send(None) File "~/.pyenv/versions/3.9.2/lib/python3.9/site-packages/streamglob/tasks.py", line 143, in wait_for_player_exit await state.listings_view.provider.view.preview_all() AttributeError: 'SimpleProviderView' object has no attribute 'preview_all'

I tried some of the other branches, but I either get the same thing or an error about the "away_team" attribute when I try to select a game. Just wanted to see if this was something someone was familiar with before I get too deep into debugging.

@tonycpsu
Copy link
Owner

Yeah, there's a lot of active development of the Urwid TUI interface going on in the main branch right now, and I see that away_team bug in the stable branch as well. I'll try to get MLB working in main soon.

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