Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
speech-dispatcher components won't start, python error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
penetrode
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 285
Location: Calgary, Alberta

PostPosted: Mon Jul 05, 2010 10:50 pm    Post subject: speech-dispatcher components won't start, python error Reply with quote

When I try to run spd-conf, the speech-dispatcher configuration tool, I get this message:

Code:
thinkpad speech-dispatcher # spd-conf -d
Traceback (most recent call last):
  File "/usr/bin/spd-conf", line 6, in <module>
    import speechd_config
  File "/usr/lib/python2.6/site-packages/speechd_config/__init__.py", line 17, in <module>
    from config import *
  File "/usr/lib/python2.6/site-packages/speechd_config/config.py", line 28, in <module>
    import paths
ImportError: No module named paths


Ever since the new python, I am getting breakage like this. I have run python-updater twice, without effect.

I am still using the current and recommended 2.6:

Code:
thinkpad speech-dispatcher # eselect python list
Available Python interpreters:
  [1]   python2.6 *
  [2]   python3.1
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Tue Jul 06, 2010 12:33 am    Post subject: Reply with quote

Now for the tricky part. Are you able to see?

I was looking through the code online at the website. paths contains
Quote:
Configuration and sound data paths
It does not seem to be a file in their git tree. Looking through the documentation it might generate this file automatically. Here is a part of the documentation that says to run it without the -d option to run some troubleshooting and configuration setup. Perhaps after running python-updater it was re-installed and lost it's configuration file named "paths"
Quote:
Configure Speech Dispatcher
You can skip this step in most cases. If you however want to setup your own configuration of the Dispatchers default values, the easiest way to do so is through the spd-conf configuration script. It will guide you through the basic configuration. It will also subsequently perform some diagnostics tests and offer some limited help with troubleshooting. Just execute


spd-conf


If that does not work then I would try re-installing it, then run spd-conf again.
Code:
emerge -1v app-accessibility/speech-dispatcher

to see if that fixes it.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
penetrode
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 285
Location: Calgary, Alberta

PostPosted: Tue Jul 06, 2010 7:54 am    Post subject: Reply with quote

That didn't fix it.

Neither did installing festival-freebsoft-utils, as instructed by the speech-dispatcher ebuild.

Code:
 $ eix speech-dispatcher
[I] app-accessibility/speech-dispatcher
     Available versions:  0.6.6 0.6.7 ~0.6.7-r1 {alsa +espeak flite nas pulseaudio python}
     Installed versions:  0.6.7(09:45:43 06.07.2010)(alsa espeak python -flite -nas -pulseaudio)
     Homepage:            http://www.freebsoft.org/speechd
     Description:         speech-dispatcher speech synthesis interface


This has to be a Python problem. I thought the paths module was part of Python?
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Tue Jul 06, 2010 2:08 pm    Post subject: Reply with quote

No, paths, is not a python supplied module. os.path is. "paths" is specific to speech-dispatcher and from what I saw in the code, it holds constants for where different files are located. I think you'll have to ask directly upstream, as I said, I looked through the code in upstreams git repo but did not see that file anywhere. It may be generated by the autotools or perhaps it got missed being tracked and added to this version ( I know I've done that in the past). Check the /var/db/pkg/app-accessibility/speech-dispatcher-0.6.7/CONTENTS file to see if it was installed on your system and if it is where it is located. To be available to python it should be installed in site-packages, if it is in site-packages/spd_conf/... then it was an error in the code "import paths" it should be from "spd_conf.whatever import paths" to match where it is installed.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
penetrode
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 285
Location: Calgary, Alberta

PostPosted: Wed Jul 07, 2010 9:26 am    Post subject: Reply with quote

dol-sen wrote:
Check the /var/db/pkg/app-accessibility/speech-dispatcher-0.6.7/CONTENTS file to see if it was installed on your system and if it is where it is located. To be available to python it should be installed in site-packages, if it is in site-packages/spd_conf/... then it was an error in the code "import paths" it should be from "spd_conf.whatever import paths" to match where it is installed.


I assume that, if it exists, it would have "path" in the filename?
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Wed Jul 07, 2010 2:37 pm    Post subject: Reply with quote

It should have "paths.py" at the end or possibly "paths.so" if it is a c lib. Here is a sample from porthole's CONTENTS.
Code:
/usr
/usr/bin
/usr/bin/porthole
/usr/bin/porthole-2.6
/usr/lib64
/usr/lib64/python2.6
/usr/lib64/python2.6/site-packages
/usr/lib64/python2.6/site-packages/porthole
/usr/lib64/python2.6/site-packages/porthole-0.6.1-py2.6.egg-info
/usr/lib64/python2.6/site-packages/porthole/__init__.py
/usr/lib64/python2.6/site-packages/porthole/_xml
/usr/lib64/python2.6/site-packages/porthole/_xml/__init__.py
/usr/lib64/python2.6/site-packages/porthole/_xml/lang_filter.py
/usr/lib64/python2.6/site-packages/porthole/_xml/xmlmgr.py
/usr...

_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
penetrode
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 285
Location: Calgary, Alberta

PostPosted: Thu Jul 08, 2010 2:06 pm    Post subject: Reply with quote

I built speech dispatcher 0.6.7 rc2 from sources, downloaded from the upstream repository. There, the paths.py is created.

The file only has three lines:

Code:
SPD_CONF_ORIG_PATH="/usr/local/share/speech-dispatcher/conf"
SPD_CONF_PATH="/usr/local/etc/speech-dispatcher"
SPD_SOUND_DATA_PATH="/usr/local/share/sounds/speech-dispatcher"


Given that the ebuild uses those sources, I fail to understand why this file is not being built by portage. I am wondering if the ebuild preconfigures speech dispatcher. I copied over the paths.py file, modified it to match the current paths, and ran spd-conf. After the configuration was done, speech dispatcher didn't work at all anymore. I didn't even get the dummy message.

I am beginning to get the impression that upstream is abandoned, as there hasn't been a new release since 2008. It was recently forked by developers concerned that the project was stagnant. This makes me wonder why the KDE TTS team is using it in the first place.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum