-
Notifications
You must be signed in to change notification settings - Fork 79
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
Error "FAILED TO FILL OUT APPLICATION AND SUBMIT: [WinError 2] The system cannot find the file specified" #60
Comments
At Lines 275 to 281 in 11a9218
Can you replace that with just: fill_out_application_and_submit(driver, random_city, fake_identity) Notice that the line is indented by only 4 spaces rather than 8. This will allow you to get the full stack trace, if you get the error again can you post the full error please. |
|
Thanks, I'll have a look. |
It appears to come from Lines 2131 to 2138 in 11a9218
The annoying thing about windows errors is that they're really vague. Have you got |
I looked into this and here is what I found. When pdflatex is called by subprocess.call() within resume_faker.py, sometimes it runs into an issue where the fonts it relies on needed by the tex/pdf generation are not installed. Because of this, pdflatex ends up returning with an error and NOT turning the generated tex into a pdf. Therefore, on line 2138 when it attempts to rename auto_resume.pdf, that file doesn't exist, hence the error. I figured this out by executing pdflatex in the command line myself using the auto_resume.tex file the python script generates, which still generates just fine and can be found within resumeSrc. This is how you can do so in the command line and have it give you a detailed error and traceback to boot
If you are like me, chances are once you run this, it will crash and tell you that there are some fonts that it is unable to locate. Unfortunately, I am not entirely familiar with BasicTex. However, in my case, pdflatex was having trouble locating a variation of the EBGaramond font. After a quick google search to figure out how to install fonts properly using BasicTex, i was able to solve the problem by heading to my command line and typing:
There was also another missing font issue i ran into. This was an entirely different font that pdflatex could not find that was resulting in the same error, and it happened on a different loop of the script with a different fake identity. Unfortunately I did not note which font, but I managed to fix that using
From there, the script successfully generated auto_resume.pdf and the python script was able to continue to execute without throwing that failure. I recommend that there be an addition to the installation README that specifies that font packages such as the above may need to be installed after BasicTex's installation. EDIT: Didn't see the README update proposal before writing this. I am not sure if the solution presented in the README update @bolshoytoster proposed would account for this, but if so, deff go with that. |
My pr doesn't really address this, I'll add this in. |
File not found?
I'm on Windows 11 using Python 3.10.0
Here's a portion of my logs:
I am using the latest master branch version.
The text was updated successfully, but these errors were encountered: