[issue20846] pip can fail on windows but gives success message

Ned Deily report at bugs.python.org
Tue Mar 4 20:39:55 CET 2014


Ned Deily added the comment:

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

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20846>
_______________________________________


More information about the Python-bugs-list mailing list