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

Open
testacc12345678900 opened this issue Sep 19, 2024 · 1 comment
Open

configuration error: Invalid type for key #403

testacc12345678900 opened this issue Sep 19, 2024 · 1 comment

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!

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