Dear GSAS-II Users,
Sorry for a long message, but this is only for Mac users. If you are using
GSAS-II on Windows or Linux, you do not need to read farther.
I have seen some problems where subversion (svn) has problems updating
GSAS-II. As far as I can tell, this only happens on OS X (Macs) with gsas2full
installations and probably only with 10.15.x (Catalina). The problem is noted
when an error like this displayed in the terminal window during updates:
============================================================
****** Drat, failed again: *********
============================================================
svn: E155017: Checksum mismatch while updating ‘....cpython-37m-darwin.so':
expected: 0347311810c0a981b9167f710b70509b
actual: c8fe8f890e1f8e9f83b546045984d8ef
Traceback (most recent call last):
File "/Users/toby/gsas2full/GSASII/GSASIIpath.py", line 1153, in <module>
fp.write('\n')
File "/Users/toby/gsas2full/GSASII/GSASIIpath.py", line 476, in svnUpdateDir
out,err = MakeByte2str(s.communicate())
Exception: svn update failed
I do not know why this happens, as it seems to be a failure of the installation
process rather than something inside GSAS-II, since checksum errors are a sign
that files are being altered. When this happens, the update fails after
downloading only some of the files for the new version. This can leave GSAS-II
in a state where the program will not start or will produce serious errors.
What makes this even worse is that unless you look carefully at the update
output in the console window you may not know that the update did not complete.
I have now fixed the update process so that this problem is addressed, but if
the update will not complete, you may not get the latest versions of the files
that fix this.
One annoying, but fairly simple fix for this would be to reinstall GSAS-II from
the latest gsas2full distribution (created last night). Instructions here:
https://subversion.xray.aps.anl.gov/trac/pyGSAS/wiki/MacSingleStepInstallerFigs.
Alternately, for those of you more comfortable with downloading individual
files and running commands, use this link
https://subversion.xray.aps.anl.gov/trac/pyGSAS/export/head/install/bootstrap.py
move that file into …/GSASII and then use these commands in a terminal window
to run an update with this file:
source …/bin/activate
python …/GSASII/bootstrap.py
(replace … with the location where you installed GSAS-II, which by default is
~/gsas2full). It is also possible to download the latest GSASIIpath.py with URL
https://subversion.xray.aps.anl.gov/trac/pyGSAS/export/head/trunk/GSASIIpath.py
and move that file into …/GSASII and then try the update from inside GSAS-II.
How can you tell if this problem exists? You can run this command in a terminal
window:
…/bin/svn …/GSASII
If there are any files marked with a *, those files still need to be updated,
as below:
toby@BHT20 ~ % ~/gsas2full/bin/svn st -u ~/gsas2full/GSASII
S * 4408
/Users/toby/gsas2full/GSASII/bindist/histosigma2d.cpython-37m-darwin.so
S * 4408
/Users/toby/gsas2full/GSASII/bindist/polymask.cpython-37m-darwin.so
S * 4408
/Users/toby/gsas2full/GSASII/bindist/spotmask.cpython-37m-darwin.so
S * 4408
/Users/toby/gsas2full/GSASII/bindist/pyspg.cpython-37m-darwin.so
S * 4408
/Users/toby/gsas2full/GSASII/bindist/fellipse.cpython-37m-darwin.so
S * 4408
/Users/toby/gsas2full/GSASII/bindist/histogram2d.cpython-37m-darwin.so
S * 4408
/Users/toby/gsas2full/GSASII/bindist/pack_f.cpython-37m-darwin.so
S * 4408
/Users/toby/gsas2full/GSASII/bindist/pypowder.cpython-37m-darwin.so
S * 4408
/Users/toby/gsas2full/GSASII/bindist/pytexture.cpython-37m-darwin.so
S * 4408
/Users/toby/gsas2full/GSASII/bindist/pydiffax.cpython-37m-darwin.so
S * 4408
/Users/toby/gsas2full/GSASII/bindist/unpack_cbf.cpython-37m-darwin.so
! L S 4645 /Users/toby/gsas2full/GSASII/bindist
* 4408
/Users/toby/gsas2full/GSASII/NIST_profile/atan_windowed_FP_profile.py
* 4408 /Users/toby/gsas2full/GSASII/ElementTable.py
...
This on the other hand is normal:
toby@BHT20 ~ % ~/gsas2full/bin/svn st -u /Users/toby/gsas2full/GSASII
S 4645 /Users/toby/gsas2full/GSASII/bindist
? /Users/toby/gsas2full/GSASII/GSAS-II.py
! 4645 /Users/toby/gsas2full/GSASII/AllBinaries
? /Users/toby/gsas2full/GSASII/GSAS-II g2full.app
? /Users/toby/gsas2full/GSASII/bootstrap.log
? /Users/toby/gsas2full/GSASII/bootstrap.py
? /Users/toby/gsas2full/GSASII/GSAS-II.app
? /Users/toby/gsas2full/GSASII/config.py
Status against revision: 4645
If there are files to update and but the update menu command in GSAS-II says
you are already updated to the latest version, you may be able to fix this by
downgrading by a version and then upgrading.
There is a lot here. If this is not clear or you are stuck with problems,
please contact me ([email protected]<mailto:[email protected]>) and I will help you. My
preference would be to do this over a Zoom session.
Brian
_______________________________________________
GSAS-II mailing list
[email protected]
https://mailman.aps.anl.gov/mailman/listinfo/gsas-ii