<div dir="ltr">Murray,<div><br></div><div>As a postscript to my earlier comment, here's some additional information. Section 11.1 of the Asymptote manual indicates which Python packages are required. When I used "pip3" to install those, this seemed to be all that was needed to allow my xasy command to run.</div><div><br></div><div>Hope this helps.</div><div><br></div><div>Bill Slough</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 20, 2020 at 5:20 PM William Slough <<a href="mailto:wslough@gmail.com">wslough@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Murray,<br><br>My guess is that the GUI version, xasy, is not necessarily expected to run "out of the box" from a MacTeX installation, even though the script to start it is present. For what it's worth, I'm still on Mojave and when I tried to run xasy I got a slightly different error when try to run xasy:<br><br><font face="monospace">Traceback (most recent call last):<br> File "/Library/TeX/texbin/xasy", line 4, in <module><br> import PyQt5.QtWidgets as Qw<br>ModuleNotFoundError: No module named 'PyQt5'</font><div><font face="monospace"><br></font></div><div><font face="arial, sans-serif">This may not be the answer you are looking for, but I think the simplest way to get it to run is to install it via Macports. If you already use Macports, this will probably be a simple matter to do a "port install." (Using Macports is one of the recommended approaches for OS X given on the Asymptote site. The other is compiling from source, which could be a daunting procedure.)</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Bill Slough</font></div><div><font face="arial, sans-serif">Eastern Illinois University</font></div><div><font face="arial, sans-serif">Mathematics and Computer Science Department (emeritus)</font></div><div><font face="arial, sans-serif">Charleston, IL</font></div></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 20, 2020 at 10:51 AM Murray Eisenberg <<a href="mailto:murrayeisenberg@gmail.com" target="_blank">murrayeisenberg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">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 <span style="font-family:Menlo;font-size:13px">asy </span>in <span style="font-family:Menlo;font-size:13px">/Library/TeX/texbin </span>(actually, tracing the link, in <span style="font-family:Menlo;font-size:13px">/usr/local/texlive/2020/bin/x86_64-darwin</span>). And I can get that to work with the TeXShop Asymptote engine.<div><br></div><div>MacTeX/TeXLive also include the GUI app <span style="font-family:Menlo;font-size:13px">xasy</span>, which I want to be able to use without going through TeXShop</div><div><br></div><div>QUESTION: How can I get <span style="font-family:Menlo;font-size:13px">xasy</span> to work (under macOS Catalina)?</div><div><br></div><div>If I try to execute <span style="font-family:Menlo;font-size:13px">xasy</span> at the Terminal command line, I get the error message show below.</div><div>I did look at the troubleshooting link referenced in the error but still do not see how to proceed. </div><div><br></div><div>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.</div><div><br></div><div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">$ xasy</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Traceback (most recent call last):</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> File "/opt/anaconda3/lib/python3.7/site-packages/numpy/core/__init__.py", line 22, in <module></span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> from . import multiarray</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> File "/opt/anaconda3/lib/python3.7/site-packages/numpy/core/multiarray.py", line 12, in <module></span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> from . import overrides</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> File "/opt/anaconda3/lib/python3.7/site-packages/numpy/core/overrides.py", line 7, in <module></span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> from numpy.core._multiarray_umath import (</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">ImportError: dlopen(/opt/anaconda3/lib/python3.7/site-packages/numpy/core/_<a href="http://multiarray_umath.cpython-37m-darwin.so" target="_blank">multiarray_umath.cpython-37m-darwin.so</a>, 2): Library not loaded: @rpath/libopenblas.dylib</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> Referenced from: /opt/anaconda3/lib/python3.7/site-packages/numpy/core/_<a href="http://multiarray_umath.cpython-37m-darwin.so" target="_blank">multiarray_umath.cpython-37m-darwin.so</a></span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> Reason: image not found</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">During handling of the above exception, another exception occurred:</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Traceback (most recent call last):</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> File "/Library/TeX/texbin/xasy", line 6, in <module></span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> from Window1 import MainWindow1</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> File "/usr/local/texlive/2020/texmf-dist/asymptote/GUI/Window1.py", line 10, in <module></span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> import numpy as np</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> File "/opt/anaconda3/lib/python3.7/site-packages/numpy/__init__.py", line 140, in <module></span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> from . import core</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> File "/opt/anaconda3/lib/python3.7/site-packages/numpy/core/__init__.py", line 48, in <module></span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> raise ImportError(msg)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">ImportError: </span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Importing the numpy C-extensions failed. This error can happen for</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">many reasons, often due to issues with your setup or how NumPy was</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">installed.</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">We have compiled some common reasons and troubleshooting tips at:</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> <a href="https://numpy.org/devdocs/user/troubleshooting-importerror.html" target="_blank">https://numpy.org/devdocs/user/troubleshooting-importerror.html</a></span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Please note and check the following:</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> * The Python version is: Python3.7 from "/opt/anaconda3/bin/python3"</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> * The NumPy version is: "1.19.1"</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">and make sure that they are the versions you expect.</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Please carefully study the documentation linked above for further help.</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Original error was: dlopen(/opt/anaconda3/lib/python3.7/site-packages/numpy/core/_<a href="http://multiarray_umath.cpython-37m-darwin.so" target="_blank">multiarray_umath.cpython-37m-darwin.so</a>, 2): Library not loaded: @rpath/libopenblas.dylib</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> Referenced from: /opt/anaconda3/lib/python3.7/site-packages/numpy/core/_<a href="http://multiarray_umath.cpython-37m-darwin.so" target="_blank">multiarray_umath.cpython-37m-darwin.so</a></span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures"> Reason: image not found</span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div><div>
---<br>Murray Eisenberg<span style="white-space:pre-wrap"> </span><a href="mailto:murrayeisenberg@gmail.com" target="_blank">murrayeisenberg@gmail.com</a><br>503 King Farm Blvd #101<span style="white-space:pre-wrap"> </span>Home (240)-246-7240<br>Rockville, MD 20850-6667<span style="white-space:pre-wrap"> </span>Mobile (413)-427-5334<br><br>
</div>
<br></div></div></div>----------- Please Consult the Following Before Posting -----------<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" rel="noreferrer" target="_blank">http://www.tex.ac.uk/faq</a><br>
List Reminders and Etiquette: <a href="https://sites.esm.psu.edu/~gray/tex/" rel="noreferrer" target="_blank">https://sites.esm.psu.edu/~gray/tex/</a><br>
List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx" rel="noreferrer" target="_blank">http://dir.gmane.org/gmane.comp.tex.macosx</a><br>
<a href="https://email.esm.psu.edu/pipermail/macosx-tex/" rel="noreferrer" target="_blank">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br>
TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" rel="noreferrer" target="_blank">http://mactex-wiki.tug.org/</a><br>
List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" rel="noreferrer" target="_blank">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br>
</blockquote></div></div>
</blockquote></div>