-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'dict' object has no attribute 'iteritems' #5
Comments
Please check the Requirements section of this repo. For the iterItems problem, see e.g. http://docs.buildbot.net/0.9.4/developer/py3-compat.html |
Thanks for the reply, how. do i ensure that this uses python 2 to run? |
I change the python path in vi /opt/conda/bin/kaldi-adapt-lm frpm the default python to python 2. Howver i am getting this error kaldi-adapt-lm /home/jupyter/kaldi-generic-en-tdnn_fl-r20190609 lm.arpa mymodel -w=/home/jupyter/lm_model2 -f -v |
You probably must repeat some preparation steps as needed. A fresh install after installing python-is-python2 sometimes work. |
I tried installing everything from scratch using python 2.7 sudo python2.7 setup.py install running install Installed /usr/local/lib/python2.7/dist-packages/kaldi_adapt_lm-0.1.4-py2.7.egg But cython is already installed pip2 install cython |
Hi, I was able to install kaldi-lm-adpat. After running the command on my sentences.txt with the Zamia pretrained model, I got this error
0609 lm.arpa mymodel -w=/home/jupyter/lm_model -f
INFO:root:rm -rf =/home/jupyter/lm_model
INFO:root:copying dictionary and phoneme sets from original model...
INFO:root:creating skeleton destination model...
Traceback (most recent call last):
File "/opt/conda/bin/kaldi-adapt-lm", line 4, in
import('pkg_resources').run_script('kaldi-adapt-lm==0.1.4', 'kaldi-adapt-lm')
File "/opt/conda/lib/python3.7/site-packages/pkg_resources/init.py", line 665, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/opt/conda/lib/python3.7/site-packages/pkg_resources/init.py", line 1463, in run_script
exec(code, namespace, namespace)
File "/opt/conda/lib/python3.7/site-packages/kaldi_adapt_lm-0.1.4-py3.7.egg/EGG-INFO/scripts/kaldi-adapt-lm", line
93, in
kaldi_adapt_lm (kaldi_root, src_model_dir, lm_fn, work_dir, dst_model_name)
File "/opt/conda/lib/python3.7/site-packages/kaldi_adapt_lm-0.1.4-py3.7.egg/kaldiadaptlm/init.py", line 100, i
n kaldi_adapt_lm
misc.render_template ('%s/kaldi-path.sh.template' % tmpl_dir, '%s/path.sh' % work_dir, kaldi_root=kaldi_root)
File "/opt/conda/lib/python3.7/site-packages/py_nltools-0.5.0-py3.7.egg/nltools/misc.py", line 307, in render_temp
late
for key, value in kwargs.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
The text was updated successfully, but these errors were encountered: