You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Determine why PLY 3.9 started over-writing the unit tables #5581
#5563 Implemented a quick-fix to keep PLY (starting with the v3.9) from overwriting the generated tables. But it's not clear why that works. So this issue is simply to try to figure out what changed there and whether or not it's symptomatic of some larger issue.
Some details: the table regenerating happens only in python2, and only for the generic unit tables and somewhere at the beginning when one runs setup.py.
PLY is used 3 other places and none of those are showing this issue.
An extra issue is that this is an example from the docs, yet we didn't see this either on travis or locally. My hypothesis is that because we always run the whole test suite, and by the time the test got to this example somehow it's happy with the parsing table shipped with the install.
@eteq - What about getting a #5563 like workaround in for all the generated tables in for 1.3.1, unless someone figures this issue out by then? I can open a PR tomorrow for it.
I noticed by the past that these files appeared as modified in git but didn't pay attention to it. Now following #5726, I still can reproduce the issue on Python 2:
~/lib/astropy master* conseil@musicos1
❯ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
~/lib/astropy master* conseil@musicos1
❯ python -c "from astropy import units as u; from astropy.coordinates import SkyCoord; c = SkyCoord('00:42.5 +41:12', unit=(u.hourangle, u.deg))"
~/lib/astropy master* conseil@musicos1
❯ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: astropy/coordinates/angle_lextab.py
modified: astropy/coordinates/angle_parsetab.py
no changes added to commit (use "git add" and/or "git commit -a")
Activity
eteq commentedon Dec 9, 2016
I assigned @bsipocz as the author of #5563, but if anyone else has ideas, would love to hear it!
bsipocz commentedon Dec 9, 2016
Some details: the table regenerating happens only in python2, and only for the
genericunit tables and somewhere at the beginning when one runs setup.py.PLY is used 3 other places and none of those are showing this issue.
bsipocz commentedon Dec 29, 2016
I got a bug report via e-mail that is closely related to #5563. Apparently it's not only the generic unit parsing tables that are regenerated:
An extra issue is that this is an example from the docs, yet we didn't see this either on travis or locally. My hypothesis is that because we always run the whole test suite, and by the time the test got to this example somehow it's happy with the parsing table shipped with the install.
@eteq - What about getting a #5563 like workaround in for all the generated tables in for 1.3.1, unless someone figures this issue out by then? I can open a PR tomorrow for it.
bsipocz commentedon Dec 29, 2016
However it was just confirmed that the previous traceback was produced with v1.2.1
saimn commentedon Jan 23, 2017
I noticed by the past that these files appeared as modified in git but didn't pay attention to it. Now following #5726, I still can reproduce the issue on Python 2:
Prevent PLY to overwrite its generated files.
mhvk commentedon Jan 25, 2017
fixed by #5728