Skip to content

GSAS-II wouldn't start even after fresh installation #158

@Hmmmmmmmmmm

Description

@Hmmmmmmmmmm

Dear dev,

I'm pretty new to MacOS, but here's the log of me installing GSAS-II.

Last login: Thu Apr  3 13:40:10 on ttys000
tianrao@Tians-MacBook-Air Downloads % bash gsas2full-Latest-MacOSX-arm64.sh


Welcome to gsas2full 5786

In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>> 
====================================================
This is a single-download installer for GSAS-II. It includes other
software such as Git, used to install and update GSAS-II, a Python 
interpreter and a number of Python packages required by GSAS-II. The
installer you are running will install Python, etc. and then will install
the packaged version of GSAS-II, as listed above. Once that has been
completed, the software will invoke the gitstrap.py script, which will
use git to update to the latest version of GSAS-II (this requires an
internet connection). Then it will create shortcuts to simplify
GSAS-II use. Note that the gitstrap.py script can be rerun manually to
obtain updates. 

*** Note that while this installer can be used again to install
GSAS-II in a new location, once these files are installed, they should 
not be moved. ***

If you use GSAS-II in your research, please show your support by citing:
B.H. Toby & R.B. Von Dreele, J. Appl. Cryst. 46, 544-549 (2013)  
(also see Help/About)

See the LICENSE file in the GSAS-II source code
(https://github.com/AdvancedPhotonSource/GSAS-II) for software license
information. In addition, this installer uses the BSD-3-Clause license
and additional tools associated with it have their own licensing
terms, which are licensed under BSD-3-Clause, MIT and OpenSSL
licenses. By installing this  you agree to the licensing terms of individual
packages as well. Licenses and copyright notices of these
projects can be found at the following URL:
https://github.com/conda-forge/micromamba-feedstock/tree/master/recipe. 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL CONTINUUM ANALYTICS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.



Do you accept the license terms? [yes|no]
>>> yes

gsas2full will now be installed into this location:
/Users/tianrao/gsas2full

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/Users/tianrao/gsas2full] >>> 
PREFIX=/Users/tianrao/gsas2full
Unpacking payload ...
                                                                                
Installing base environment...


Downloading and Extracting Packages:


Downloading and Extracting Packages:

Preparing transaction: done
Executing transaction: | 
done
Finish up GSAS-II installation, version 5786
launching bootstrap process
GSAS-II installer, version 5786 completed
installation finished.
Do you wish to update your shell profile to automatically initialize conda?
This will activate conda on startup and change the command prompt when activated.
If you'd prefer that conda's base environment not be activated on startup,
   run the following command when conda is activated:

conda config --set auto_activate_base false

You can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>> yes
no change     /Users/tianrao/gsas2full/condabin/conda
no change     /Users/tianrao/gsas2full/bin/conda
no change     /Users/tianrao/gsas2full/bin/conda-env
no change     /Users/tianrao/gsas2full/bin/activate
no change     /Users/tianrao/gsas2full/bin/deactivate
no change     /Users/tianrao/gsas2full/etc/profile.d/conda.sh
no change     /Users/tianrao/gsas2full/etc/fish/conf.d/conda.fish
no change     /Users/tianrao/gsas2full/shell/condabin/Conda.psm1
no change     /Users/tianrao/gsas2full/shell/condabin/conda-hook.ps1
no change     /Users/tianrao/gsas2full/lib/python3.11/site-packages/xontrib/conda.xsh
no change     /Users/tianrao/gsas2full/etc/profile.d/conda.csh
modified      /Users/tianrao/.zshrc

==> For changes to take effect, close and re-open your current shell. <==

Thank you for installing gsas2full!
tianrao@Tians-MacBook-Air Downloads % 

After this above installation, double-click on GSAS-II executable would only bring up this error message.

Last login: Thu Apr  3 21:56:55 on ttys000
'/Users/tianrao/gsas2full/GSAS-II/GSAS-II.app/Contents/MacOS/GSAS-II' '/Users/tianrao/gsas2full/GSAS-II/GSAS-II.py'; exit
(base) tianrao@Tians-MacBook-Air ~ % '/Users/tianrao/gsas2full/GSAS-II/GSAS-II.app/Contents/MacOS/GSAS-II' '/Users/tianrao/gsas2full/GSAS-II/GSAS-II.py'; exit
Traceback (most recent call last):
  File "/Users/tianrao/gsas2full/lib/python3.11/site-packages/numpy/core/__init__.py", line 24, in <module>
    from . import multiarray
  File "/Users/tianrao/gsas2full/lib/python3.11/site-packages/numpy/core/multiarray.py", line 10, in <module>
    from . import overrides
  File "/Users/tianrao/gsas2full/lib/python3.11/site-packages/numpy/core/overrides.py", line 8, in <module>
    from numpy.core._multiarray_umath import (
ImportError: dlopen(/Users/tianrao/gsas2full/lib/python3.11/site-packages/numpy/core/_multiarray_umath.cpython-311-darwin.so, 0x0002): Library not loaded: @rpath/libgfortran.5.dylib
  Referenced from: <0BF6A426-9C50-3B1B-AD10-346F538CD16E> /Users/tianrao/gsas2full/lib/libopenblas.0.dylib
  Reason: tried: '/Users/tianrao/gsas2full/lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/tianrao/gsas2full/lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/tianrao/gsas2full/lib/python3.11/site-packages/numpy/core/../../../../libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/tianrao/gsas2full/lib/python3.11/site-packages/numpy/core/../../../../libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/tianrao/gsas2full/bin/../lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/tianrao/gsas2full/bin/../lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/usr/local/lib/libgfortran.5.dylib' (no such file), '/usr/lib/libgfortran.5.dylib' (no such file, not in dyld cache)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/tianrao/gsas2full/lib/python3.11/site-packages/numpy/__init__.py", line 130, in <module>
    from numpy.__config__ import show as show_config
  File "/Users/tianrao/gsas2full/lib/python3.11/site-packages/numpy/__config__.py", line 4, in <module>
    from numpy.core._multiarray_umath import (
  File "/Users/tianrao/gsas2full/lib/python3.11/site-packages/numpy/core/__init__.py", line 50, in <module>
    raise ImportError(msg)
ImportError: 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.11 from "/Users/tianrao/gsas2full/GSAS-II/GSAS-II.app/Contents/MacOS/GSAS-II"
  * The NumPy version is: "1.26.4"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: dlopen(/Users/tianrao/gsas2full/lib/python3.11/site-packages/numpy/core/_multiarray_umath.cpython-311-darwin.so, 0x0002): Library not loaded: @rpath/libgfortran.5.dylib
  Referenced from: <0BF6A426-9C50-3B1B-AD10-346F538CD16E> /Users/tianrao/gsas2full/lib/libopenblas.0.dylib
  Reason: tried: '/Users/tianrao/gsas2full/lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/tianrao/gsas2full/lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/tianrao/gsas2full/lib/python3.11/site-packages/numpy/core/../../../../libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/tianrao/gsas2full/lib/python3.11/site-packages/numpy/core/../../../../libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/tianrao/gsas2full/bin/../lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/Users/tianrao/gsas2full/bin/../lib/libgfortran.5.dylib' (duplicate LC_RPATH '@loader_path'), '/usr/local/lib/libgfortran.5.dylib' (no such file), '/usr/lib/libgfortran.5.dylib' (no such file, not in dyld cache)


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/tianrao/gsas2full/GSAS-II/GSAS-II.py", line 12, in <module>
    import scipy.optimize # loading here addresses problem with build for wx on Pi
    ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/tianrao/gsas2full/lib/python3.11/site-packages/scipy/__init__.py", line 47, in <module>
    from numpy import __version__ as __numpy_version__
  File "/Users/tianrao/gsas2full/lib/python3.11/site-packages/numpy/__init__.py", line 135, in <module>
    raise ImportError(msg) from e
ImportError: Error importing numpy: you should not try to import numpy from
        its source directory; please exit the numpy source tree, and relaunch
        your python interpreter from there.

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

THINGS I'VE TRIED

  1. (deleted the whole folder to trash and) Fresh re-install, no luck, same error message.
  2. Tried suggested bash command here "https://advancedphotonsource.github.io/GSAS-II-tutorials/install-g2f-mac.html", no luck, same.
    g2="https://github.com/AdvancedPhotonSource/GSAS-II-buildtools/releases/download/v1.0.1/gsas2full-Latest-MacOSX-arm64.sh" curl -L "$g2" > /tmp/g2.sh; bash /tmp/g2.sh -b -p ~/g2full
  3. Tried the reset bash commnad here "https://advancedphotonsource.github.io/GSAS-II-tutorials/help.html#on-macos-and-linux" (modified as instructed in the help manual), the following error was returned. To check if those packages are installed, pip list was excucted with all the required packages installed.
(base) tianrao@Tians-MacBook-Air bin % bash reset-gsasII.sh

Bootstrapping GSAS-II into /Users/tianrao/gsas2full/GSAS-II
at 2025-04-03 22:17:42.515737
from https://github.com/AdvancedPhotonSource/GSAS-II.git

script:     gitstrap.py from March 26, 2024
Python:     3.11.9
log in /Users/tianrao/gsas2full/gitstrap.log
**********************************************************************
Checking python packages... failed

Error during bootstrap: 
   Sorry, this version of Python cannot be used to run GSAS-II.
   It is missing the following package(s):
   	numpy scipy matplotlib
   Please install these package(s) and try running gitstrap.py again.

Rerun this script using command:
     /Users/tianrao/gsas2full/bin/python /Users/tianrao/gsas2full/gitstrap.py --reset
(base) tianrao@Tians-MacBook-Air bin % python -m pip list  
Package                 Version
----------------------- -----------
archspec                0.2.3
boltons                 24.0.0
Brotli                  1.1.0
cached-property         1.5.2
certifi                 2024.2.2
cffi                    1.16.0
charset-normalizer      3.3.2
colorama                0.4.6
conda                   24.5.0
conda-libmamba-solver   24.1.0
conda-package-handling  2.2.0
conda_package_streaming 0.9.0
contourpy               1.2.1
cycler                  0.12.1
distro                  1.9.0
fonttools               4.51.0
frozendict              2.4.4
gitdb                   4.0.11
GitPython               3.1.43
h5py                    3.11.0
idna                    3.7
imageio                 2.34.1
jsonpatch               1.33
jsonpointer             2.4
kiwisolver              1.4.5
libmambapy              1.5.8
**matplotlib              3.8.4**
menuinst                2.0.2
munkres                 1.1.4
**numpy                   1.26.4**
packaging               24.0
pathlib2                2.3.7.post1
pillow                  10.3.0
pip                     24.0
platformdirs            4.2.2
pluggy                  1.5.0
pycosat                 0.6.6
pycparser               2.22
PyOpenGL                3.1.6
pyparsing               3.1.2
Pypubsub                4.0.3
PySocks                 1.7.1
python-dateutil         2.9.0
requests                2.31.0
ruamel.yaml             0.18.6
ruamel.yaml.clib        0.2.8
**scipy                   1.13.0**
setuptools              69.5.1
six                     1.16.0
smmap                   5.0.0
tornado                 6.4
tqdm                    4.66.4
truststore              0.8.0
typing_extensions       4.11.0
urllib3                 2.2.1
wheel                   0.43.0
wxPython                4.2.1
zstandard               0.22.0
(base) tianrao@Tians-MacBook-Air bin % 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions