cmooredev / RepoReader

Explore and ask questions about a GitHub code repository using OpenAI's GPT.
158 stars 77 forks source link

Unable to start the app #2

Open jithin-kg opened 1 year ago

jithin-kg commented 1 year ago

python3 app.py

[nltk_data] Error loading punkt: <urlopen error [SSL: [nltk_data] CERTIFICATE_VERIFY_FAILED] certificate verify failed: [nltk_data] unable to get local issuer certificate (_ssl.c:992)> Enter the GitHub URL of the repository: https://github.com/cmooredev/RepoReader Cloning the repository... Cloning into '/var/folders/sw/6wyg_mg101v59l2_37zqx6gm0000gn/T/tmpg8w9vpn7'... remote: Enumerating objects: 53, done. remote: Counting objects: 100% (53/53), done. remote: Compressing objects: 100% (37/37), done. remote: Total 53 (delta 23), reused 39 (delta 14), pack-reused 0 Unpacking objects: 100% (53/53), done. [nltk_data] Error loading punkt: <urlopen error [SSL: [nltk_data] CERTIFICATE_VERIFY_FAILED] certificate verify failed: [nltk_data] unable to get local issuer certificate (_ssl.c:992)> [nltk_data] Error loading averaged_perceptron_tagger: <urlopen error [nltk_data] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify [nltk_data] failed: unable to get local issuer certificate [nltk_data] (_ssl.c:992)> Error loading files with pattern '*/.txt':


Resource punkt not found. Please use the NLTK Downloader to obtain the resource:

import nltk nltk.download('punkt')

For more information see: https://www.nltk.org/data.html

Attempted to load tokenizers/punkt/PY3/english.pickle

Searched in:

Error loading files with pattern '*/.md':


Resource punkt not found. Please use the NLTK Downloader to obtain the resource:

import nltk nltk.download('punkt')

For more information see: https://www.nltk.org/data.html

Attempted to load tokenizers/punkt/PY3/english.pickle

Searched in:

Error loading files with pattern '*/.py': Invalid file /var/folders/sw/6wyg_mg101v59l2_37zqx6gm0000gn/T/tmpg8w9vpn7/config.py. The FileType.UNK file type is not supported in partition. Error loading files with pattern '*/.ipynb': [Errno 21] Is a directory: '/var/folders/sw/6wyg_mg101v59l2_37zqx6gm0000gn/T/tmpg8w9vpn7' No documents were found to index. Exiting.

sapols commented 1 year ago

I'm also getting those Error loading files with pattern errors (for .py, .yml, .ini, and the "is a directory" error for .ipynb). Was this app ever able to load anything other than plain text files?

cmooredev commented 1 year ago

@jithin-kg I think your issue is related to the first line of the error and some additional resulting lines. (You might have the same issue @sapols)

[nltk_data] CERTIFICATE_VERIFY_FAILED] certificate verify failed:
[nltk_data] unable to get local issuer certificate (_ssl.c:992)>
Resource punkt not found.
Please use the NLTK Downloader to obtain the resource:
import nltk
nltk.download('punkt')

I had added a line in utils.py to download it when running the script but it seems like your system is running into an issue during this step. It is used when loading and indexing files. I will look at possible solutions to this!

cmooredev commented 1 year ago

Also @sapols with the current version, I am getting an error with .ipynb (will look into this) but other file types are working fine.

Check if your issue is also related to nltk not downloading punkt properly.

Pujankpatel commented 2 months ago

Bro after Resolving deltas: 100% (12/12), done. my output get stuck.

opp