Okay, I'm going to try to resolve this issue. I think there were two primary problems, which are solved:
1. my macOS was unable to upgrade to 15.2 (nor 15.0, 15.1), and that has now been resolved. I have a fresh installation of 15.2 2. the branch I was trying to build on was an outdated Sage 10.5beta, so I'll just try a fresh branch I'm also going to reinstall homebrew from scratch. Before I had set up some virtualenvs with pyenv which was using shims and may have messed things up. Unclear. On Mon, Oct 21, 2024 at 5:21 AM Dima Pasechnik <dimp...@gmail.com> wrote: > > > On Monday, October 21, 2024 at 3:31:15 AM UTC+1 jackson...@gmail.com > wrote: > > Regarding the merge conflicts, there are hundreds of them. I don't see how > to get around that and actually complete a rebase. > > > this can only mean that you have a branch which differs from the one you > have on the PR. > > I tried creating a new branch with the latest release (10.5.beta7) from > develop, just to see if I could build it. It failed, so the issue probably > isn't related to the version. Config file attached. > > make[4]: *** [m4ri-SAGE_LOCAL-no-deps] Error 1 > > make[3]: *** > [/Users/jacksonwalters/Documents/GitHub/sage/local/var/lib/sage/installed/m4ri-20200125] > Error 2 > > make[2]: *** [all-start] Error 2 > > *************************************************************** > > Error building Sage. > > > The following package(s) may have failed to build (not necessarily > > during this run of 'make all-start'): > > > * package: pip-24.0 > > last build time: Oct 20 20:31 > > log file: > /Users/jacksonwalters/Documents/GitHub/sage/logs/pkgs/pip-24.0.log > > > * package: m4ri-20200125 > > last build time: Oct 20 22:24 > > log file: > /Users/jacksonwalters/Documents/GitHub/sage/logs/pkgs/m4ri-20200125.log > > build directory: > /Users/jacksonwalters/Documents/GitHub/sage/local/var/tmp/sage/build/m4ri-20200125 > > Bear in mind, this is for one minor change. I tried using Codespaces but > it seems pretty hopeless. I made a one line change, and it is reporting all > kinds of errors, and I don't see how to rebuild it with the change. I can > see the code in an editor, but can I actually build and run Sage in this > environment? > > > > Please make sure you can use Python provided by homebrew - currently you > cannot, as in config.log you see > > configure:40144: will use system package and not install SPKG onetbb > ## -------------------------------------------------------- ## > ## Checking whether SageMath should install SPKG python3... ## > ## -------------------------------------------------------- ## > configure:40312: checking whether any of bzip2 liblzma libffi zlib is > installed as or will be installed as SPKG configure:40317: result: yes; > install python3 as well configure:41821: > no suitable system package found for SPKG python3 > > Building Sage's Python+pip on macOS is apparently broken. > (Not the least because it's complicated, and people prefer using either > Homebrew's Python, or the Python you install from python.org) > I've advocated for years that Sage should not try to build its own > Python, because there are always alternatives, and it's very error-prone, > so users keep shooting themselves in the foot with it. > > As you can see from your log, > ## -------------------------------------------------------- ## > ## Checking whether SageMath should install SPKG liblzma... ## > ## -------------------------------------------------------- ## > configure:35282: liblzma has already been installed by SageMath > > So please run > > brew install xz pari pari-elldata pari-galdata pari-galpol > pari-seadata > > # liblzma is a part of xz - you might already have it installed, but it's > ignored as you had Sage build and install liblzma > # and the latter is always preferred. For the good measure I added > commands to install all the packages needed > # to use/run pari/gp from Homebrew > > make distclean > > after this, please run > > ./configure > > and check the config.log, so that it shows that it will use python3 from > Homebrew. It should also be able to use gmp and pari from Homebrew. If all > of the latter is OK, please proceed with running > > make > > > If not, please check that you have all the Homebrew packages recommended > by ./configure installed. > > Dima > > PS. (Had to repost this via Google groups interface, as my emails to > sage-support I blocked by google....) > > > > On Sun, Oct 20, 2024 at 7:30 PM Jackson Walters <jackson...@gmail.com> > wrote: > > I tried running those two commands and got merge conflicts: > > jacksonwalters@jaxmacbookair sage % git rebase origin/develop > > Auto-merging src/sage/doctest/parsing.py > > CONFLICT (content): Merge conflict in src/sage/doctest/parsing.py > > error: could not apply db5bf6ce535... Filter out R warnings > > hint: Resolve all conflicts manually, mark them as resolved with > > hint: "git add/rm <conflicted_files>", then run "git rebase --continue". > > hint: You can instead skip this commit: run "git rebase --skip". > > hint: To abort and get back to the state before "git rebase", run "git > rebase --abort". > > Could not apply db5bf6ce535... Filter out R warnings > > On Sun, Oct 20, 2024 at 3:03 PM Dima Pasechnik <dim...@gmail.com> wrote: > > On Sun, Oct 20, 2024 at 7:06 PM Jackson Walters > <jackson...@gmail.com> wrote: > > > > I don’t think I understand. I am just making commits in PR #38455. If I > switch to the develop branch, surely these won’t have the changes I’m > looking to see when I build? I’m probably just misunderstanding how git > works. > > I'm not telling you to switch to the develop branch, I am telling you > to re-base your work on it. > Currently your base branch, i.e. from where you started your changes, is > beta0. > These two commands: > > git fetch origin develop > git rebase origin/develop > > do the following. The 1st one copies the current develop branch (the > changeset, to be more precise) > from origin onto your local repo. This branch can be addressed, > locally, as origin/develop. > The 2nd command does the rebase of your current branch. > (https://git-scm.com/book/en/v2/Git-Branching-Rebasing) > > In fact I just checked that rebase in your case will be automatic (I > got the branch from #38455 and tested on it) > > Dima > > > > > > > > Thanks, > > Jackson > > > > On Sun, Oct 20, 2024 at 7:00 AM Dima Pasechnik <dim...@gmail.com> wrote: > >> > >> > >> > >> On 20 October 2024 01:58:14 BST, Jackson Walters <jackson...@gmail.com> > wrote: > >> >Yes, it is 10.5.beta0. I’m not entirely sure how to switch to the > latest > >> >beta version. I’m just on the branch of the PR that I’m working on > >> >currently. > >> > > >> >Do I have to rebase? > >> > >> Rebasing is typically automatic, if you just touched a few files which > were not touched in between the betas: > >> > >> If origin is the name you gave to the Sage remote repo, then you do > >> > >> git fetch origin develop > >> git rebase origin/develop > >> > >> and it hopefully just says "Successfully..." > >> > >> > >> > > >> >No worries, I should’ve included which version I was working with. I > should > >> >also mention I do have an installation from binary installed (10.4). > >> > > >> >Thanks, > >> >Jackson > >> > > >> >On Sat, Oct 19, 2024 at 4:01 AM Dima Pasechnik <dim...@gmail.com> > wrote: > >> > > >> >> According to the config.log, you are trying to install Sage > 10.5.beta0 > >> >> - which might just not work. > >> >> (beta0 are often broken, etc). Anyway, for the development purposes > >> >> you'd normally use one of the latest betas. > >> >> The latest is 10.5.beta7. Please try it instead. > >> >> If you already have changes in your source tree, these should be > >> >> rebased over (or merged in) the latest beta branch. > >> >> Sorry, I should have spotted it earlier. > >> >> > >> >> Dima > >> >> > >> >> On Sat, Oct 19, 2024 at 1:03 AM Jackson Walters > >> >> <jackson...@gmail.com> wrote: > >> >> > > >> >> > I removed those three from my path and I'm still getting the same > error: > >> >> > > >> >> > % echo $PATH > >> >> > > >> >> > > >> >> > /opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin > >> >> > > >> >> > > >> >> > I did source .homebrew-build-env before running ./configure. I > installed > >> >> the packages listed in the instructions. > >> >> > On Friday, October 18, 2024 at 4:48:51 PM UTC-4 dim...@gmail.com > wrote: > >> >> >> > >> >> >> The errors you have might be due to the use of pyenv (perhaps > it's not > >> >> >> activated, but still it might be a problem). Specifically, in your > >> >> >> PATH you have > >> >> >> > >> >> >> PATH: /opt/homebrew/Cellar/pyenv-virtualenv/1.2.4/shims/ > >> >> >> PATH: /Users/jacksonwalters/.pyenv/shims/ > >> >> >> PATH: /Users/jacksonwalters/.pyenv/bin/ > >> >> >> PATH: /opt/homebrew/bin/ > >> >> >> PATH: /opt/homebrew/sbin/ > >> >> >> PATH: /usr/local/bin/ > >> >> >> PATH: /System/Cryptexes/App/usr/bin/ > >> >> >> > >> >> >> Please remove the first 3 entries from it, and try again. Please > also > >> >> >> make sure you sourced > >> >> >> .homebrew-build-env before running ./configure, as explained in > >> >> >> macOS-specific docs. > >> >> >> > >> >> >> By the way, you can install more Homebrew packages to be used by > Sage, > >> >> >> as you can see at the bottom of config.log (concrete lists of > packages > >> >> >> are given there) > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> On Fri, Oct 18, 2024 at 8:51 PM Jackson Walters > >> >> >> <jackson...@gmail.com> wrote: > >> >> >> > > >> >> >> > Yes, attached. > >> >> >> > > >> >> >> > On Friday, October 18, 2024 at 3:43:14 PM UTC-4 > dim...@gmail.com > >> >> wrote: > >> >> >> >> > >> >> >> >> Hi, > >> >> >> >> could you post the top-level config.log > >> >> >> >> and logs/install.log ? > >> >> >> >> > >> >> >> >> Thanks. > >> >> >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> On 18 October 2024 20:19:13 BST, Jackson Walters < > >> >> jackson...@gmail.com> wrote: > >> >> >> >>> > >> >> >> >>> Hi all, > >> >> >> >>> > >> >> >> >>> I am making some changes to > `symmetric_group_representations.py`, > >> >> and it would be useful to test them locally before committing them > to a PR. > >> >> I haven't found it necessary to build Sage from source, but I'd like > to > >> >> now. I am following the instructions in "Instructions to Build from > Source" > >> >> in the README, installed the necessary prerequisites, and ran > `./configure` > >> >> followed by `make`. > >> >> >> >>> > >> >> >> >>> Here is the traceback of the errors I'm getting: > >> >> >> >>> > >> >> >> >>>> [pip-24.0] Using cached file > >> >> > /Users/jacksonwalters/Documents/GitHub/sage/upstream/pip-24.0-py3-none-any.whl > >> >> >> >>>> [pip-24.0] Setting up build directory > >> >> > /Users/jacksonwalters/Documents/GitHub/sage/local/var/lib/sage/venv-python3.12.4/var/tmp/sage/build/pip-24.0 > >> >> >> >>>> [pip-24.0] No stamp file for package 'pip' in > >> >> > /Users/jacksonwalters/Documents/GitHub/sage/local/var/lib/sage/venv-python3.12.4/var/lib/sage/installed > >> >> >> >>>> [pip-24.0] No spkg-legacy-uninstall script; nothing to do > >> >> >> >>>> [pip-24.0] [spkg-install] Staged wheel file, staged > >> >> > /Users/jacksonwalters/Documents/GitHub/sage/local/var/lib/sage/venv-python3.12.4/var/lib/sage/scripts/pip/spkg-requirements.txt > >> >> >> >>>> [pip-24.0] Moving package files from temporary location > >> >> > /Users/jacksonwalters/Documents/GitHub/sage/local/var/lib/sage/venv-python3.12.4/var/tmp/sage/build/pip-24.0/inst > >> >> to > >> >> > /Users/jacksonwalters/Documents/GitHub/sage/local/var/lib/sage/venv-python3.12.4 > >> >> >> >>>> [pip-24.0] [spkg-pipinst] Traceback (most recent call last): > >> >> >> >>>> [pip-24.0] [spkg-pipinst] File > >> >> "/Users/jacksonwalters/Documents/GitHub/sage/build/bin/sage-flock", > line > >> >> 23, in <module> > >> >> >> >>>> [pip-24.0] [spkg-pipinst] from sage_bootstrap.flock import > run > >> >> >> >>>> [pip-24.0] [spkg-pipinst] File > >> >> > "/Users/jacksonwalters/Documents/GitHub/sage/build/bin/../sage_bootstrap/flock.py", > >> >> line 15, in <module> > >> >> >> >>>> [pip-24.0] [spkg-pipinst] import pipes > >> >> >> >>>> [pip-24.0] [spkg-pipinst] ModuleNotFoundError: No module > named > >> >> 'pipes' > >> >> >> >>>> [pip-24.0] [spkg-pipinst] Traceback (most recent call last): > >> >> >> >>>> [pip-24.0] [spkg-pipinst] File > >> >> "/Users/jacksonwalters/Documents/GitHub/sage/build/bin/sage-flock", > line > >> >> 23, in <module> > >> >> >> >>>> [pip-24.0] [spkg-pipinst] from sage_bootstrap.flock import > run > >> >> >> >>>> [pip-24.0] [spkg-pipinst] File > >> >> > "/Users/jacksonwalters/Documents/GitHub/sage/build/bin/../sage_bootstrap/flock.py", > >> >> line 15, in <module> > >> >> >> >>>> [pip-24.0] [spkg-pipinst] import pipes > >> >> >> >>>> [pip-24.0] [spkg-pipinst] ModuleNotFoundError: No module > named > >> >> 'pipes' > >> >> >> >>>> [pip-24.0] [spkg-pipinst] Warning: installing with "python3 > -m pip > >> >> install --verbose --no-index > >> >> > --find-links=/Users/jacksonwalters/Documents/GitHub/sage/local/var/lib/sage/venv-python3.12.4/var/lib/sage/wheels > >> >> --disable-pip-version-check --isolated --no-cache-dir" failed. > Retrying, > >> >> adding "--no-deps --ignore-installed --ignore-requires-python" > >> >> >> >>>> [pip-24.0] [spkg-pipinst] Traceback (most recent call last): > >> >> >> >>>> [pip-24.0] [spkg-pipinst] File > >> >> "/Users/jacksonwalters/Documents/GitHub/sage/build/bin/sage-flock", > line > >> >> 23, in <module> > >> >> >> >>>> [pip-24.0] [spkg-pipinst] from sage_bootstrap.flock import > run > >> >> >> >>>> [pip-24.0] [spkg-pipinst] File > >> >> > "/Users/jacksonwalters/Documents/GitHub/sage/build/bin/../sage_bootstrap/flock.py", > >> >> line 15, in <module> > >> >> >> >>>> [pip-24.0] [spkg-pipinst] import pipes > >> >> >> >>>> [pip-24.0] [spkg-pipinst] ModuleNotFoundError: No module > named > >> >> 'pipes' > >> >> >> >>>> [pip-24.0] [spkg-pipinst] Error: installing with pip failed > >> >> >> >>>> [pip-24.0] [spkg-pipinst] > >> >> > ******************************************************************************** > >> >> >> >>>> [pip-24.0] [spkg-pipinst] Error installing pip > >> >> >> >>>> [pip-24.0] [spkg-pipinst] > >> >> > ******************************************************************************** > >> >> >> >>>> [pip-24.0] > >> >> > ************************************************************************ > >> >> >> >>>> [pip-24.0] Error running the pipinst script for pip-24.0. > >> >> >> >>>> [pip-24.0] > >> >> > ************************************************************************ > >> >> >> >>>> [pip-24.0] Please email sage-devel ( > >> >> http://groups.google.com/group/sage-devel) > >> >> >> >>>> [pip-24.0] explaining the problem and including the log files > >> >> >> >>>> [pip-24.0] > >> >> /Users/jacksonwalters/Documents/GitHub/sage/logs/pkgs/pip-24.0.log > >> >> >> >>>> [pip-24.0] and > >> >> >> >>>> [pip-24.0] > /Users/jacksonwalters/Documents/GitHub/sage/config.log > >> >> >> >>>> [pip-24.0] Describe your computer, operating system, etc. > >> >> >> >>>> [pip-24.0] > >> >> > ************************************************************************ > >> >> >> >>>> make[4]: *** [pip-SAGE_VENV-no-deps] Error 1 > >> >> >> >>>> make[3]: *** > >> >> > [/Users/jacksonwalters/Documents/GitHub/sage/local/var/lib/sage/venv-python3.12.4/var/lib/sage/installed/pip-24.0] > >> >> Error 2 > >> >> >> >>>> make[2]: *** [all-start] Error 2 > >> >> >> >>>> > *************************************************************** > >> >> >> >>>> Error building Sage. > >> >> >> >>>> The following package(s) may have failed to build (not > necessarily > >> >> >> >>>> during this run of 'make all-start'): > >> >> >> >>>> * package: m4ri-20200125 > >> >> >> >>>> last build time: Oct 17 15:01 > >> >> >> >>>> log file: > >> >> > /Users/jacksonwalters/Documents/GitHub/sage/logs/pkgs/m4ri-20200125.log > >> >> >> >>>> build directory: > >> >> > /Users/jacksonwalters/Documents/GitHub/sage/local/var/tmp/sage/build/m4ri-20200125 > >> >> >> >>>> * package: pip-24.0 > >> >> >> >>>> last build time: Oct 18 15:06 > >> >> >> >>>> log file: > >> >> /Users/jacksonwalters/Documents/GitHub/sage/logs/pkgs/pip-24.0.log > >> >> >> >>>> It is safe to delete any log files and build directories, > but they > >> >> >> >>>> contain information that is helpful for debugging build > problems. > >> >> >> >>>> WARNING: If you now run 'make' again, the build directory of > the > >> >> >> >>>> same version of the package will, by default, be deleted. > Set the > >> >> >> >>>> environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent > this. > >> >> >> >>>> real 2m41.391s user 1m45.773s sys 0m34.303s > >> >> >> >>>> make[1]: *** [all-start] Error 1 > >> >> >> >>>> make: *** [all] Error 2 > >> >> >> >>> > >> >> >> >>> Any help would be greatly appreciated. Thank you! > >> >> >> >>> > >> >> >> >>> Jackson > >> >> >> >>> > >> >> >> >>> > >> >> >> > -- > >> >> >> > 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 sage-support...@googlegroups.com. > >> >> >> > To view this discussion on the web visit > >> >> > https://groups.google.com/d/msgid/sage-support/df9de397-ca8d-4feb-b28f-92bcb5feb780n%40googlegroups.com > >> >> . > >> >> > > >> >> > -- > >> >> > 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 sage-support...@googlegroups.com. > >> >> > To view this discussion on the web visit > >> >> > https://groups.google.com/d/msgid/sage-support/39f7e6b6-674d-470c-9c92-6f51ad8457edn%40googlegroups.com > >> >> . > >> >> > >> >> -- > >> >> 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 sage-support...@googlegroups.com. > >> >> To view this discussion on the web visit > >> >> > https://groups.google.com/d/msgid/sage-support/CAAWYfq0opfjRbuXHwZgC6Cr1czwgKC7%2BJLGvbOAKnS%2BMQz1HcQ%40mail.gmail.com > >> >> . > >> >> > >> > > >> > >> -- > >> 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 sage-support...@googlegroups.com. > >> To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/CE536B49-0753-47F9-BF9E-11D10DCE7EAE%40gmail.com > . > > > > -- > > 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 sage-support...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/CAGqtwVDjsXqK5_agqfSQstPZHRKqA3NBispiPOCgxeBkazM6SQ%40mail.gmail.com > . > > -- > 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 sage-support+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/360bea4f-ea4e-43e8-9113-ad860bc8baban%40googlegroups.com > <https://groups.google.com/d/msgid/sage-support/360bea4f-ea4e-43e8-9113-ad860bc8baban%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 sage-support+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/sage-support/CAGqtwVANQKr%2B11TWmLE3AJ9FLGf_%3D7LW14QaNQmUb%2BUF%2Bf608g%40mail.gmail.com.