Error when Launching Jasper.

216 views
Skip to first unread message

Parapraxis Productions

unread,
Aug 18, 2016, 11:04:12 PM8/18/16
to Jasper Support Forum
When i launch Jasper i get this...

*******************************************************
*             JASPER - THE TALKING COMPUTER           *
* (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *
*******************************************************
ERROR:root:Error occured!
Traceback (most recent call last):
  File "./jasper.py", line 143, in <module>
    app = Jasper()
  File "./jasper.py", line 77, in __init__
    self.config = yaml.safe_load(f)
  File "/usr/local/lib/python2.7/dist-packages/yaml/__init__.py", line 93, in sa                                                                                                                                                             fe_load
    return load(stream, SafeLoader)
  File "/usr/local/lib/python2.7/dist-packages/yaml/__init__.py", line 71, in lo                                                                                                                                                             ad
    return loader.get_single_data()
  File "/usr/local/lib/python2.7/dist-packages/yaml/constructor.py", line 37, in                                                                                                                                                              get_single_data
    node = self.get_single_node()
  File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 36, in ge                                                                                                                                                             t_single_node
    document = self.compose_document()
  File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 55, in co                                                                                                                                                             mpose_document
    node = self.compose_node(None, None)
  File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 84, in co                                                                                                                                                             mpose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 133, in c                                                                                                                                                             ompose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 64, in co                                                                                                                                                             mpose_node
    if self.check_event(AliasEvent):
  File "/usr/local/lib/python2.7/dist-packages/yaml/parser.py", line 98, in chec                                                                                                                                                             k_event
    self.current_event = self.state()
  File "/usr/local/lib/python2.7/dist-packages/yaml/parser.py", line 449, in par                                                                                                                                                             se_block_mapping_value
    if not self.check_token(KeyToken, ValueToken, BlockEndToken):
  File "/usr/local/lib/python2.7/dist-packages/yaml/scanner.py", line 116, in ch                                                                                                                                                             eck_token
    self.fetch_more_tokens()
  File "/usr/local/lib/python2.7/dist-packages/yaml/scanner.py", line 257, in fe                                                                                                                                                             tch_more_tokens
    % ch.encode('utf-8'), self.get_mark())
ScannerError: while scanning for the next token
found character '\t' that cannot start any token
  in "/home/pi/.jasper/profile.yml", line 18, column 1
lq(55)(pi@raspberrypi)-(Jobs: 0)-(10 files, 80Kb)


Any Idea what part i stuffed up? Or does anyone know a good guide i can follow and start again? 

Many Thanks Lachlan

Matthew Curry

unread,
Aug 27, 2016, 4:27:50 PM8/27/16
to Jasper Support Forum
its telling you exactly where the problem is...

If that line is a key, try putting it in 'key'

Vikas Ahlawat

unread,
Dec 20, 2016, 2:49:00 PM12/20/16
to Jasper Support Forum
Hi Matthew, 
I m also facing the same problme, please advice see my error :-

File "/usr/local/lib/python2.7/dist-packages/yaml/scanner.py", line 257, in fetch_more_tokens
    % ch.encode('utf-8'), self.get_mark())
ScannerError: while scanning for the next token
found character '\t' that cannot start any token
  in "/home/pi/.jasper/profile.yml", line 11, column 1

and my profile.yml :-

arrier: GSM
first_name: Vikas
gmail_address: 321vka"gmail.com
gmail_password: '8130358070'
last_name: Ahlawat
location: Dellhi/India
phone_number: '918130358070'
prefers_email: true
stt_engine: sphinx
pocketsphinx:
        'fst_model': '../phonetisaurus/g014b2b.fst'
        'hmm_dir': '/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k'
timezone: UTC



I am trying to run jasper from the last one week, every time get new error. 

Thank you
Vikas




Vikas Ahlawat

unread,
Dec 20, 2016, 3:00:02 PM12/20/16
to Jasper Support Forum
full log :- 
*******************************************************
*             JASPER - THE TALKING COMPUTER           *
* (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *
*******************************************************
ERROR:root:Error occured!
Traceback (most recent call last):
  File "jasper.py", line 146, in <module>
    app = Jasper()
  File "jasper.py", line 80, in __init__
    self.config = yaml.safe_load(f)
  File "/usr/local/lib/python2.7/dist-packages/yaml/__init__.py", line 93, in safe_load
    return load(stream, SafeLoader)
  File "/usr/local/lib/python2.7/dist-packages/yaml/__init__.py", line 71, in load
    return loader.get_single_data()
  File "/usr/local/lib/python2.7/dist-packages/yaml/constructor.py", line 37, in get_single_data
    node = self.get_single_node()
  File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 55, in compose_document
    node = self.compose_node(None, None)
  File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
    node = self.compose_mapping_node(anchor)
  File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 133, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 64, in compose_node
    if self.check_event(AliasEvent):
  File "/usr/local/lib/python2.7/dist-packages/yaml/parser.py", line 98, in check_event
    self.current_event = self.state()
  File "/usr/local/lib/python2.7/dist-packages/yaml/parser.py", line 449, in parse_block_mapping_value
    if not self.check_token(KeyToken, ValueToken, BlockEndToken):
  File "/usr/local/lib/python2.7/dist-packages/yaml/scanner.py", line 116, in check_token
    self.fetch_more_tokens()

Mike Pippin

unread,
Dec 21, 2016, 7:09:08 AM12/21/16
to Jasper Support Forum
'\t' is the tab character, replace all tabs in the profile.yaml with spaces

Michel Gouzee

unread,
Dec 21, 2016, 8:53:54 AM12/21/16
to Jasper Support Forum
Is there a command to do this automatically or do I have to guess what is a tab and what is a space? ._.

Matthew Curry

unread,
Dec 21, 2016, 10:59:47 AM12/21/16
to Jasper Support Forum
no need, just put the key in 'key'
Reply all
Reply to author
Forward
0 new messages