On Wednesday, January 23, 2019 at 9:58:19 AM UTC-8, E. Madison Bray wrote:
>
> On Wed, Jan 23, 2019 at 6:26 PM John H Palmieri <jhpalm...@gmail.com 
> <javascript:>> wrote: 
> > 
> > 
> > 
> > On Wednesday, January 23, 2019 at 9:11:17 AM UTC-8, John H Palmieri 
> wrote: 
> >> 
> >> 
> >> 
> >> On Wednesday, January 23, 2019 at 9:06:45 AM UTC-8, John H Palmieri 
> wrote: 
> >>> 
> >>> 
> >>> 
> >>> On Wednesday, January 23, 2019 at 8:57:24 AM UTC-8, John H Palmieri 
> wrote: 
> >>>> 
> >>>> 
> >>>> 
> >>>> On Wednesday, January 23, 2019 at 3:59:41 AM UTC-8, E. Madison Bray 
> wrote: 
> >>>>> 
> >>>>> On Tue, Jan 22, 2019 at 8:30 PM John H Palmieri <jhpalm...@gmail.com> 
> wrote: 
> >>>>> > 
> >>>>> > Here is the situation: I've been playing around with new versions 
> of Sphinx. If I've installed a new version and then go back to an old 
> version, the directory local/lib/python2.7/site-libraries/sphinx/ is not 
> removed and then recreated, but instead the changed files are reinstalled, 
> leaving remnants of the previous version there. Is this how things are 
> supposed to work? 
> >>>>> 
> >>>>> That is definitely not how anything is supposed to work, nor is it 
> how 
> >>>>> it does work normally.  You'd have to describe exactly what you did 
> >>>>> though. 
> >>>> 
> >>>> 
> >>>> I checked out #26451 (which updates Sphinx) and ran "make". Played 
> around with it for a while, then checked out "develop" and ran "make". 
> Frequently, but maybe not every time, math.py remains and I get an import 
> error when Sage uses Sphinx to build the documentation. 
> >>> 
> >>> 
> >>> It's also possible that I ran "./sage -f sphinx", too, in case that 
> makes a difference. 
> >>> 
> >>>> 
> >>>>> 
> >>>>> FWIW pip keeps its own manifest of what files it installed, 
> >>>>> so when you remove/upgrade a package it will normally remove all 
> those 
> >>>>> files first. 
> >> 
> >> 
> >> I just now checked out the git branch for #26451, ran "make build", 
> then checked out develop, and ran "make". When it reached the docbuilding 
> part of things, I got 
> >> 
> >> [dochtml]     from math import sqrt 
> >> [dochtml] ImportError: cannot import name sqrt 
> >> 
> >> because math.py remains in 
> local/lib/python2.7/site-libraries/sphinx/util/ 
> >> 
> >> I did it again and the same thing happened (check out 26451, make 
> build, check out develop, make). 
> > 
> > 
> > The installation log for Sphinx says 
> > 
> >> Old-style or corrupt stamp file 
> '/Users/palmieri/Desktop/Sage_stuff/git/sage/local/var/lib/sage/installed/sphinx-1.7.6.p0'
>  
>
> >> No legacy uninstaller found for 'sphinx'; nothing to do 
> > 
> > 
> > (A message like this appears for both the old and new versions of 
> Sphinx.) Could this be related? The json file seems to be corrupted: it 
> looks to me like the file names should be quoted. Of course, all of the 
> stamp files in the "installed" directory have this format, so my guess is 
> that they are all corrupted, as far as json (or Python's json module) is 
> concerned. 
>
> Indeed that is the problem.  It appears that those files are corrupt 
> on OSX.  I can reproduce this as well.  I wonder why no one's 
> mentioned it before now: That could have been a real source of 
> problems (including this one)! 
>
> Apparently it comes down to a GNU sed vs. BSD sed difference.  I think 
> I'll just replace this part of the code with a snippet of Python. 
>
> I sure do hate computers. 
>

Please cc me on any ticket you open.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to