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.

Author ned.deily
Recipients BreamoreBoy, eric.araujo, loewis, ned.deily, r.david.murray
Date 2014-03-04.19:39:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1393961995.88.0.875679442468.issue20846@psf.upfronthosting.co.za>
In-reply-to
Content
Alas, I don't think there is a bug in the import machinery, either.  Note that puttsx's __init__.py uses a pre-PEP 328 ambiguous relative import:

from engine import ...

Even if there were no syntax errors, in Python 3 that would have to be spelled:

from .engine import ...

and making that change, engine is now found, syntax errors and all:

>>> import pyttsx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyttsx/__init__.py", line 18, in <module>
    from .engine import Engine
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyttsx/engine.py", line 64
    except Exception, e:
                    ^
SyntaxError: invalid syntax
History
Date User Action Args
2014-03-04 19:39:55ned.deilysetrecipients: + ned.deily, loewis, eric.araujo, r.david.murray, BreamoreBoy
2014-03-04 19:39:55ned.deilysetmessageid: <1393961995.88.0.875679442468.issue20846@psf.upfronthosting.co.za>
2014-03-04 19:39:55ned.deilylinkissue20846 messages
2014-03-04 19:39:55ned.deilycreate