You should not need any sudo here. Did you do something with sudo while building it? (maybe some time earlier).
I'd just remove the directory /Users/david/.sage/, for this you'd need sudo, as there is some stuff not owned by you (username "david") and try again. There shouldn't be anything of importance in there (unless it's so well-aged that it contains old Sage worksheets in the obsolete sagenb format). Or you can use chown to change the ownership of everything in /Users/david/.sage/ to david: chown david -R /Users/david/.sage/ HTH Dima On Thu, Oct 30, 2025 at 2:22 PM 'David DeMark' via sage-support < [email protected]> wrote: > Hello, > Running the newest beta to take advantage of the python 3.14 > compatibility. Now it does make it through the make process and > successfully install. However, when I attempt to run it with ./sage, it > hangs for a minute before giving me the below error message--looks like a > permission issue. sudo ./sage does however run as expected. How should I > grant permissions so I don't need to run with sudo every time? > > *Error Message: * > Traceback (most recent call last): > File "/Users/david/sage/sage/src/bin/sage-ipython", line 11, in <module> > banner() > File "/Users/david/sage/sage/src/sage/misc/banner.py", line 121, in > banner > print(banner_text(full=True)) > ^^^^^^^^^^^^^^^^^^^^^^ > File "/Users/david/sage/sage/src/sage/misc/banner.py", line 76, in > banner_text > import sage.all > File "/Users/david/sage/sage/src/sage/all.py", line 330, in <module> > sage.misc.lazy_import.save_cache_file() > File "sage/misc/lazy_import.pyx", line 1163, in > sage.misc.lazy_import.save_cache_file > File "/Users/david/sage/sage/src/sage/misc/temporary_file.py", line 346, > in __enter__ > fd, name = tempfile.mkstemp(dir=self.tmpdir) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File > "/Users/david/sage/sage/local/var/lib/sage/venv-python3.12.5/lib/python3.12/tempfile.py", > line 357, in mkstemp > return _mkstemp_inner(dir, prefix, suffix, flags, output_type) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File > "/Users/david/sage/sage/local/var/lib/sage/venv-python3.12.5/lib/python3.12/tempfile.py", > line 256, in _mkstemp_inner > fd = _os.open(file, flags, 0o600) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > PermissionError: [Errno 13] Permission denied: > '/Users/david/.sage/cache/tmpn1l6nf8z' > > *System info:* > david@FD9N5QF71Y > ---------------- > OS: macOS Sequoia 15.5 arm64 > Host: MacBook Air (M2, 2022) > Kernel: Darwin 24.5.0 > Uptime: 3 days, 5 hours, 2 mins > Packages: 200 (brew), 5 (brew-cask) > Shell: zsh 5.9 > Display (Color LCD): 2940x1912 @ 2x in 14", 60] > DE: Aqua > WM: Quartz Compositor 278.4.7 > WM Theme: Multicolor (Dark) > Font: .AppleSystemUIFont [System], Helvetica [] > Cursor: Fill - Black, Outline - White (32px) > Terminal: tmux 3.5a > CPU: Apple M2 (8) @ 3.50 GHz > GPU: Apple M2 (8) @ 1.40 GHz [Integrated] > Memory: 12.75 GiB / 16.00 GiB (80%) > Swap: 1.58 GiB / 3.00 GiB (53%) > Disk (/): 137.19 GiB / 228.27 GiB (60%) > - apfs] > Local IP (en0): 192.168.3.133/24 > Battery (bq40z651): 71% (9 hours, 20 > mins rema] > Locale: en_US.UTF-8 > > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/sage-support/0ebd436b-6210-4989-9a89-e3be5609fa52n%40googlegroups.com > <https://groups.google.com/d/msgid/sage-support/0ebd436b-6210-4989-9a89-e3be5609fa52n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/sage-support/CAAWYfq0mLcPJqQ8T3FbsaQXvyvuMEb3oK%2B1xnz7OZqAy8sLnEw%40mail.gmail.com.
