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

generate_atom_feeds() raises StopIteration #43

Closed
baylessj opened this issue Oct 10, 2019 · 15 comments · Fixed by #46
Closed

generate_atom_feeds() raises StopIteration #43

baylessj opened this issue Oct 10, 2019 · 15 comments · Fixed by #46

Comments

@baylessj
Copy link

Original issue was opened on Sphinx as sphinx-doc/sphinx#6722

The offending line is this:

url = blog.blog_baseurl

Not entirely sure what causes the url to be None, I'll do some more digging to see if it's an issue with my project's configuration or not. My hunch is that it is due to my combination of Python version and OS, the other developers on my team are able to build fine.

Project

https://github.com/purduesigbots/pros-docs

Software Versions

  • Python: 3.7.3
  • OS: Pop!_OS 19.04
@nabobalis
Copy link
Contributor

What version of ablog are you using? Can you try with master? It is a Python 3 only version that I hopefully plan to release this year.

@baylessj
Copy link
Author

0.9.4, I'll upgrade to 0.9.5 and see if that solves the issue.

@baylessj
Copy link
Author

Upgraded, issue still occurs. Will look more into the cause.

@nabobalis
Copy link
Contributor

You will have to install the version from master, its 0.10dev.

@baylessj
Copy link
Author

Makes sense. Installed from source, version num is now 0.9.6.dev2+gd148cf4. Still getting the same error output.

@baylessj
Copy link
Author

Adding the blog_baseurl string to the conf.py for the project stopped the error, which is good. I was not under the impression from ablog's documentation that this was a required parameter though, and I hadn't noticed this being necessary before, so that is odd. Should I consider this option to be a required option for ablog usage, or is something else causing this symptom?

@nabobalis
Copy link
Contributor

Yeah it probably should be.

@nabobalis
Copy link
Contributor

Actually now I recall. I think there is an open PR to fix this.

@baylessj
Copy link
Author

Are you referring to #38? That seems related, but I can't really tell from the modifications to the code there if it adds a default baseurl value or if it requires the value

@nabobalis
Copy link
Contributor

If I recall, I think it makes it require it.

@nabobalis
Copy link
Contributor

There probably should be a base default

@baylessj
Copy link
Author

I agree, a default would be nice to have. I'm not particularly interested in having an atom feed in my project's blog and it would be nice to not have to specify additional options for that.

Looks like jekyll just sets the baseurl value in their conf file to an empty string, do you think the same approach would work here?

@nabobalis
Copy link
Contributor

Well it's better than being None

@baylessj
Copy link
Author

Agreed. I can open a PR for this if you'd like, or would you prefer that this modification be a part of #38?

@nabobalis
Copy link
Contributor

Probably makes more sense to be part of #38, could you leave a comment on that PR about this?

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

Successfully merging a pull request may close this issue.

2 participants