3-manifolds / Sage_macOS

SageMath as a macOS application bundle.
152 stars 15 forks source link

failure in SageMath-9.4 1.2.2 #30

Closed herbs closed 2 years ago

herbs commented 2 years ago

I'm getting a failure in executing sage on the .sage file generated from the example.tex file:

Code block (line 48) begin...Traceback (most recent call last): File "/Users/herbs/Desktop/SageExample.sagetex.sage.py", line 36, in s = solve(eqn, a,b,c) File "/var/tmp/sage-9.4-current/local/lib/python3.9/site-packages/sage/symbolic/relation.py", line 1115, in solve m = maxima(f) File "sage/misc/lazy_import.pyx", line 362, in sage.misc.lazy_import.LazyImport.call (build/cythonized/sage/misc/lazy_import.c:4034) return self.get_object()(*args, **kwds) File "sage/misc/lazy_import.pyx", line 190, in sage.misc.lazy_import.LazyImport.get_object (build/cythonized/sage/misc/lazy_import.c:2440) return self._get_object() File "sage/misc/lazy_import.pyx", line 224, in sage.misc.lazy_import.LazyImport._get_object (build/cythonized/sage/misc/lazy_import.c:2714) self._object = getattr(import(self._module, {}, {}, [self._name]), self._name) File "/var/tmp/sage-9.4-current/local/lib/python3.9/site-packages/sage/interfaces/maxima_lib.py", line 103, in ecl_eval("(require 'maxima \"{}\")".format(MAXIMA_FAS)) File "sage/libs/ecl.pyx", line 1374, in sage.libs.ecl.ecl_eval (build/cythonized/sage/libs/ecl.c:11033) cpdef EclObject ecl_eval(str s): File "sage/libs/ecl.pyx", line 1397, in sage.libs.ecl.ecl_eval (build/cythonized/sage/libs/ecl.c:10966) o=ecl_safe_eval(python_to_ecl(s, True)) File "sage/libs/ecl.pyx", line 339, in sage.libs.ecl.ecl_safe_eval (build/cythonized/sage/libs/ecl.c:5582) raise RuntimeError("ECL says: {}".format( RuntimeError: ECL says: Filesystem error with pathname #P"/Users/culler/programs/Sage_macOS/Sage_framework/bigrepo/sage/local/lib/ecl/maxima.fas". Either 1) the file does not exist, or 2) we are not allowed to access the file, or 3) the pathname points to a broken symbolic link.

Notice the hard coded full path to /Users/culler/... .

culler commented 2 years ago

Thank you for testing the prerelease!!!

Looks like our bogeyman is back. Time for more adjustments to the build script.

herbs commented 2 years ago

On Oct 18, 2021, at 10:18 AM, Marc Culler @.***> wrote:

Thank you for testing the prerelease!!!

Looks like our bogeyman is back. Time for more adjustments to the build script.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Howdy,

Looks like three variables in sage_conf.py need to be set to

SAGE_LOCAL = "/var/tmp/sage-9.4-current/local" SAGE_ROOT = "/var/tmp/sage-9.4-current"

MAXIMA = "/var/tmp/sage-9.4-current/local/bin/maxima"

since they point to your $HOME right now in 1.2.2. Maybe/Probably other things too; I didn't check.

Good Luck,

Herb Schulz @.***

culler commented 2 years ago

Thanks. The build script is supposed to patch that file, but obviously it doesn't.

culler commented 2 years ago

I have replaced the disk image with one that has a correct sage_conf.py. It also includes the one-line change to gap.py that I proposed in trac #32711 to enable using the GAP PackageManager with the app. I tested compiling example.tex and it worked for me.

herbs commented 2 years ago

On Oct 18, 2021, at 2:46 PM, Marc Culler @.***> wrote:

I have replaced the disk image with one that has a correct sage_conf.py. It also includes the one-line change to gap.py that I proposed in trac #32711 to enable using the GAP PackageManager with the app. I tested compiling example.tex and it worked for me.

Howdy,

Got it and it runs fine when I typeset example.tex.

Thanks for the quick turnover.

Good Luck,

Herb Schulz @.***