Closed vedangj044 closed 4 years ago
hydrus server --no-auth
redis-server --loadmodule ./src/redisgraph.so
python3.7 hydra_agent/querying_mechanism.py
http://localhost:8080/serverapi
Following the above steps throws error AttributeError: 'str' object has no attribute 'decode'
AttributeError: 'str' object has no attribute 'decode'
This happens as we are decoding the already decoded string. FIxing this issues too gives output similar to [['p'], ['Q'], ['u'], ['e'], ['r'], ['y'], [''], ['i'], ['n'], ['t'], ['e'], ['r'], ['n'], ['a'], ['l'], [''], ['e'], ['x'], ['e'], ['c'], ['u'], ['t'], ['i'], [ 'o'], ['n'], [''], ['t'], ['i'], ['m'], ['e'], [':'], [''], ['2'], ['.'], ['3'], ['9'], ['5'], ['4'], ['4'], ['9'], [''], ['m'], ['i'], ['l'], ['l'], ['i'], ['s' ], ['e'], ['c'], ['o'], ['n'], ['d'], ['s']
[['p'], ['Q'], ['u'], ['e'], ['r'], ['y'], [''], ['i'], ['n'], ['t'], ['e'], ['r'], ['n'], ['a'], ['l'], [''], ['e'], ['x'], ['e'], ['c'], ['u'], ['t'], ['i'], [ 'o'], ['n'], [''], ['t'], ['i'], ['m'], ['e'], [':'], [''], ['2'], ['.'], ['3'], ['9'], ['5'], ['4'], ['4'], ['9'], [''], ['m'], ['i'], ['l'], ['l'], ['i'], ['s' ], ['e'], ['c'], ['o'], ['n'], ['d'], ['s']
yes
Making changes show_data function works fine. Browsing through previous issues i came across #92 i would like try implementing that print format.
show_data
I'm submitting a
Steps to reproduce:
hydrus server --no-auth
redis-server --loadmodule ./src/redisgraph.so
or we can use docker too.python3.7 hydra_agent/querying_mechanism.py
http://localhost:8080/serverapi
Current Behaviour:
Following the above steps throws error
AttributeError: 'str' object has no attribute 'decode'
This happens as we are decoding the already decoded string. FIxing this issues too gives output similar to
[['p'], ['Q'], ['u'], ['e'], ['r'], ['y'], [''], ['i'], ['n'], ['t'], ['e'], ['r'], ['n'], ['a'], ['l'], [''], ['e'], ['x'], ['e'], ['c'], ['u'], ['t'], ['i'], [ 'o'], ['n'], [''], ['t'], ['i'], ['m'], ['e'], [':'], [''], ['2'], ['.'], ['3'], ['9'], ['5'], ['4'], ['4'], ['9'], [''], ['m'], ['i'], ['l'], ['l'], ['i'], ['s' ], ['e'], ['c'], ['o'], ['n'], ['d'], ['s']
Do you want to work on this issue?
yes
Suggestion
Making changes
show_data
function works fine. Browsing through previous issues i came across #92 i would like try implementing that print format.