Unable to start the app
Opened this issue · 4 comments
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:
- '/Users/kg/nltk_data'
- '/Users/kg/ai/RepoReader/dev/nltk_data'
- '/Users/kg/ai/RepoReader/dev/share/nltk_data'
- '/Users/kg/ai/RepoReader/dev/lib/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
- ''
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:
- '/Users/kg/nltk_data'
- '/Users/kg/ai/RepoReader/dev/nltk_data'
- '/Users/kg/ai/RepoReader/dev/share/nltk_data'
- '/Users/kg/ai/RepoReader/dev/lib/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
- ''
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.
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?
@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!
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.