Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Dennis Lee Bieber Newsgroups: comp.lang.python Subject: Re: import module pyttsx in windows IDLE failed Date: Mon, 16 Nov 2015 20:02:08 -0500 Organization: IISS Elusive Unicorn Lines: 29 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 2MlBMUc4hOfqbKlsLurc3ASrSpb4hF1zXCW/bpzIe18Q== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:IDLE': 0.04; 'error:': 0.05; 'implies': 0.09; 'message-id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'specific.': 0.09; 'subject:module': 0.09; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'subject:failed': 0.16; 'subject:import': 0.16; 'subject:windows': 0.16; 'url:home': 0.18; 'windows': 0.20; '2015': 0.20; 'skip:" 30': 0.20; 'not,': 0.22; 'install,': 0.22; 'import': 0.24; '(most': 0.24; 'mon,': 0.24; 'module': 0.25; 'install': 0.25; 'header:X-Complaints-To:1': 0.26; 'wonder': 0.27; '(maybe': 0.29; 'path,': 0.29; 'windows.': 0.33; 'file': 0.34; 'running': 0.34; 'attempt': 0.35; 'nov': 0.35; 'skip:> 10': 0.35; 'url:org': 0.36; 'modules': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'url:en': 0.39; 'to:addr:python.org': 0.40; 'engine': 0.62; 'url:readthedocs': 0.84; 'dennis': 0.91; 'url:latest': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: adsl-108-79-217-215.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98904 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 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 > 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/