python / cpython

The Python programming language
https://www.python.org/
Other
61.35k stars 29.55k forks source link

2.4.1 breaks pyTTS #41825

Closed e0de1389-3c75-4247-bac7-c86181d397ce closed 19 years ago

e0de1389-3c75-4247-bac7-c86181d397ce commented 19 years ago
BPO 1178624
Nosy @doerwalter

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields: ```python assignee = None closed_at = created_at = labels = [] title = '2.4.1 breaks pyTTS' updated_at = user = 'https://bugs.python.org/deyke' ``` bugs.python.org fields: ```python activity = actor = 'doerwalter' assignee = 'none' closed = True closed_date = None closer = None components = ['None'] creation = creator = 'deyke' dependencies = [] files = [] hgrepos = [] issue_num = 1178624 keywords = [] message_count = 5.0 messages = ['24958', '24959', '24960', '24961', '24962'] nosy_count = 2.0 nosy_names = ['doerwalter', 'deyke'] pr_nums = [] priority = 'normal' resolution = 'duplicate' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue1178624' versions = [] ```

e0de1389-3c75-4247-bac7-c86181d397ce commented 19 years ago

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.

doerwalter commented 19 years ago

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?

e0de1389-3c75-4247-bac7-c86181d397ce commented 19 years ago

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
>>>
doerwalter commented 19 years ago

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. :-( )

doerwalter commented 19 years ago

Logged In: YES user_id=89016

I think this is a duplicate of 1175396, so I'm closing the report.