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

getting following errors after pressing enter #46

Closed
Sagar19RaoRane opened this issue Feb 7, 2019 · 3 comments
Closed

getting following errors after pressing enter #46

Sagar19RaoRane opened this issue Feb 7, 2019 · 3 comments

Comments

@Sagar19RaoRane
Copy link

``Display Stack Overflow results? [Y/n]

Traceback (most recent call last):
File "/home/sagar/.local/bin/rebound", line 11, in
sys.exit(main())
File "/home/sagar/.local/lib/python3.7/site-packages/rebound/rebound.py", line 871, in main
App(search_results) # Opens interface
File "/home/sagar/.local/lib/python3.7/site-packages/rebound/rebound.py", line 733, in init
self.main_loop.run()
File "/home/sagar/.local/lib/python3.7/site-packages/urwid/main_loop.py", line 286, in run
self._run()
File "/home/sagar/.local/lib/python3.7/site-packages/urwid/main_loop.py", line 384, in _run
self.event_loop.run()
File "/home/sagar/.local/lib/python3.7/site-packages/urwid/main_loop.py", line 788, in run
self._loop()
File "/home/sagar/.local/lib/python3.7/site-packages/urwid/main_loop.py", line 825, in _loop
self._watch_filesfd
File "/home/sagar/.local/lib/python3.7/site-packages/urwid/raw_display.py", line 404, in
event_loop, callback, self.get_available_raw_input())
File "/home/sagar/.local/lib/python3.7/site-packages/urwid/raw_display.py", line 502, in parse_input
callback(processed, processed_codes)
File "/home/sagar/.local/lib/python3.7/site-packages/urwid/main_loop.py", line 411, in _update
self.process_input(keys)
File "/home/sagar/.local/lib/python3.7/site-packages/urwid/main_loop.py", line 517, in process_input
something_handled |= bool(self.unhandled_input(k))
File "/home/sagar/.local/lib/python3.7/site-packages/urwid/main_loop.py", line 563, in unhandled_input
return self._unhandled_input(input)
File "/home/sagar/.local/lib/python3.7/site-packages/rebound/rebound.py", line 742, in handle_input
question_title, question_desc, question_stats, answers = get_question_and_answers(url)
File "/home/sagar/.local/lib/python3.7/site-packages/rebound/rebound.py", line 307, in get_question_and_answers
question_stats = soup.find_all("span", class
="vote-count-post")[0].get_text() # Vote count
IndexError: list index out of range

thegraycoder pushed a commit to thegraycoder/rebound that referenced this issue Apr 30, 2019
thegraycoder added a commit to thegraycoder/rebound that referenced this issue Apr 30, 2019
@pixies
Copy link

pixies commented May 31, 2019

I'm installing that current version, but error persist, how do I help you?
By the way, I loved the application!
error log in MacOS
...
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urwid/main_loop.py", line 563, in unhandled_input
return self._unhandled_input(input)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rebound/rebound.py", line 742, in handle_input
question_title, question_desc, question_stats, answers = get_question_and_answers(url)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/rebound/rebound.py", line 307, in get_question_and_answers
question_stats = soup.find_all("span", class
="vote-count-post")[0].get_text() # Vote count
IndexError: list index out of range

@arujbansal
Copy link

Can I work on this?

@thegraycoder
Copy link

@arujbansal please check PR #50. I think it fixes the issue!

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

5 participants