RediSearch / redisearch-py

RediSearch python client

Home Page:https://redisearch.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug in the latest version.

SeekPoint opened this issue · comments

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:

  • Which OS are you running?
  • Which Python version are you using?
  • Are you running in a virtual environment?
  • How did you install rediserch-py?

Thanks

commented

image
async is a keyword