dhruvramani / Terminal-on-FB-Messenger

Allows user to take full control of the terminal of their computer through Facebook's messaging service.
http://dhruvramani.github.io/Terminal-on-FB-Messenger/
407 stars 58 forks source link

Getting list index out of range error #11

Closed vivekaltruist closed 8 years ago

vivekaltruist commented 8 years ago

Hi, I am getting the following error:

Loading...

Traceback (most recent call last):
  File "/Users/labuser/main.py", line 187, in <module>
    init()
  File "/Users/labuser/main.py", line 170, in init
    replyButton=[x for x in driver.find_elements_by_tag_name('input') if x.get_attribute('value') == 'Reply'][0]
IndexError: list index out of range
dhruvramani commented 8 years ago

This is most probably dude to the page not loading properly, and thus selenium is not able to find the reply button. Please make sure your net connection is decent enough, and is the error occurring every time your run the program?

vivekaltruist commented 8 years ago

I ran it again and its working now.

prk54 commented 7 years ago

Hi, I am getting the following error:

`Loading...

Traceback (most recent call last):
  File "/Users/labuser/main.py", line 187, in <module>
    init()
  File "/Users/labuser/main.py", line 170, in init
    replyButton=[x for x in driver.find_elements_by_tag_name('input') if x.get_attribute('value') == 'Reply'][0]
IndexError: list index out of range`
dhruvramani commented 7 years ago

Hey Prateek,

Yes you might be getting that error, as FB has changed the messaging platform totally. I'll have to modify the script to adhere to the changes. But currently I am off FB and don't plan to go back anytime soon.

Thanks, Dhruv

On Apr 14, 2017 12:43 AM, "prateek lalwani" notifications@github.com wrote:

Hi, I am getting the following error:

`Loading...

Traceback (most recent call last): File "/Users/labuser/main.py", line 187, in init() File "/Users/labuser/main.py", line 170, in init replyButton=[x for x in driver.find_elements_by_tag_name('input') if x.get_attribute('value') == 'Reply'][0] IndexError: list index out of range`

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dhruvramani/Terminal-on-FB-Messenger/issues/11#issuecomment-293995410, or mute the thread https://github.com/notifications/unsubscribe-auth/AIGeKhX0WiKzX1FpRWeaPpAV8tAQ43oHks5rvnPTgaJpZM4Hhe1t .

Ravichandra-C commented 7 years ago

Hi Dhruv,

Can I look into that and see if I can Fix it?

Regards, Ravi.

On Fri, Apr 14, 2017 at 12:46 AM, Dhruv Ramani notifications@github.com wrote:

Hey Prateek,

Yes you might be getting that error, as FB has changed the messaging platform totally. I'll have to modify the script to adhere to the changes. But currently I am off FB and don't plan to go back anytime soon.

Thanks, Dhruv

On Apr 14, 2017 12:43 AM, "prateek lalwani" notifications@github.com wrote:

Hi, I am getting the following error:

`Loading...

Traceback (most recent call last): File "/Users/labuser/main.py", line 187, in init() File "/Users/labuser/main.py", line 170, in init replyButton=[x for x in driver.find_elements_by_tag_name('input') if x.get_attribute('value') == 'Reply'][0] IndexError: list index out of range`

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dhruvramani/Terminal-on-FB-Messenger/issues/11# issuecomment-293995410, or mute the thread https://github.com/notifications/unsubscribe-auth/ AIGeKhX0WiKzX1FpRWeaPpAV8tAQ43oHks5rvnPTgaJpZM4Hhe1t .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dhruvramani/Terminal-on-FB-Messenger/issues/11#issuecomment-293996101, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ-6iA5JqmBi3vqt-5HHDXp1sE-qmwBhks5rvnR8gaJpZM4Hhe1t .

dhruvramani commented 7 years ago

Hey Ravi, Please feel free to work on it. I won't be getting time to work on it myself anytime soon.

Ravichandra-C commented 7 years ago

Awesome,

Thanks Mate :-)

Regards, Ravi.

On Fri, Apr 21, 2017 at 12:27 PM, Dhruv Ramani notifications@github.com wrote:

Hey Ravi, Please feel free to work on it. I won't be getting time to work on it myself anytime soon.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dhruvramani/Terminal-on-FB-Messenger/issues/11#issuecomment-296098479, or mute the thread https://github.com/notifications/unsubscribe-auth/AQ-6iFAyS0fydlaTWM3m7Tk2DW5e_PTdks5ryFNIgaJpZM4Hhe1t .