Home Forums Software Development tuple index out of range Error

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21510
    Chanyoung
    Participant

    hi, guys!
    I’m following Python-Step by Step Guide. but it gives the following error:

    Traceback (most recent call last):
      File "C:/Users/Inhun/Desktop/tobii/main.py", line 7, in <module>
        my_eyetracker = found_eyetrackers[0]
    IndexError: tuple index out of range
    

    here’s my code:

    import tobii_research as tr
    import time
    
    found_eyetrackers = tr.find_all_eyetrackers()
    
    my_eyetracker = found_eyetrackers[0]
    print("Address: " + my_eyetracker.address)
    print("Model: " + my_eyetracker.model)
    print("Name (It's OK if this is empty): " + my_eyetracker.device_name)
    print("Serial number: " + my_eyetracker.serial_number)

    I appreciate any help or advice.
    Thank you

    #21517
    Grant [Tobii]
    Keymaster

    Hi @catfish and thanks for your query. The Tobii Pro SDK is part of the Tobii Pro business department.

    This forum is intended for support with the Tobii Tech Consumer level eye trackers (ET5, 4C, etc) and their associated SDK’s.

    Please get in touch with Tobii Pro Support team directly @ http://www.tobiipro.com/contact/contact-support/ for an
    answer to your query.

    Apologies for the inconvenience and thanks for your understanding. Best Wishes.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.