This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: 2.4.1 breaks pyTTS
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: deyke, doerwalter
Priority: normal Keywords:

Created on 2005-04-07 15:25 by deyke, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg24958 - (view) Author: Dieter Deyke (deyke) Date: 2005-04-07 15:25
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.
msg24959 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2005-04-07 15:56
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?
msg24960 - (view) Author: Dieter Deyke (deyke) Date: 2005-04-07 16:49
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
>>>
msg24961 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2005-04-07 20:33
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. :-( )
msg24962 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2005-04-21 20:57
Logged In: YES 
user_id=89016

I think this is a duplicate of 1175396, so I'm closing the
report.
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41825
2005-04-07 15:25:24deykecreate