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

Ettore Aldrovandi ealdrov at math.fsu.edu
Thu Aug 20 18:43:54 EDT 2020


I get the same error on Catalina, I don’t have the Qt bindings. Presumably running ‘pip install PyQt5’ will take care of that. 

As for Murray’s error I don’t know: there’s an anaconda installed python3. How was it installed?

—Ettore

Ettore Aldrovandi
Department of Mathematics, Florida State University
1017 Academic Way                *   http://www.math.fsu.edu/~ealdrov
Tallahassee, FL 32306-4510, USA * * aldrovandi at math dot fsu dot edu

> On Aug 20, 2020, at 18:20, William Slough <wslough at gmail.com> wrote:
> 
> Murray,
> 
> 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:
> 
> Traceback (most recent call last):
>   File "/Library/TeX/texbin/xasy", line 4, in <module>
>     import PyQt5.QtWidgets as Qw
> ModuleNotFoundError: No module named 'PyQt5'
> 
> 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.)
> 
> Bill Slough
> Eastern Illinois University
> Mathematics and Computer Science Department (emeritus)
> Charleston, IL
> 
> 
> On Thu, Aug 20, 2020 at 10:51 AM Murray Eisenberg <murrayeisenberg at gmail.com <mailto:murrayeisenberg at gmail.com>> wrote:
> 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 <http://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 <http://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 <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 <http://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 <http://multiarray_umath.cpython-37m-darwin.so/>
>   Reason: image not found
> 
> 
> ---
> Murray Eisenberg			murrayeisenberg at gmail.com <mailto:murrayeisenberg at gmail.com>
> 503 King Farm Blvd #101	Home (240)-246-7240
> Rockville, MD 20850-6667	Mobile (413)-427-5334
> 
> 
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq <http://www.tex.ac.uk/faq>
> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/ <https://sites.esm.psu.edu/~gray/tex/>
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx <http://dir.gmane.org/gmane.comp.tex.macosx>
>                 https://email.esm.psu.edu/pipermail/macosx-tex/ <https://email.esm.psu.edu/pipermail/macosx-tex/>
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/ <http://mactex-wiki.tug.org/>
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex <https://email.esm.psu.edu/mailman/listinfo/macosx-tex>
> ----------- 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20200820/dba147fd/attachment.htm>


More information about the MacOSX-TeX mailing list