Problems opening Sage binary on MacOS 10.15

43 views
Skip to first unread message

john_perry_usm

unread,
Aug 6, 2020, 2:25:00 PM8/6/20
to sage-support
Hello

I recently upgraded to MacOS 10.15. I can get Sage 8.7 to work (more on that in a moment) but Sage 9.1 doesn't.

The first problem is the Apple "quarantine". I found the fix to that (thanks!) but perhaps a note should be added to the download webpage, just as there's a note about MacOS 10.11? I mean this: "On OS X version 10.11 (El Capitan), you need at least sage-6.10. It does not work with older versions of SageMath."

The second problem is that when I start it now, it gives me this error:

$ /Applications/SageMath/sage 
dyld: Library not loaded: /Users/buildbot-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidmas3/local/lib/libpython3.7m.dylib
  Referenced from: /Applications/SageMath/local/bin/python3
  Reason: image not found
/Applications/SageMath/src/bin/sage-python: line 2: 46885 Abort trap: 6           sage -python "$@"

I don't know if it's because it seems to be trying to reference "/Users/buildbot", but I have no such link on my system. it seems odd that I'm the only person to report this problem, though.

Tim McLarnan

unread,
Aug 6, 2020, 5:02:46 PM8/6/20
to sage-support

I certainly don't know enough to solve the problem, but I'm running OS X 10.15.6, and I see

$ /Applications/SageMath-9.1.app/sage

┌────────────────────────────────────────────────────────────────────┐

│ SageMath version 9.1, Release Date: 2020-05-20                     │

│ Using Python 3.7.3. Type "help()" for help.                        │

└────────────────────────────────────────────────────────────────────┘

sage: 2+2

4

sage: 

kcrisman

unread,
Aug 7, 2020, 1:45:23 PM8/7/20
to sage-support


I recently upgraded to MacOS 10.15. I can get Sage 8.7 to work (more on that in a moment) but Sage 9.1 doesn't.

The first problem is the Apple "quarantine". I found the fix to that (thanks!) but perhaps a note should be added to the download webpage, just as there's a note about MacOS 10.11? I mean this: "On OS X version 10.11 (El Capitan), you need at least sage-6.10. It does not work with older versions of SageMath."


See https://github.com/sagemath/website/pull/193 - I'm not sure why this has been held up.

 
The second problem is that when I start it now, it gives me this error:

$ /Applications/SageMath/sage 
dyld: Library not loaded: /Users/buildbot-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidmas3/local/lib/libpython3.7m.dylib
  Referenced from: /Applications/SageMath/local/bin/python3
  Reason: image not found
/Applications/SageMath/src/bin/sage-python: line 2: 46885 Abort trap: 6           sage -python "$@"


I wonder (though obviously the path looks grim) if that is a sign you don't actually have Python 3 on your system.  Is that correct?  I did create some py2 binaries but apparently they didn't make it to the servers - though those were only for 10.11, so probably not optimal for your 10.15 machine (which one would think has py3, so probably it's something else).

john_perry_usm

unread,
Aug 7, 2020, 2:12:34 PM8/7/20
to sage-support
OK, the problem seems to have been quarantine; as in, I knew I needed to remove the quarantine bit on 8.7, but I didn't realize that I had to remove it on 9.1 as well.

At least, I think that's what went wrong. Here's what I did:
  • Removed the old (nonworking) SageMath 9.1.
  • Re-mounted the dmg.
  • Copied the application over to /Applications.
  • Executed /Applications/SageMath/sage.
  • Lots of messages about something being adjusted.
  • Crash, no reason given.
  • I look in a script file and try to run /Applications/sage -python and get a message that python3.7 has a security issue.
  • I run the command:
xattr -dr com.apple.quarantine ../SageMath
  • Now it works.
My misunderstanding was in thinking that the quarantine issue was resolved by 9.1. I think that's my fault, and not a bug.

john_perry_usm

unread,
Aug 7, 2020, 2:16:28 PM8/7/20
to sage-support
On Friday, August 7, 2020 at 12:45:23 PM UTC-5, kcrisman wrote:
The first problem is the Apple "quarantine". I found the fix to that (thanks!) but perhaps a note should be added to the download webpage, just as there's a note about MacOS 10.11? I mean this: "On OS X version 10.11 (El Capitan), you need at least sage-6.10. It does not work with older versions of SageMath."


See https://github.com/sagemath/website/pull/193 - I'm not sure why this has been held up.

I might be misreading things, but Harald still has the "Do not merge" tag because your patch's href still has no reference:

see <a href="">these instructions if you have difficulties.

The second problem is that when I start it now, it gives me this error:

$ /Applications/SageMath/sage 
dyld: Library not loaded: /Users/buildbot-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidmas3/local/lib/libpython3.7m.dylib
  Referenced from: /Applications/SageMath/local/bin/python3
  Reason: image not found
/Applications/SageMath/src/bin/sage-python: line 2: 46885 Abort trap: 6           sage -python "$@"


I wonder (though obviously the path looks grim) if that is a sign you don't actually have Python 3 on your system.  Is that correct?

I don't. They're included with sage, but as I noted above, the quarantine was obstructing them. The abort message had confused me.

john_perry_usm

unread,
Aug 7, 2020, 2:17:15 PM8/7/20
to sage-support
Thanks to everyone for the help, BTW.

kcrisman

unread,
Aug 8, 2020, 9:53:34 PM8/8/20
to sage-support

Glad you were able to fix this!

See https://github.com/sagemath/website/pull/193 - I'm not sure why this has been held up.

I might be misreading things, but Harald still has the "Do not merge" tag because your patch's href still has no reference:

I fixed that in the second commit a while ago.  There is still even more to be done, but in files not in the public repo, which are needless to say more time-consuming to figure out.
Reply all
Reply to author
Forward
0 new messages