Jobs_Applier_AI_Agent_AIHawk icon indicating copy to clipboard operation
Jobs_Applier_AI_Agent_AIHawk copied to clipboard

configuration error: Invalid type for key

Open testacc12345678900 opened this issue 1 year ago • 3 comments

Hey, im having this error despite to having a boolean value in config.yaml

Configuration error: Invalid type for key 'remote' in config file data_folder\config.yaml. Expected <class 'bool'>. Refer to the configuration guide for troubleshooting: https://github.com/feder-cr/LinkedIn_AIHawk_automatic_job_application/blob/main/readme.md#configuration

Any help would be appreciated.

testacc12345678900 avatar Sep 19 '24 10:09 testacc12345678900

Hi @testacc12345678900, there appears to be a misconfiguration, it was updated and is now looking for both a string and a bool...

src/job_application_profile.py

line 26:    remote_work: str

main.py

line 44:            'remote': bool,

Try these steps:

  1. Either remove remote: entirely from config.yaml, OR change it into a ["Yes"/"No"] string
  2. use a string ["Yes"/"No"] for remote_work: in plain_text_resume.yaml
  3. update line 44 in main.py to be either 'remote': dict,, 'remote': string,, or 'remote': str, (sorry I can't be more specific, I'm not a Python dev and I don't know Python types very well)
  4. report back on what did and did not work

Thanks!

thomHayner avatar Sep 19 '24 23:09 thomHayner

thank u that worked totally! and now i have another error that says;

Runtime error: Error running the bot: Unexpected error while parsing YAML: 3 validation errors for Resume education_details.0.final_evaluation_grade Field required [type=missing, input_value={'education_level': "Bach...': 'Computer Science'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.9/v/missing education_details.0.start_date Field required [type=missing, input_value={'education_level': "Bach...': 'Computer Science'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.9/v/missing education_details.0.year_of_completion Field required [type=missing, input_value={'education_level': "Bach...': 'Computer Science'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.9/v/missing Refer to the configuration and troubleshooting guide: https://github.com/feder-cr/LinkedIn_AIHawk_automatic_job_application/blob/main/readme.md#configuration

im trying to remove the grade and exam in the education section

testacc12345678900 avatar Sep 20 '24 12:09 testacc12345678900

@testacc12345678900 share your resume and join the telegram group, so we can discuss it more easily - > https://t.me/AIhawkCommunity

feder-cr avatar Sep 20 '24 22:09 feder-cr