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 BreamoreBoy
Recipients BreamoreBoy
Date 2014-03-03.19:08:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1393873717.15.0.572598787495.issue20846@psf.upfronthosting.co.za>
In-reply-to
Content
Trying to install pyttsx you get "Successfully installed pyttsx" despite the syntax errors and you can't actually do an import.

c:\Users\Mark\CrossCode>c:\Python34\Scripts\pip3.4.exe install pyttsx
Downloading/unpacking pyttsx
  Downloading pyttsx-1.1.tar.gz
  Running setup.py (path:C:\Users\Mark\AppData\Local\Temp\pip_build_Mark\pyttsx\setup.py) egg_info for package pyttsx

Installing collected packages: pyttsx
  Running setup.py install for pyttsx
      File "C:\Python34\Lib\site-packages\pyttsx\driver.py", line 105
        except Exception, e:
                        ^
    SyntaxError: invalid syntax

[other syntax errors snipped]

Successfully installed pyttsx
Cleaning up...

c:\Users\Mark\CrossCode>py -3.4
Python 3.4.0rc2 (v3.4.0rc2:a300712ed38c, Feb 23 2014, 10:49:04) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyttsx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python34\lib\site-packages\pyttsx\__init__.py", line 18, in <module>
    from engine import Engine

Running 2to3 sorts this out.  Can this be done automatically by pip?  If not, can we please have this documented?
History
Date User Action Args
2014-03-03 19:08:37BreamoreBoysetrecipients: + BreamoreBoy
2014-03-03 19:08:37BreamoreBoysetmessageid: <1393873717.15.0.572598787495.issue20846@psf.upfronthosting.co.za>
2014-03-03 19:08:37BreamoreBoylinkissue20846 messages
2014-03-03 19:08:36BreamoreBoycreate