fossology / atarashi

Atarashi scans for license statements in open source software, focusing on text statistics. Designed to work stand-alone and with FOSSology.
http://fossology.github.io/atarashi
GNU General Public License v2.0
26 stars 23 forks source link

List Index Out of Range #85

Closed codeakki closed 3 years ago

codeakki commented 3 years ago

When Running atarashi -a {Any agent } -s {Similarities} following error produce:

image

Take a reference from here#80

Steps To Reproduce

--> Previously @Aman-Codes make changes in atarahii.py file #L83 ->which was working fine but after This PR it again started creating the same error -> or I think we need to implement the scan function inside the scan function like [here] or update the atarashii.py file

GMishx commented 3 years ago

It is working for me: image

Also, the line where you are getting the error does not exists: https://github.com/fossology/atarashi/blob/50f1d7ade90d66cc26b1a781d8aef93961a95876/atarashi/libs/commentPreprocessor.py#L42

Can you please check you are using the latest code?

codeakki commented 3 years ago

@GMishx I tried re-installing Atarashi and now it is giving this error image Showing me this error and also my forked Repo is with the master branch only

GMishx commented 3 years ago

Try editing the source and dump the exception: https://github.com/fossology/atarashi/blob/50f1d7ade90d66cc26b1a781d8aef93961a95876/atarashi/atarashii.py#L182-L183

It can be because of many causes.