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

OSError: [E053] Could not read config file from spaCy configuration #88

Open
swapnilbadgujar132 opened this issue Aug 18, 2024 · 1 comment

Comments

@swapnilbadgujar132
Copy link

ERROR Massage :

__
(myenv) projectPath> python scan_resume.py
C:\Users\swapn\AppData\Local\Programs\Python\Python312\myenv\Lib\site-packages\spacy\util.py:918: 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.7.2,<3.8.0
warnings.warn(warn_msg)
Traceback (most recent call last):
File "projectPath", line 115, in
data = ResumeParser('candidate_resume/0cc13072ee09d75591245a3dfc708237.pdf').get_extracted_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "userName\AppData\Local\Programs\Python\Python312\myenv\Lib\site-packages\pyresparser\resume_parser.py", line 21, in init
custom_nlp = spacy.load(os.path.dirname(os.path.abspath(file)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "userName\AppData\Local\Programs\Python\Python312\myenv\Lib\site-packages\spacy_init_.py", line 51, in load
return util.load_model(
^^^^^^^^^^^^^^^^
File "userName\AppData\Local\Programs\Python\Python312\myenv\Lib\site-packages\spacy\util.py", line 467, in load_model
return load_model_from_path(Path(name), **kwargs) # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "userName\AppData\Local\Programs\Python\Python312\myenv\Lib\site-packages\spacy\util.py", line 538, in load_model_from_path
config = load_config(config_path, overrides=overrides)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "userName\AppData\Local\Programs\Python\Python312\myenv\Lib\site-packages\spacy\util.py", line 714, in load_config
raise IOError(Errors.E053.format(path=config_path, name="config file"))

OSError: [E053] Could not read config file from userName\AppData\Local\Programs\Python\Python312\myenv\Lib\site-packages\pyresparser\config.cfg

@Durvalm
Copy link

Durvalm commented Nov 17, 2024

same error, anyone fixed it?

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

2 participants