Trying to run populate.py

80 views
Skip to first unread message

Oblivio

unread,
Mar 22, 2021, 4:47:01 PM3/22/21
to Jasper Support Forum

I'm flowing the guide and when I try

cd ~/jasper/client
python populate.py

I get flowing error

~/jasper/client $ python populate.py
Traceback (most recent call last):
  File "populate.py", line 6, in <module>
    from pytz import timezone
ImportError: No module named pytz 

I have looked around for i solution but I haven't found one.

ala...@aqorn.com

unread,
Mar 22, 2021, 5:33:39 PM3/22/21
to Jasper Support Forum
Try: $ pip install pytz

//adam

ala...@aqorn.com

unread,
Mar 22, 2021, 5:35:18 PM3/22/21
to Jasper Support Forum
Also make sure you're following the most recent/updated guide: https://github.com/aplawson/jasperbuster

On Monday, March 22, 2021 at 1:47:01 PM UTC-7 Oblivio wrote:

Oblivio

unread,
Mar 23, 2021, 9:24:29 AM3/23/21
to Jasper Support Forum
Yes it worked better. 
But now I get an error when starting jasper
Do anyone know what this is?

~/jasper $ ./jasper.py
*******************************************************
*             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 109, in __init__
    stt_passive_engine_class.get_passive_instance(),
  File "/home/pi/jasper/client/stt.py", line 48, in get_passive_instance
    return cls.get_instance('keyword', phrases)
  File "/home/pi/jasper/client/stt.py", line 34, in get_instance
    config = cls.get_config()
  File "/home/pi/jasper/client/stt.py", line 149, in get_config
    config['hmm_dir'] = profile['pocketsphinx']['hmm_dir']
TypeError: 'NoneType' object has no attribute '__getitem__'

I'm a completely new raspberry. I just got my first one 4 days ago.
so I don't understand so much yet but I try to learn
Reply all
Reply to author
Forward
0 new messages