Cognitive-Face-Python icon indicating copy to clipboard operation
Cognitive-Face-Python copied to clipboard

Python3.7

Open kartikvega opened this issue 6 years ago • 4 comments

Update/Patch to the sample/util.py to support Python 3.7. currently unable to run samples on Python 3.7

File "sample\util.py", line 178 def async(func): ^ SyntaxError: invalid syntax

kartikvega avatar Aug 27 '18 16:08 kartikvega

Is this back compatible with previous version of Python, e.g., Python 3.6 or even Python 2?

huxuan avatar Aug 27 '18 20:08 huxuan

Checked with Python 3.6 and 3.7(works). Which version of python2? latest 2.7? mscongnitivefacewpy3 6

kartikvega avatar Aug 28 '18 19:08 kartikvega

@kartikvega Yes, it would be great if we still keep Python 2/3 compatibility.

huxuan avatar Sep 01 '18 02:09 huxuan

check this approach > https://github.com/eternnoir/pyTelegramBotAPI/pull/526

z2z avatar Dec 01 '18 07:12 z2z