Mondego / SourcererCC

Sourcerer's Code Clone project
GNU General Public License v3.0
206 stars 69 forks source link

Why controller.py can not run? Could anybody help me? #46

Open zoubaihan opened 3 years ago

zoubaihan commented 3 years ago

When I was running python controller.py ,the following exception came out:

search will be carried out with 2 nodes loading previous run state previous run state 1 current state: 1 flushing current state 1 running new command /mnt/hgfs/G/SourcererCC-master/clone-detector/restore-gtpm.sh running new command /mnt/hgfs/G/SourcererCC-master/clone-detector/runnodes.sh init 1 Traceback (most recent call last): File "controller.py", line 180, in controller.execute() File "controller.py", line 144, in execute raise ScriptControllerException("error during init.") main.ScriptControllerException: error during init.

How can I deal with this trouble? Could you help me?

Kyungchan95 commented 3 years ago

check line 22 of runnode.sh file. That code originally set 6g. So you should change that value.

SolsticeG commented 3 years ago

check line 22 of runnode.sh file. That code originally set 6g. So you should change that value. I have reset that value but the following exception still came out.

yjkellyjoo commented 3 years ago

having the same issue also... 😢

check line 22 of runnode.sh file. That code originally set 6g. So you should change that value.

tried this and lowered the memories allocated, but same :(

yjkellyjoo commented 3 years ago

solved the problem! SourcererCC team did not specify that we had to build the clone-detector folder first before running it 😂

In '''SourcererCC/clone-detector/''' folder, run the following command:

ant clean cdi

Install ant if you do not have it.

======= I found out that the above command is already included in the runnodes.sh file line 6. It seems installing ant would suffice to fix the problem!

CharesFang commented 1 year ago

solved the problem! SourcererCC team did not specify that we had to build the clone-detector folder first before running it 😂↳

In '''SourcererCC/clone-detector/''' folder, run the following command:↳

ant clean cdi↳

Install ant if you do not have it.↳

======= I found out that the above command is already included in the runnodes.sh file line 6. It seems installing ant would suffice to fix the problem!↳

Thanks for your message! While I would suggest the authors should explicitly specify ant is the necessary dependency for running SoucererCC.