pyresparser icon indicating copy to clipboard operation
pyresparser copied to clipboard

OSError: [E053] Could not read config.cfg from .....\venv\lib\site-packages\pyresparser\config.cfg

Open MinaTahaei opened this issue 5 years ago • 31 comments

I have installed all the packages, but when I run:

from pyresparser import ResumeParser data = ResumeParser('C:/Users/Asus/Desktop/ResumeParserExample/test.pdf').get_extracted_data()

I get this error:

C:\Users\Asus\Desktop\ResumeParserExample\venv\lib\site-packages\spacy\util.py:715: UserWarning: [W094] Model 'en_training' (0.0.0) specifies an under-constrained spaCy version requirement: >=2.1.4. This can lead to compatibility problems with older versions, or as new spaCy versions are released, because the model may say it's compatible when it's not. Consider changing the "spacy_version" in your meta.json to a version range, with a lower and upper pin. For example: >=3.0.1,<3.1.0 warnings.warn(warn_msg)

OSError: [E053] Could not read config.cfg from C:\Users\Asus\Desktop\ResumeParserExample\venv\lib\site-packages\pyresparser\config.cfg

Does anyone know what the problem is?

Edit: looks like config.cfg doesn't get created at all

MinaTahaei avatar Feb 04 '21 17:02 MinaTahaei

Facing similar issue

tanvidadu avatar Feb 06 '21 10:02 tanvidadu

I am too facing the similar issue.

Sandeep-Panchal avatar Feb 06 '21 10:02 Sandeep-Panchal

same issue

Bhavin1996 avatar Feb 06 '21 23:02 Bhavin1996

Same issue

cristinabac avatar Feb 08 '21 17:02 cristinabac

Hey guys, i just figured it out, after being stuck with the same error for a while. It's a version issue: pip install nltk pip install spacy==2.3.5 pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.3.1/en_core_web_sm-2.3.1.tar.gz pip install pyresparser does the trick. Also try different spacy versions and models, because they produce different results. Haven't tested any further myself. Hope this helps :)

Quppi avatar Feb 09 '21 18:02 Quppi

Hey guys, i just figured it out, after being stuck with the same error for a while. It's a version issue: pip install nltk pip install spacy==2.3.5 pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.3.1/en_core_web_sm-2.3.1.tar.gz pip install pyresparser does the trick. Also try different spacy versions and models, because they produce different results. Haven't tested any further myself. Hope this helps :)

This worked for me, thank you!

cristinabac avatar Feb 09 '21 20:02 cristinabac

Hey guys, i just figured it out, after being stuck with the same error for a while. It's a version issue: pip install nltk pip install spacy==2.3.5 pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.3.1/en_core_web_sm-2.3.1.tar.gz pip install pyresparser does the trick. Also try different spacy versions and models, because they produce different results. Haven't tested any further myself. Hope this helps :)

Unfortunately I still have a version issue: C:\Users\Asus\AppData\Local\Programs\Python\Python39\lib\site-packages\spacy\util.py:275: UserWarning: [W031] Model 'en_training' (0.0.0) requires spaCy v2.1 and is incompatible with the current spaCy version (2.3.5). This may lead to unexpected results or runtime errors. To resolve this, download a newer compatible model or retrain your custom model with the current spaCy version. For more details and available updates, run: python -m spacy validate warnings.warn(warn_msg)

but then when I want to install an older spaCy version, I get errors that the packs don't exist. How do I download a newer compatible model? I just want to parse that PDF file

MinaTahaei avatar Feb 11 '21 15:02 MinaTahaei

Hmh, I get the same warning message, though after that I get the output of the parsed resume.

Quppi avatar Feb 11 '21 15:02 Quppi

Hmh, I get the same warning message, though after that I get the output of the parsed resume.

Where do you get the output of the parsed resume? Does it get rewritten in a new file, or it appears in the terminal?(because I have nothing in my terminal)

MinaTahaei avatar Feb 11 '21 15:02 MinaTahaei

It's right after the warning message in the terminal. But you might want to add a print(data) at the end of the script given in the Readme :)

Quppi avatar Feb 11 '21 15:02 Quppi

It's right after the warning message in the terminal. But you might want to add a print(data) at the end of the script given in the Readme :)

Damn, I had forgotten that:)) Thanks, its fixed now!:))

MinaTahaei avatar Feb 11 '21 15:02 MinaTahaei

Worked for me. Thank you...

wakamd avatar Oct 14 '21 08:10 wakamd

When I try to run pip install spacy==2.3.5 I got some other error.

WARNING: Discarding https://files.pythonhosted.org/packages/45/71/507b8dbbe3ee6f93c0356c3e5e902e0f598c02d919ad3116e16559eb011f/spacy-2.3.5.tar.gz#sha256=315278ab60094643baecd866017c7d4cbd966efd2d517ad0e6c888edf7fa5aef (from https://pypi.org/simple/spacy/) (requires-python:!=3.0.,!=3.1.,!=3.2.,!=3.3.,!=3.4.*,>=2.7). Command errored out with exit status 1: 'C:\Users\aravi\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\aravi\AppData\Local\Temp\pip-standalone-pip-3tor27n0_env_pip_.zip\pip' install --ignore-installed --no-user --prefix 'C:\Users\aravi\AppData\Local\Temp\pip-build-env-1a___yu5\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'cython>=0.25' 'cymem>=2.0.2,<2.1.0' 'preshed>=3.0.2,<3.1.0' 'murmurhash>=0.28.0,<1.1.0' 'thinc>=7.4.1,<7.5.0' 'blis>=0.4.0,<0.8.0' 'numpy>=1.15.0' Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement spacy==2.3.5 (from versions: 0.31, 0.32, 0.33, 0.40, 0.51, 0.52, 0.60, 0.61, 0.62, 0.63, 0.64, 0.65, 0.67, 0.68, 0.70, 0.80, 0.81, 0.82, 0.83, 0.84, 0.85, 0.86, 0.87, 0.88, 0.89, 0.90, 0.91, 0.92, 0.93, 0.94, 0.95, 0.97, 0.98, 0.99, 0.100.0, 0.100.1, 0.100.2, 0.100.3, 0.100.4, 0.100.5, 0.100.6, 0.100.7, 0.101.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.5, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.10.0, 1.10.1, 2.0.0, 2.0.1.dev0, 2.0.1, 2.0.2.dev0, 2.0.2, 2.0.3.dev0, 2.0.3, 2.0.4.dev0, 2.0.4, 2.0.5.dev0, 2.0.5, 2.0.6.dev0, 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.0.10.dev0, 2.0.10, 2.0.11.dev0, 2.0.11, 2.0.12.dev0, 2.0.12.dev1, 2.0.12, 2.0.13.dev0, 2.0.13.dev1, 2.0.13.dev2, 2.0.13.dev4, 2.0.13, 2.0.14.dev0, 2.0.14.dev1, 2.0.15, 2.0.16.dev0, 2.0.16, 2.0.17.dev0, 2.0.17.dev1, 2.0.17, 2.0.18.dev0, 2.0.18.dev1, 2.0.18, 2.1.0, 2.1.1.dev0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.1.7.dev0, 2.1.7, 2.1.8, 2.1.9, 2.2.0.dev10, 2.2.0.dev11, 2.2.0.dev13, 2.2.0.dev15, 2.2.0.dev17, 2.2.0.dev18, 2.2.0.dev19, 2.2.0, 2.2.1, 2.2.2.dev0, 2.2.2.dev4, 2.2.2, 2.2.3.dev0, 2.2.3, 2.2.4, 2.3.0.dev1, 2.3.0, 2.3.1, 2.3.2, 2.3.3.dev0, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 3.0.0, 3.0.1.dev0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.2.0, 3.2.1, 3.2.2, 3.2.3) ERROR: No matching distribution found for spacy==2.3.5

RAravindDS avatar Mar 17 '22 09:03 RAravindDS

Hey guys, i just figured it out, after being stuck with the same error for a while. It's a version issue: pip install nltk pip install spacy==2.3.5 pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.3.1/en_core_web_sm-2.3.1.tar.gz pip install pyresparser does the trick. Also try different spacy versions and models, because they produce different results. Haven't tested any further myself. Hope this helps :)

Bro. What version of Python did you use?

johncarlo-vss avatar Mar 30 '22 16:03 johncarlo-vss

Guys, I have done many thing for this. But I can't solve my issues, one way to solve this:

https://www.programcreek.com/python/?code=OmkarPathak%2FResumeParser%2FResumeParser-master%2Fresume_parser%2Fresume_parser%2Fresume_parser.py#

Go here, and copy paste the entire code in your respective folder and try to solve the problem. I have done this for my company and if you do this there are lot of flexibility is there, you can solve name issues, skill issue based on your company requirements, it helped me a lot, and Now I have a very good resume parser for my specific domain. It took time but this will help to get a good model Guys!.

Hope I helped you 💔

RAravindDS avatar Apr 02 '22 04:04 RAravindDS

I was still having this issue and could not solve it but finally did. The problem for me was my machine, it's a mac with the new chip. Pretty sure this library will not work on this device. Got it working on WSL in windows though. Hope this helps anybody stuck with this error. I was stuck for a good 2 weeks.

zeinramadan1 avatar Jun 10 '22 10:06 zeinramadan1

Still I got a error as it show: note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for spacy Failed to build spacy ERROR: Could not build wheels for spacy, which is required to install pyproject.toml-based projects

Amit3729 avatar Jan 10 '23 16:01 Amit3729

Hey guys, i just figured it out, after being stuck with the same error for a while. It's a version issue: pip install nltk pip install spacy==2.3.5 pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.3.1/en_core_web_sm-2.3.1.tar.gz pip install pyresparser does the trick. Also try different spacy versions and models, because they produce different results. Haven't tested any further myself. Hope this helps :)

thank you soo much you are a real saver :)

yash22y avatar May 15 '23 20:05 yash22y

Thanks a lot @Quppi, that was really helpful.

I managed to get pyresparser working on python 3.10 (google collaboration notebook) and 3.11 (local laptop), by installing spacy 2.3.9 and en core web sm 2.3.1.

While trying to install spacy 2.3.5, it was giving an error of missing wheel file, thanks to this stackexchange article (https://stackoverflow.com/questions/68651829/how-to-install-specific-version-of-spacy), I gave "pip install spacy ~= 2.3.5" (instead of "pip install spacy ==2.3.5").

Rest of the instructions worked as is from @Quppi 's solution!

Ps: i must comment: results of resume parsing weren't too great (messed up extracting total experience in all resumes, some names, emails and mobile numbers too were incorrect or missing), so not sure if it really needs spacy 2.3.5 to work better.

Any way we can install 2.3.5 on latest py versions? Or on which py version can we get spacy 2.3.5 and ecws 2.3.1 working even today?!

hvt77 avatar May 22 '23 23:05 hvt77

Thanks a lot @Quppi, that was really helpful.

I managed to get pyresparser working on python 3.10 (google collaboration notebook) and 3.11 (local laptop), by installing spacy 2.3.9 and en core web sm 2.3.1.

While trying to install spacy 2.3.5, it was giving an error of missing wheel file, thanks to this stackexchange article (https://stackoverflow.com/questions/68651829/how-to-install-specific-version-of-spacy), I gave "pip install spacy ~= 2.3.5" (instead of "pip install spacy ==2.3.5").

Rest of the instructions worked as is from @Quppi 's solution!

Ps: i must comment: results of resume parsing weren't too great (messed up extracting total experience in all resumes, some names, emails and mobile numbers too were incorrect or missing), so not sure if it really needs spacy 2.3.5 to work better.

Any way we can install 2.3.5 on latest py versions? Or on which py version can we get spacy 2.3.5 and ecws 2.3.1 working even today?!

pip install "spacy ~= 2.3.5"

kumarme072 avatar Jun 16 '23 05:06 kumarme072