RedisGraph / redisgraph-py

RedisGraph python client
https://redisgraph.io
BSD 3-Clause "New" or "Revised" License
189 stars 49 forks source link

python3 stat.decode() error #64

Closed fdrong closed 4 years ago

fdrong commented 4 years ago

Traceback (most recent call last): redisgraph/query_result.py", line 45, in _retrieve_data_from_statistics self.LABELS_ADDED: self._get_value(self.LABELS_ADDED, statistics), File "/redisgraph/query_result.py", line 57, in _get_value stat = stat.decode() AttributeError: 'str' object has no attribute 'decode'

swilly22 commented 4 years ago

Hi @fdrong, can you please share against which version of RedisGraph are you working?

fdrong commented 4 years ago

https://github.com/RediSearch/RediSearch master version. change it: "/redisgraph/query_result.py", line 57, in _get_value stat = stat.decode() replace: if isinstance(stat, bytes): stat = stat.decode() it works

swilly22 commented 4 years ago

I'm a bit confused you've referred to RediSearch in your link above, is that by mistake?

DvirDukhan commented 4 years ago

@fdrong I'm closing this issue. If you think that there is still an issue please re-open it.