[ python-Bugs-1178624 ] 2.4.1 breaks pyTTS

SourceForge.net noreply at sourceforge.net
Thu Apr 7 22:33:31 CEST 2005


Bugs item #1178624, was opened at 2005-04-07 17:25
Message generated for change (Comment added) made by doerwalter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1178624&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Dieter Deyke (deyke)
Assigned to: Nobody/Anonymous (nobody)
Summary: 2.4.1 breaks pyTTS

Initial Comment:
On my Windows XP PRO SP2 system, the combination of

Python 2.4, pywin32-203.win32-py2.4, and
pyTTS-3.0.win32-py2.4 did work. Updating to 2.4.1 broke
pyTTS. Removing everythin, then installing 2.4.1,
win32, and pyTTS resulted in the same failure. Removing
everything again, and installing 2.4, win32, and pyTTS
fixed it again.

The problem is that with 2.4.1 pyTTS reported that
"SAPI" was not supported. Looking deeper I saw that it
got a syntax error reading a generated com interface file.

----------------------------------------------------------------------

Comment By: Walter Dörwald (doerwalter)
Date: 2005-04-07 22:33

Message:
Logged In: YES 
user_id=89016

There's no uploaded file!  You have to check the
checkbox labeled "Check to Upload & Attach File"
when you upload a file.

Please try again.

(This is a SourceForge annoyance that we can do
nothing about. :-( )

----------------------------------------------------------------------

Comment By: Dieter Deyke (deyke)
Date: 2005-04-07 18:49

Message:
Logged In: YES 
user_id=132928

I attached the generated interface file. Loading this file
into python by itself does NOT generate an error, but going
into the pyTTS dir, starting python, and typing "import
sapi" shows:

C:\Python24\Lib\site-packages\pyTTS>python
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more
information.
>>> import sapi
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\Python24\lib\site-packages\pyTTS\sapi.py", line
10, in ?
    sapi_mod =
gencache.EnsureModule('{C866CA3A-32F7-11D2-9602-00C04F8EE628}',
0
, 5, 0)
  File
"C:\Python24\lib\site-packages\win32com\client\gencache.py",
line 393, in
 EnsureModule
    module = GetModuleForTypelib(typelibCLSID, lcid, major,
minor)
  File
"C:\Python24\lib\site-packages\win32com\client\gencache.py",
line 258, in
 GetModuleForTypelib
    mod = _GetModule(modName)
  File
"C:\Python24\lib\site-packages\win32com\client\gencache.py",
line 629, in
 _GetModule
    mod = __import__(mod_name)
  File
"C:\Python24\lib\site-packages\win32com\gen_py\C866CA3A-32F7-11D2-9602-00
C04F8EE628x0x5x0.py", line 1192
    """Add"""
    ^
SyntaxError: invalid syntax
>>>


----------------------------------------------------------------------

Comment By: Walter Dörwald (doerwalter)
Date: 2005-04-07 17:56

Message:
Logged In: YES 
user_id=89016

Can you post the generated inferface file? Does this file
contain long lines? Does it use a PEP 263 encoding directive?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1178624&group_id=5470


More information about the Python-bugs-list mailing list