Closed SeekPoint closed 4 years ago
ub16_prj/bumblebee % python demoRediSearch.py Traceback (most recent call last): File "demoRediSearch.py", line 25, in from redisearch import Client, TextField File "/Users/yuanke/ghSrc/redisearch-py/redisearch/init.py", line 73, in from .client import Client, NumericField, TextField, GeoField, TagField, IndexDefinition File "/Users/yuanke/ghSrc/redisearch-py/redisearch/client.py", line 116 def init(self, async=False, prefix=[], filter=None, language_field=None, language=None, score_field=None, score=1.0, payload_field=None): ^ SyntaxError: invalid syntax
Hello @loveJasmine, Could you please quote demoRediSearch.py in your report (gist is ok)? It would also help to have some information on your environment:
demoRediSearch.py
Thanks
async is a keyword
ub16_prj/bumblebee % python demoRediSearch.py Traceback (most recent call last): File "demoRediSearch.py", line 25, in
from redisearch import Client, TextField
File "/Users/yuanke/ghSrc/redisearch-py/redisearch/init.py", line 73, in
from .client import Client, NumericField, TextField, GeoField, TagField, IndexDefinition
File "/Users/yuanke/ghSrc/redisearch-py/redisearch/client.py", line 116
def init(self, async=False, prefix=[], filter=None, language_field=None, language=None, score_field=None, score=1.0, payload_field=None):
^
SyntaxError: invalid syntax