Skip to content

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

Open
@swapnilbadgujar132

Description

@swapnilbadgujar132

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions