Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zoubaihan opened this issue Jan 19, 2021 · 5 comments
Open

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

zoubaihan opened this issue Jan 19, 2021 · 5 comments

Comments

@zoubaihan
Copy link

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
Copy link

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

@SolsticeG
Copy link

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
Copy link

yjkellyjoo commented Apr 20, 2021

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
Copy link

yjkellyjoo commented Apr 21, 2021

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants