DelightRun / PyBaiduYuyin

This project has been deprecated
MIT License
77 stars 38 forks source link

pip install failed, can it work in py3? #9

Closed CheerL closed 7 years ago

CheerL commented 7 years ago

pip install failed, can it work in #py3.5?

Collecting PyBaiduyuyin Using cached PyBaiduYuyin-0.1.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "C:\Users\Cheer.L\AppData\Local\Temp\pip-build-ik3qss4a\PyBaiduyuyin\setup.py", line 11, in import PyBaiduYuyin File "c:\users\cheer.l\appdata\local\temp\pip-build-ik3qss4a\pybaiduyuyin\PyBaiduYuyin__init__.py", line 492 print 'You said ' + text ^ SyntaxError: Missing parentheses in call to 'print'

CheerL commented 7 years ago

https://github.com/DelightRun/PyBaiduYuyin/blob/master/PyBaiduYuyin/init.py#L492 i've found that, in PyBaiduYuyin.init.py line492

while True: print("Say something!") with m as source: audio = r.listen(source) print("Got it! Now to recognize it...") try: text = r.recognize(audio) print 'You said ' + text except LookupError: print("Oops! Didn't catch that")

this print is differnt from others, which is py2 style.

ideas4u commented 7 years ago

thanks,CheerL .I changed the print to print();and then it works.