[OS X TeX] How to get xasy to run?

Murray Eisenberg murrayeisenberg at gmail.com
Thu Aug 20 17:51:10 CEST 2020


My understanding is that the executable asymptote command-line binary is included with MacTeX/TeXLive (2020), along with support packages to use it with TeX. That executable seems to be asy in /Library/TeX/texbin (actually, tracing the link, in /usr/local/texlive/2020/bin/x86_64-darwin). And I can get that to work with the TeXShop Asymptote engine.

MacTeX/TeXLive also include the GUI app xasy, which I want to be able to use without going through TeXShop

QUESTION: How can I get xasy to work (under macOS Catalina)?

If I try to execute xasy at the Terminal command line, I get the error message show below.
I did look at the troubleshooting link referenced in the error but still do not see how to proceed. 

I did run the 3-line python script, provided at the end of the troubleshooting page, to check environmental variables. But I don’t have a clue still as to what could be wrong.

$ xasy
Traceback (most recent call last):
  File "/opt/anaconda3/lib/python3.7/site-packages/numpy/core/__init__.py", line 22, in <module>
    from . import multiarray
  File "/opt/anaconda3/lib/python3.7/site-packages/numpy/core/multiarray.py", line 12, in <module>
    from . import overrides
  File "/opt/anaconda3/lib/python3.7/site-packages/numpy/core/overrides.py", line 7, in <module>
    from numpy.core._multiarray_umath import (
ImportError: dlopen(/opt/anaconda3/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libopenblas.dylib
  Referenced from: /opt/anaconda3/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so
  Reason: image not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/TeX/texbin/xasy", line 6, in <module>
    from Window1 import MainWindow1
  File "/usr/local/texlive/2020/texmf-dist/asymptote/GUI/Window1.py", line 10, in <module>
    import numpy as np
  File "/opt/anaconda3/lib/python3.7/site-packages/numpy/__init__.py", line 140, in <module>
    from . import core
  File "/opt/anaconda3/lib/python3.7/site-packages/numpy/core/__init__.py", line 48, 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.7 from "/opt/anaconda3/bin/python3"
  * The NumPy version is: "1.19.1"

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

Original error was: dlopen(/opt/anaconda3/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libopenblas.dylib
  Referenced from: /opt/anaconda3/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so
  Reason: image not found


---
Murray Eisenberg			murrayeisenberg at gmail.com
503 King Farm Blvd #101	Home (240)-246-7240
Rockville, MD 20850-6667	Mobile (413)-427-5334


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/macostex-archives/attachments/20200820/4a539c24/attachment-0001.html>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


More information about the macostex-archives mailing list.