question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: __init__() got an unexpected keyword argument 'hmm'

See original GitHub issue

Hi, have this error, need some help:

$ ./jasper.py --debug
*******************************************************
*             JASPER - THE TALKING COMPUTER           *
* (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *
*******************************************************
DEBUG:client.diagnose:Checking network connection to server 'www.google.com'...
DEBUG:client.diagnose:Network connection working
DEBUG:__main__:Trying to read config file: '/home/user/.jasper/profile.yml'
DEBUG:client.diagnose:Checking python import 'pocketsphinx'...
DEBUG:client.diagnose:Python package 'pocketsphinx' found: '/usr/lib/python2.7/site-packages/pocketsphinx/__init__.py'
DEBUG:client.diagnose:Checking executable 'aplay'...
DEBUG:client.diagnose:Executable 'aplay' found: '/usr/bin/aplay'
DEBUG:client.diagnose:Checking executable 'flite'...
DEBUG:client.diagnose:Executable 'flite' found: '/usr/bin/flite'
DEBUG:client.vocabcompiler:compiled_revision is 'bb74ae36d130ef20de710e3a77b43424b8fa774f'
ERROR:root:Error occured!
Traceback (most recent call last):
  File "./jasper.py", line 143, in <module>
    app = Jasper()
  File "./jasper.py", line 106, in __init__
    stt_passive_engine_class.get_passive_instance(),
  File "/home/user/jasper/client/stt.py", line 48, in get_passive_instance
    return cls.get_instance('keyword', phrases)
  File "/home/user/jasper/client/stt.py", line 42, in get_instance
    instance = cls(**config)
  File "/home/user/jasper/client/stt.py", line 126, in __init__
    **vocabulary.decoder_kwargs)
TypeError: __init__() got an unexpected keyword argument 'hmm'

my profile:

carrier: ''
first_name: xxx
gmail_password: ''
last_name: yyy
phone_number: ''
prefers_email: true
stt_engine: sphinx
pocketsphinx:
  fst_model: '/home/user/g014b2b/g014b2b.fst'
  hmm_dir: '/usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k'
timezone: Europe/Prague
tts_engine: flite-tts
flite-tts:
  voice: 'slt'

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
d3imcommented, Apr 7, 2016

Seems to be $PATH problem. Now it’s running but I need to test it if it understands what I’m trying to say 😃

1reaction
d3imcommented, Apr 5, 2016

I’m using pocketsphinx 0.8 I’m also on Gentoo and pocketsphinx and sphinxbase was installed via portage package system with python use flag enabled (https://packages.gentoo.org/packages/app-accessibility/pocketsphinx).

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: __init__() got an unexpected keyword ... - GitHub
I am trying to fit my GMMHMM according to. model = GMMHMM(n_components=3, n_mix=4, covariance_type = 'full', means_prior = means, ...
Read more >
python - TypeError: __init__() got an unexpected keyword ...
hello I am trying to run a project with python 3.8 and django 3.1.7 and I get the following error: Watching for file...
Read more >
TypeError: __init__() got an unexpected keyword argument ...
The TypeError: init () got an unexpected keyword argument 'unbound_message' occurs when using an old version of Werkzeug with a more recent ...
Read more >
got an unexpected keyword argument 'dtype' - You.com
with autocast(dtype=self.precision): TypeError: __init()__ got an unexpected keyword argument 'dtype'. Open side panel. Error: astype() got an unexpected ...
Read more >
Flask got an unexpected keyword argument path
Dec 31, 2021 · TypeError:_init_() got an unexpected keyword argument iam_api_keyI am getting the errors in Flask of "TypeError: init() got an unexpected ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found