Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98892 > unrolled thread

import module pyttsx in windows IDLE failed

Started byinput/ldompeling@casema.nl
First post2015-11-16 17:12 +0000
Last post2015-11-16 20:02 -0500
Articles 7 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  import module  pyttsx in windows IDLE failed input/ldompeling@casema.nl - 2015-11-16 17:12 +0000
    Re: import module pyttsx in windows IDLE failed MRAB <python@mrabarnett.plus.com> - 2015-11-16 17:28 +0000
      Re: import module pyttsx in windows IDLE failed input/ldompeling@casema.nl - 2015-11-16 17:45 +0000
        Re: import module pyttsx in windows IDLE failed MRAB <python@mrabarnett.plus.com> - 2015-11-16 18:12 +0000
        Re: import module pyttsx in windows IDLE failed Terry Reedy <tjreedy@udel.edu> - 2015-11-16 13:20 -0500
          Re: import module pyttsx in windows IDLE failed input/ldompeling@casema.nl - 2015-11-16 20:03 +0000
            Re: import module pyttsx in windows IDLE failed Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-11-16 20:02 -0500

#98892 — import module pyttsx in windows IDLE failed

Frominput/ldompeling@casema.nl
Date2015-11-16 17:12 +0000
Subjectimport module pyttsx in windows IDLE failed
Message-ID<M7o2y.42200$PO1.15738@fx08.ams1>
When I try to run this module in Windows IDLE I get this message:
How can I solve this problem.

Thanks

Traceback (most recent call last):
  File "C:\raspberrypi\recipe-578839-1.py", line 1, in <module>
    import pyttsx
ImportError: No module named 'pyttsx'

This is what I found on the internet:
-------------------------------------------------------------------
import pyttsx
engine = pyttsx.init()
engine.setProperty('rate', 70)

voices = engine.getProperty('voices')
for voice in voices:
    print ("Using voice:"), repr(voice)
    engine.setProperty('voice', voice.id)
    engine.say("Hi there, how's you ?")
    engine.say("A B C D E F G H I J K L M")
    engine.say("N O P Q R S T U V W X Y Z")
    engine.say("0 1 2 3 4 5 6 7 8 9")
    engine.say("Sunday Monday Tuesday Wednesday Thursday Friday Saturday")
    engine.say("Violet Indigo Blue Green Yellow Orange Red")
    engine.say("Apple Banana Cherry Date Guava")
engine.runAndWait()


-- 
--------------------------------- --- -- -
Posted with NewsLeecher v7.0 Beta 2
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

[toc] | [next] | [standalone]


#98895 — Re: import module pyttsx in windows IDLE failed

FromMRAB <python@mrabarnett.plus.com>
Date2015-11-16 17:28 +0000
SubjectRe: import module pyttsx in windows IDLE failed
Message-ID<mailman.369.1447694899.16136.python-list@python.org>
In reply to#98892
On 2015-11-16 17:12, input/ldompeling@casema.nl wrote:
> When I try to run this module in Windows IDLE I get this message:
> How can I solve this problem.
>
> Thanks
>
> Traceback (most recent call last):
>    File "C:\raspberrypi\recipe-578839-1.py", line 1, in <module>
>      import pyttsx
> ImportError: No module named 'pyttsx'
>
> This is what I found on the internet:
> -------------------------------------------------------------------
> import pyttsx
> engine = pyttsx.init()
> engine.setProperty('rate', 70)
>
> voices = engine.getProperty('voices')
> for voice in voices:
>      print ("Using voice:"), repr(voice)
>      engine.setProperty('voice', voice.id)
>      engine.say("Hi there, how's you ?")
>      engine.say("A B C D E F G H I J K L M")
>      engine.say("N O P Q R S T U V W X Y Z")
>      engine.say("0 1 2 3 4 5 6 7 8 9")
>      engine.say("Sunday Monday Tuesday Wednesday Thursday Friday Saturday")
>      engine.say("Violet Indigo Blue Green Yellow Orange Red")
>      engine.say("Apple Banana Cherry Date Guava")
> engine.runAndWait()
>
>
Have you installed pyttsx?

[toc] | [prev] | [next] | [standalone]


#98896 — Re: import module pyttsx in windows IDLE failed

Frominput/ldompeling@casema.nl
Date2015-11-16 17:45 +0000
SubjectRe: import module pyttsx in windows IDLE failed
Message-ID<xCo2y.42201$PO1.14489@fx08.ams1>
In reply to#98895
In reply to "MRAB" who wrote the following:
Have you installed pyttsx?

No, I did not.
Where can I find pyttsx to install ?

Thanks
---------------------------------------------------------------------
> On 2015-11-16 17:12, input/ldompeling@casema.nl wrote:
> > When I try to run this module in Windows IDLE I get this message:
> > How can I solve this problem.
> > 
> > Thanks
> > 
> > Traceback (most recent call last):
> >    File "C:\raspberrypi\recipe-578839-1.py", line 1, in <module>
> >      import pyttsx
> > ImportError: No module named 'pyttsx'
> > 
> > This is what I found on the internet:
> > -------------------------------------------------------------------
> > import pyttsx
> > engine = pyttsx.init()
> > engine.setProperty('rate', 70)
> > 
> > voices = engine.getProperty('voices')
> > for voice in voices:
> >      print ("Using voice:"), repr(voice)
> >      engine.setProperty('voice', voice.id)
> >      engine.say("Hi there, how's you ?")
> >      engine.say("A B C D E F G H I J K L M")
> >      engine.say("N O P Q R S T U V W X Y Z")
> >      engine.say("0 1 2 3 4 5 6 7 8 9")
> >      engine.say("Sunday Monday Tuesday Wednesday Thursday Friday Saturday")
> >      engine.say("Violet Indigo Blue Green Yellow Orange Red")
> >      engine.say("Apple Banana Cherry Date Guava")
> > engine.runAndWait()
> > 
> > 
> Have you installed pyttsx?




-- 
--------------------------------- --- -- -
Posted with NewsLeecher v7.0 Beta 2
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

[toc] | [prev] | [next] | [standalone]


#98898 — Re: import module pyttsx in windows IDLE failed

FromMRAB <python@mrabarnett.plus.com>
Date2015-11-16 18:12 +0000
SubjectRe: import module pyttsx in windows IDLE failed
Message-ID<mailman.370.1447697576.16136.python-list@python.org>
In reply to#98896
On 2015-11-16 17:45, input/ldompeling@casema.nl wrote:
> In reply to "MRAB" who wrote the following:
> Have you installed pyttsx?
>
> No, I did not.
> Where can I find pyttsx to install ?
>
The first place to look is PyPI. It's here:

https://pypi.python.org/pypi/pyttsx

You might want to look at the links for the homepage and documentation.
That mentions a later version.

> Thanks
> ---------------------------------------------------------------------
>> On 2015-11-16 17:12, input/ldompeling@casema.nl wrote:
>> > When I try to run this module in Windows IDLE I get this message:
>> > How can I solve this problem.
>> >
>> > Thanks
>> >
>> > Traceback (most recent call last):
>> >    File "C:\raspberrypi\recipe-578839-1.py", line 1, in <module>
>> >      import pyttsx
>> > ImportError: No module named 'pyttsx'
>> >
>> > This is what I found on the internet:
>> > -------------------------------------------------------------------
>> > import pyttsx
>> > engine = pyttsx.init()
>> > engine.setProperty('rate', 70)
>> >
>> > voices = engine.getProperty('voices')
>> > for voice in voices:
>> >      print ("Using voice:"), repr(voice)
>> >      engine.setProperty('voice', voice.id)
>> >      engine.say("Hi there, how's you ?")
>> >      engine.say("A B C D E F G H I J K L M")
>> >      engine.say("N O P Q R S T U V W X Y Z")
>> >      engine.say("0 1 2 3 4 5 6 7 8 9")
>> >      engine.say("Sunday Monday Tuesday Wednesday Thursday Friday Saturday")
>> >      engine.say("Violet Indigo Blue Green Yellow Orange Red")
>> >      engine.say("Apple Banana Cherry Date Guava")
>> > engine.runAndWait()
>> >
>> >
>> Have you installed pyttsx?
>

[toc] | [prev] | [next] | [standalone]


#98899 — Re: import module pyttsx in windows IDLE failed

FromTerry Reedy <tjreedy@udel.edu>
Date2015-11-16 13:20 -0500
SubjectRe: import module pyttsx in windows IDLE failed
Message-ID<mailman.371.1447698071.16136.python-list@python.org>
In reply to#98896
On 11/16/2015 12:45 PM, input/ldompeling@casema.nl wrote:
> In reply to "MRAB" who wrote the following:
> Have you installed pyttsx?
>
> No, I did not.
> Where can I find pyttsx to install ?

Let pip find it (its on pypi).
On a command line, enter 'pip install pyttsx'

-- 
Terry Jan Reedy

[toc] | [prev] | [next] | [standalone]


#98902 — Re: import module pyttsx in windows IDLE failed

Frominput/ldompeling@casema.nl
Date2015-11-16 20:03 +0000
SubjectRe: import module pyttsx in windows IDLE failed
Message-ID<mEq2y.106808$ZM.8705@fx11.ams1>
In reply to#98899
Now I get this error:

Traceback (most recent call last):
  File "C:\raspberrypi\recipe-578839-1.py", line 1, in <module>
    import pyttsx
  File "C:\Users\loek\AppData\Local\Programs\Python\Python35\lib\site-packages\pyttsx\__init__.py", line 18, in <module>
    from engine import Engine
ImportError: No module named 'engine'
===========================================================================================================================



In reply to "Terry Reedy" who wrote the following:

> On 11/16/2015 12:45 PM, input/ldompeling@casema.nl wrote:
> > In reply to "MRAB" who wrote the following:
> > Have you installed pyttsx?
> > 
> > No, I did not.
> > Where can I find pyttsx to install ?
> 
> Let pip find it (its on pypi).
> On a command line, enter 'pip install pyttsx'
> 
> --
> Terry Jan Reedy




-- 
--------------------------------- --- -- -
Posted with NewsLeecher v7.0 Beta 2
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

[toc] | [prev] | [next] | [standalone]


#98904 — Re: import module pyttsx in windows IDLE failed

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2015-11-16 20:02 -0500
SubjectRe: import module pyttsx in windows IDLE failed
Message-ID<mailman.374.1447722211.16136.python-list@python.org>
In reply to#98902
On Mon, 16 Nov 2015 20:03:30 GMT, input/ldompeling@casema.nl declaimed the
following:

>Now I get this error:
>
>Traceback (most recent call last):
>  File "C:\raspberrypi\recipe-578839-1.py", line 1, in <module>

	Given the "raspberrypi" in that path, I have to wonder if these modules
might not be specific to the hardware of running on an R-PI, and not on
Windows.

>    import pyttsx
>  File "C:\Users\loek\AppData\Local\Programs\Python\Python35\lib\site-packages\pyttsx\__init__.py", line 18, in <module>
>    from engine import Engine
>ImportError: No module named 'engine'

	If not, you are going to have attempt to install all the dependencies
of the packages...

	Though based upon the documentation, you may have a corrupted install,
since
http://pyttsx.readthedocs.org/en/latest/engine.html#the-engine-factory
implies Windows use (maybe you don't have SAPI5 installed? That may be OS
specific.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web