extras/check_dependencies

415 views
Skip to first unread message

Alexander Gorodetski

unread,
Dec 13, 2016, 11:12:47 AM12/13/16
to kaldi-help
something is wrong with this script... I get following message

extras/check_dependencies.sh: we recommend that you run (our best guess):
 sudo apt-get install  python2.7


even though python2.7 is installed on my computer....

Alexander Gorodetski

unread,
Dec 13, 2016, 11:16:56 AM12/13/16
to kaldi-help
I beleive that following line

add_packages python2.7 python2.7 python2.7

should be replaced to 

add_packages python python python

If one install python2.7 (for example apt-get install python2.7) then when you run command "which python" you do not see it installed... Only "which python2.7" works in this case....

Daniel Povey

unread,
Dec 13, 2016, 2:11:30 PM12/13/16
to kaldi-help, Jan Trmal
Hm.

Looks like you're right...
Per the following:
https://wiki.ubuntu.com/Python/3
it looks like there is no plan for /usr/bin/python to point to python3.

Yenda, perhaps you could make the suggested change?
I have verified this for Debian only-- not sure on red hat, whether
this would be the right thing.


Dan
> --
> You received this message because you are subscribed to the Google Groups
> "kaldi-help" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kaldi-help+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Jan Trmal

unread,
Dec 15, 2016, 3:50:20 AM12/15/16
to kaldi-help
yes, I will look into it.
y.


> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+unsubscribe@googlegroups.com.

Jan Trmal

unread,
Dec 21, 2016, 9:14:34 AM12/21/16
to kaldi-help
guys, apologies for reviving this, but from the ubuntu page it is not clear to me that the package "python" will always install python2.7
It merely says that the system command "python" will always point to python 2.7 (assuming it exists). 
Also, given the fact that python is just a dependency-package and installs the latest version, which "depends on Debian's default Python version (currently v2.7)." (see https://packages.debian.org/stable/python/python)
it seems to me from the wording that python package could/will in the future point to python3
Also, as I don't have an easy access to debian/ubuntu machine with root, are we sure that python2.7 package does not install the python symlink and it's what "python" does? I downloaded and unpacked the deb and it _might_ be changing the link (using update-alternatives) but I wonder if that just fixed some inconsistent state Alexander's system was in?

Anyway -- I'm ready to push the suggested fix, but I'm not that convinced it will be doing what it's supposed to do.
y.



> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+unsubscribe@googlegroups.com.

anand

unread,
Dec 21, 2016, 10:31:04 AM12/21/16
to kaldi-help
Unless the symlink (python) was manually deleted, the error "python2.7 is not installed" shouldn't show up if python2.7 was installed.  The script checks for the existence of 'python' in the PATH before checking for the version. AFAIK the symlink python should point to the default version of python (either 2.7 or 3.x)


> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.

Daniel Povey

unread,
Dec 21, 2016, 5:09:12 PM12/21/16
to kaldi-help
Yenda, I found a page (I may have sent the link) which confirmed that
the Debian and Ubuntu projects plan, for the forseeable future, to
make 'python' continue to point to python2.7, and python3 will be
explicitly called as python3.
So I think you can assume python -> python2.7. They can't of course
guarantee this for all time.

Dan
Reply all
Reply to author
Forward
0 new messages