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

AttributeError while running generate.py #25

Closed
rodinf opened this issue Jan 4, 2022 · 2 comments
Closed

AttributeError while running generate.py #25

rodinf opened this issue Jan 4, 2022 · 2 comments

Comments

@rodinf
Copy link

rodinf commented Jan 4, 2022

Command make stage gives:

./generate.py cv.yaml
Processing section: about
Processing section: positions
Processing section: education
Processing section: industry
Processing section: honors
Processing section: all_publications
Processing section: repos
Traceback (most recent call last):
  File "./generate.py", line 616, in <module>
    main()
  File "./generate.py", line 611, in main
    process_resume(LATEX_CONTEXT, yaml_data, args.preview)
  File "./generate.py", line 578, in process_resume
    rendered_resume = context.render_resume(yaml_data)
  File "./generate.py", line 476, in render_resume
    add_repo_data(self, section_content)
  File "./generate.py", line 388, in add_repo_data
    item['stars'] = soup.find(
AttributeError: 'NoneType' object has no attribute 'text'
make: *** [Makefile:35: build/cv.tex] Error 1

What's goes wrong?

@bamos
Copy link
Owner

bamos commented Jan 4, 2022

Ah oops, it's coming from the code that looks up and saves the number of stars the github repos have. It was a hacky piece of code that scrapes the HTML of repo pages that github seems to have changed since I wrote that. It may work if you comment out the repos line in order in cv.yaml to disable the repos for now, or you can disable that section in generate.py

bamos added a commit that referenced this issue Jan 15, 2022
@bamos
Copy link
Owner

bamos commented Jan 15, 2022

Fixed in 0719d55

@bamos bamos closed this as completed Jan 15, 2022
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