Kkevsterrr / geneva

automated censorship evasion for the client-side and server-side
https://censorship.ai
BSD 3-Clause "New" or "Revised" License
1.87k stars 176 forks source link

Server side evaluation using docker #26

Closed Chhavi2208 closed 2 years ago

Chhavi2208 commented 3 years ago

I am trying to run the server side evaluation strategy using inbuilt censors with the help of docker. Cmd : sudo python3 evolve.py --server-side --test-type echo --censor censor2 --log debug

But I am receiving following error: File "/code/actions/utils.py", line 97, in parse raise actions.tree.ActionTreeParseError("Failed to parse tree") actions.tree.ActionTreeParseError: Failed to parse tree

This error got resolved by using this modified command: sudo python3 evolve.py --strategy "\/" --server-side --test-type echo --censor censor2 --log debug

But new error is displayed: File "/home/chhavi/ACN/Geneva/geneva/evaluator.py", line 256, in run_test ind.fitness = server.punish_fitness(ind.fitness, self.logger) AttributeError: 'NoneType' object has no attribute 'punish_fitness'

I think the main cause of above errors are that engine is running from client side rather than server side.

Can you please tell me how to run server side evaluation using dockers.

Kkevsterrr commented 2 years ago

Hi @Chhavi2208 - sorry for missing this until now! The issue in your printout is --strategy "/" - / is not a valid strategy - you need either an empty string "" or a true empty strategy "\/". That should fix that issue.