Skip to content

New Sphinx with extra values to unpack#2914

Closed
dpshelio wants to merge 1 commit into
astropy:masterfrom
dpshelio:fix_newsphinx
Closed

New Sphinx with extra values to unpack#2914
dpshelio wants to merge 1 commit into
astropy:masterfrom
dpshelio:fix_newsphinx

Conversation

@dpshelio

@dpshelio dpshelio commented Sep 2, 2014

Copy link
Copy Markdown
Contributor

I doubt this will pass the tests with the current version of sphinx installed by conda (v1.2.2) but when the new version become available (which is already through pip), a ValueError: too many values to unpack will be raised unless a new element is unpacked. This PR add an extra variable to unpack all the elements properly.

In case you are interested, this was introduced in Sphinx by this commit

@astrofrog

Copy link
Copy Markdown
Member

@dpshelio - could you write it such that it works with both Sphinx versions, using a try...except?

@dpshelio

dpshelio commented Sep 2, 2014

Copy link
Copy Markdown
Contributor Author

@astrofrog - I've updated the commit adding an except to a ValueError... however I don't understand how Travis didn't complain before... maybe that function is not tested or used by astropy itself...

@Cadair

Cadair commented Sep 2, 2014

Copy link
Copy Markdown
Member

Couldn't you unpack to a tuple then select on the length rather than using try: except?

@embray embray added this to the v0.4.2 milestone Sep 2, 2014
@embray

embray commented Sep 2, 2014

Copy link
Copy Markdown
Member

In any case, this patch needs to be submitted to astropy/astropy-helpers, as the astropy.sphinx module is deprecated and no longer maintained per se.

@dpshelio

dpshelio commented Sep 4, 2014

Copy link
Copy Markdown
Contributor Author

I'm closing this PR as astropy/astropy-helpers#79 or astropy/astropy-helpers#80 is solving this issue.

@dpshelio dpshelio closed this Sep 4, 2014
@embray embray removed this from the v0.4.2 milestone Sep 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

zzz 💤 astropy-helpers archived: PRs and issues related to astropy-helpers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants