tar

15 Reputation

0 Badges

16 years, 201 days

MaplePrimes Activity


These are replies submitted by tar

((x,y) -> min(x,y))~(A,B) seems to work, but if min~ is supposed to work, that would be more concise. 

In maple 2024, I got a little further before a crash

 

>>> import os
>>> os.environ["DYLD_LIBRARY_PATH"]="/Library/Frameworks/Maple.framework/Versions/2024/bin.APPLE_UNIVERSAL_OSX"
>>> import maple
>>> import maple.namespace as mpl
>>> x = mpl.x
zsh: segmentation fault  python

 

I found the python package at /Library/Frameworks/Maple.framework/Versions/2023/Python.APPLE_UNIVERSAL_OSX/lib/maple, so I ran

export PYTHONPATH=/Library/Frameworks/Maple.framework/Versions/2023/Python.APPLE_UNIVERSAL_OSX/lib

Then I started python, and ran 

import os
# maple.Session seems to read from DYLD_LIBRARY_PATH, but macos doesn't pass DYLD_LIBRARY_PATH
# to child processes (https://stackoverflow.com/a/60128194), so I set DYLD_LIBRARY_PATH here
os.environ["DYLD_LIBRARY_PATH"]="/Library/Frameworks/Maple.framework/Versions/2023/bin.APPLE_UNIVERSAL_OSX"
import maple

and when I ran the last line got:

fatal error(-1) loading GMP library: /Library/Frameworks/Maple.framework/Versions/bin.APPLE_UNIVERSAL_OSX/libmaplegmp.dylib

zsh: abort      python

This is with macos 14.3.1 (23D60)

So, found the python package, but still can't get it working.

Submitted SCR

Page 1 of 1