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

configuration error: Invalid type for key #403

Closed
testacc12345678900 opened this issue Sep 19, 2024 · 3 comments
Closed

configuration error: Invalid type for key #403

testacc12345678900 opened this issue Sep 19, 2024 · 3 comments

Comments

@testacc12345678900
Copy link

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.

@thomHayner
Copy link
Contributor

thomHayner commented Sep 19, 2024

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!

@testacc12345678900
Copy link
Author

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

@feder-cr
Copy link
Collaborator

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

@feder-cr feder-cr reopened this Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants