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

Error with loading en_core_web_sm with Spacy #3

Closed
raghuveer opened this issue Jul 18, 2019 · 6 comments
Closed

Error with loading en_core_web_sm with Spacy #3

raghuveer opened this issue Jul 18, 2019 · 6 comments

Comments

@raghuveer
Copy link

Dear Mr.Omkar

I am installing Pyresparser, on a different server, with Python 3.6.3

I did the installation using the following commands,

============

aj@ubuntu:~$ pip3 install pyresparser

aj@ubuntu:~$ pip install -U spacy

aj@ubuntu:~$ python -m spacy download en_core_web_sm

aj@ubuntu:~$ pip install --user -U nltk

aj@ubuntu:~$ python -m nltk.downloader words

aj@ubuntu:~$ python

import nltk
nltk.download('stopwords')

=================

Error Message:

aj@ubuntu:~/webapps/app-quitzon/uploaded-documents$ pyresparser -f ffc6f69b791e2aecbd859e0932a5ea97ccdfeccaef67e64f8c93f7c684b5c99b.pdf
Extracting data from: ffc6f69b791e2aecbd859e0932a5ea97ccdfeccaef67e64f8c93f7c684b5c99b.pdf
Traceback (most recent call last):
File "/home/aj/.local/bin/pyresparser", line 11, in
sys.exit(main())
File "/home/aj/.local/lib/python3.6/site-packages/pyresparser/command_line.py", line 77, in main
pprint(cli_obj.extract_resume_data())
File "/home/aj/.local/lib/python3.6/site-packages/pyresparser/command_line.py", line 28, in extract_resume_data
return self.__extract_from_file(args.file)
File "/home/aj/.local/lib/python3.6/site-packages/pyresparser/command_line.py", line 37, in __extract_from_file
resume_parser = ResumeParser(file)
File "/home/aj/.local/lib/python3.6/site-packages/pyresparser/resume_parser.py", line 13, in init
nlp = spacy.load('en_core_web_sm')
File "/home/aj/.local/lib/python3.6/site-packages/spacy/init.py", line 27, in load
return util.load_model(name, **overrides)
File "/home/aj/.local/lib/python3.6/site-packages/spacy/util.py", line 139, in load_model
raise IOError(Errors.E050.format(name=name))
OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.

Please suggest, if I can need to do anything, whenever I try installing it, all steps happened correctly, for now and when the file is being extracted, I get this error now

thank you

With Best Regards
Raghu Veer

@OmkarPathak
Copy link
Owner

You have executed this pip3 install pyresparser using pip3 and all other packages were downloaded sing pip. This is not a right way to do it. Either use pip throughout or use pip3. I would recommend using pip3 everytime

@raghuveer
Copy link
Author

I got error when I tried installing Spacy using pip3

and am able to installspacy, nltk using PIp, along with dependencies and data import, so I tried that way.

I will try spacy with pip3 once again,

thank you

@OmkarPathak
Copy link
Owner

Ok do let me know the updates

@OmkarPathak
Copy link
Owner

@raghuveer any update?

@OmkarPathak
Copy link
Owner

Closing because of inactivity

@JastySaran
Copy link

Worked for me :

If using pycharm IDE copy pycharm project interrupter path space —m spacy download your package

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

3 participants