<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">The corresponding anaconda command is “conda install ….”.<div class=""><br class=""></div><div class="">WIth my (ana)conda environment, I already had cson, numpy, and PyQt5.sip installed. Plus pyqt (but not pyqt5).</div><div class=""><br class=""></div><div class="">There’s confusion here: I tried to install pyqt5, but that’s for python 2.7, whereas my anaconda environment is python 3.7. On the other hand, I tried to use pip3, which is the version installed as part of Anaconda; when I tried “pip3 install pyqt5”, it said that it’s already installed in my Anaconda python 3.7 environment.</div><div class=""><br class=""></div><div class="">Very confusing!</div><div class=""><br class=""></div><div class="">On the other hand, pyqt5 is available as a MacPorts port. However, MacPorts lists no port of PyQt5.sip. And even if the latter were available, to switch from using the Anaconda python to the MacPorts python would take some doing: lots of changes would be needed to the order of entries in my PATH.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 20 Aug2020, at 9:16 PM, William Slough <<a href="mailto:wslough@gmail.com" class="">wslough@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">Murray,<div class=""><br class=""></div><div class="">I think the solution to this problem is to install the missing Python packages, as noted in Section 11.1 of the Asymptote documentation. In particular, it indicates a number of packages can be installed like this:</div><div class=""><br class=""></div><div class=""> <font face="monospace" class="">  <span style="" class="">pip3 install cson numpy pyqt5 PyQt5.sip</span></font></div><div class=""><font face="monospace" class=""><span style="" class=""><br class=""></span></font></div><div class=""><span style="" class=""><font face="monospace" class="">As a reminder, pip3 </font><font face="arial, sans-serif" class="">is the Python package installer. However, since your Python installation appears to be from Anaconda, I believe it uses its own package manager. You may need to consult the Anaconda documentation to see exactly how to use that, since I do not have first-hand experience with it.</font></span></div><div class=""><span style="" class=""><font face="arial, sans-serif" class=""><br class=""></font></span></div><div class=""><span style="" class=""><font face="arial, sans-serif" class="">I am encouraged by the fact that this single "pip3" command was all I needed to turn a broken xasy into a functioning one. (It did have a small problem with a missing font, but this seemed like a small issue.) Thus, I think if you can convince Anaconda to install these missing Python packages you will have similar success.</font></span></div><div class=""><span style="" class=""><font face="arial, sans-serif" class=""><br class=""></font></span></div><div class=""><span style="" class=""><font face="arial, sans-serif" class="">Good luck!</font></span></div><div class=""><span style="" class=""><font face="arial, sans-serif" class=""><br class=""></font></span></div><div class=""><span style="" class=""><font face="arial, sans-serif" class="">Bill Slough</font></span></div></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 20, 2020 at 7:18 PM Murray Eisenberg <<a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a>> wrote:<br class=""></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" class="">I tried the MacPorts port of asymptote. But that does not seem to include xasy!<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 20 Aug2020, at 6:20 PM, William Slough <<a href="mailto:wslough@gmail.com" target="_blank" class="">wslough@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class=""><div dir="ltr" class="">Murray,<br class=""><br class="">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 class=""><br class=""><font face="monospace" class="">Traceback (most recent call last):<br class="">  File "/Library/TeX/texbin/xasy", line 4, in <module><br class="">    import PyQt5.QtWidgets as Qw<br class="">ModuleNotFoundError: No module named 'PyQt5'</font><div class=""><font face="monospace" class=""><br class=""></font></div><div class=""><font face="arial, sans-serif" class="">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 class=""><font face="arial, sans-serif" class=""><br class=""></font></div><div class=""><font face="arial, sans-serif" class="">Bill Slough</font></div><div class=""><font face="arial, sans-serif" class="">Eastern Illinois University</font></div><div class=""><font face="arial, sans-serif" class="">Mathematics and Computer Science Department (emeritus)</font></div><div class=""><font face="arial, sans-serif" class="">Charleston, IL</font></div></div><br class=""><br class=""><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" class="">murrayeisenberg@gmail.com</a>> wrote:<br class=""></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" class="">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" class="">asy </span>in <span style="font-family:Menlo;font-size:13px" class="">/Library/TeX/texbin </span>(actually, tracing the link, in <span style="font-family:Menlo;font-size:13px" class="">/usr/local/texlive/2020/bin/x86_64-darwin</span>). And I can get that to work with the TeXShop Asymptote engine.<div class=""><br class=""></div><div class="">MacTeX/TeXLive also include the GUI app <span style="font-family:Menlo;font-size:13px" class="">xasy</span>, which I want to be able to use without going through TeXShop</div><div class=""><br class=""></div><div class="">QUESTION: How can I get <span style="font-family:Menlo;font-size:13px" class="">xasy</span> to work (under macOS Catalina)?</div><div class=""><br class=""></div><div class="">If I try to execute <span style="font-family:Menlo;font-size:13px" class="">xasy</span> at the Terminal command line, I get the error message show below.</div><div class="">I did look at the troubleshooting link referenced in the error but still do not see how to proceed. </div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class=""><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">$ xasy</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Traceback (most recent call last):</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">  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" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">    from . import multiarray</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">  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" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">    from . import overrides</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">  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" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">    from numpy.core._multiarray_umath import (</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">ImportError: dlopen(/opt/anaconda3/lib/python3.7/site-packages/numpy/core/_<a href="http://multiarray_umath.cpython-37m-darwin.so/" target="_blank" class="">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" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">  Referenced from: /opt/anaconda3/lib/python3.7/site-packages/numpy/core/_<a href="http://multiarray_umath.cpython-37m-darwin.so/" target="_blank" class="">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" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">  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" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">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" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Traceback (most recent call last):</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">  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" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">    from Window1 import MainWindow1</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">  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" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">    import numpy as np</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">  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" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">    from . import core</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">  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" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">    raise ImportError(msg)</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">ImportError: </span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">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" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">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" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">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" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">installed.</span></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;min-height:15px" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">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" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">    <a href="https://numpy.org/devdocs/user/troubleshooting-importerror.html" target="_blank" class="">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" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">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" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">  * 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" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">  * 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" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">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" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">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" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin:0px;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Original error was: dlopen(/opt/anaconda3/lib/python3.7/site-packages/numpy/core/_<a href="http://multiarray_umath.cpython-37m-darwin.so/" target="_blank" class="">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" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">  Referenced from: /opt/anaconda3/lib/python3.7/site-packages/numpy/core/_<a href="http://multiarray_umath.cpython-37m-darwin.so/" target="_blank" class="">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" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">  Reason: image not found</span></div><div class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><br class=""></span></div><div class=""><div class="">
---<br class="">Murray Eisenberg<span style="white-space:pre-wrap" class="">                  </span><a href="mailto:murrayeisenberg@gmail.com" target="_blank" class="">murrayeisenberg@gmail.com</a><br class="">503 King Farm Blvd #101<span style="white-space:pre-wrap" class="">      </span>Home (240)-246-7240<br class="">Rockville, MD 20850-6667<span style="white-space:pre-wrap" class="">     </span>Mobile (413)-427-5334<br class=""><br class="">

</div>

<br class=""></div></div></div>----------- Please Consult the Following Before Posting -----------<br class="">
TeX FAQ: <a href="http://www.tex.ac.uk/faq" rel="noreferrer" target="_blank" class="">http://www.tex.ac.uk/faq</a><br class="">
List Reminders and Etiquette: <a href="https://sites.esm.psu.edu/~gray/tex/" rel="noreferrer" target="_blank" class="">https://sites.esm.psu.edu/~gray/tex/</a><br class="">
List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx" rel="noreferrer" target="_blank" class="">http://dir.gmane.org/gmane.comp.tex.macosx</a><br class="">
                <a href="https://email.esm.psu.edu/pipermail/macosx-tex/" rel="noreferrer" target="_blank" class="">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br class="">
TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" rel="noreferrer" target="_blank" class="">http://mactex-wiki.tug.org/</a><br class="">
List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" rel="noreferrer" target="_blank" class="">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br class="">
</blockquote></div></div>
----------- Please Consult the Following Before Posting -----------<br class="">TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank" class="">http://www.tex.ac.uk/faq</a><br class="">List Reminders and Etiquette: <a href="https://sites.esm.psu.edu/~gray/tex/" target="_blank" class="">https://sites.esm.psu.edu/~gray/tex/</a><br class="">List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx" target="_blank" class="">http://dir.gmane.org/gmane.comp.tex.macosx</a><br class="">                <a href="https://email.esm.psu.edu/pipermail/macosx-tex/" target="_blank" class="">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br class="">TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" target="_blank" class="">http://mactex-wiki.tug.org/</a><br class="">List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" target="_blank" class="">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br class=""></div></blockquote></div><br class=""><div class="">
---<br class="">Murray Eisenberg<span style="white-space:pre-wrap" class="">                  </span><a href="mailto:murrayeisenberg@gmail.com" target="_blank" class="">murrayeisenberg@gmail.com</a><br class="">503 King Farm Blvd #101<span style="white-space:pre-wrap" class="">      </span>Home (240)-246-7240<br class="">Rockville, MD 20850-6667<span style="white-space:pre-wrap" class="">     </span>Mobile (413)-427-5334<br class=""><br class="">

</div>
<br class=""></div></blockquote></div>
</div></blockquote></div><br class=""><div class="">
---<br class="">Murray Eisenberg<span class="Apple-tab-span" style="white-space: pre;">                       </span><a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a><br class="">503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;">     </span>Home (240)-246-7240<br class="">Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;">  </span>Mobile (413)-427-5334<br class=""><br class="">

</div>
<br class=""></div></body></html>