Ask Your Question
1

Why failure to launch python 3.9 in script?

asked 2022-03-16 17:07:45 +0200

LouP gravatar image

On My Mac I've downloaded Sage 9.4 which has Python 3.9 and put it into my Applications folder after extracting. However, when I try to run a script using a shebang with the path to Python3.9 I have a problem with a binary_pkg that can't be found to run Python 3.9 in the Sage package.

the error message is

dyld: Library not loaded: /Users/buildbot-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidmas3/local/lib/libpython3.9.dylib

Running a script worked for earlier Sagemath packages using Python2.7. Does anyone understand this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-03-17 15:01:01 +0200

Marc Culler gravatar image

The library path in your error message indicates that you downloaded a "command line" binary tarball from one of the SageMath mirrors but you never ran the sage executable that it contains. The first time you run sage it will ask you to wait while it runs a script that replaces all of the buildbot paths with hard wired paths to the directory into which you unpacked the tarball. After that, the sage installation cannot be moved.

This also indicates that you chose to ignore the recommendation for how to install sage for macOS as published on the Sage download page. My suggestion is that you follow that recommendation and download the SageMath app from this github project. While you are at it, you may as well download version 9.5.

edit flag offensive delete link more

Comments

Thanks. That worked.

LouP gravatar imageLouP ( 2022-03-22 22:43:05 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2022-03-16 17:07:45 +0200

Seen: 53 times

Last updated: Mar 17