Expect module throwing up unknown error

My playbook is

- name: configuring stamp pdf batch
  expect:
   command: ./install.sh
   responses:
    'This will install stamppdf on your system. Do you want to continue[y/N]?': y
    '--More--': \r
    '(?i)Do you agree with this copyright\? \[y/N\]': y
    'AP_FONT_DIR [/usr/local/fonts]': y
    'Now you must enter a valid registration number': '{{ stamp_pdf_key }}'
   echo: yes
  args:
   chdir: '{{ dest_dir }}/StampPDFBatch_60_L26_64'
  become: yes

The error i am getting is