Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scimax install on linux fails Cloning into '/home/mec/.emacs.d/straight/repos/org'... fatal: did not receive expected object a700785c0eb1e83dbc2e4726050effc3b68de016 #513

Open
malcook opened this issue Jan 29, 2025 · 1 comment

Comments

@malcook
Copy link

malcook commented Jan 29, 2025

Trying to take a vanilla scimax for a spin

Using

emacs --version
GNU Emacs 31.0.50

and following Linux users by executing

bash -c "$(curl -fsSL https://raw.githubusercontent.com/jkitchin/scimax/master/install-scimax-linux.sh)"

Running

~/scimax.sh &

... fails to finish init.

I found I had to first hide my own ~/.emacs.d, as follows

Messages says:

For information about GNU Emacs and the GNU system, type C-h C-a.
Unable to activate package ‘citeproc’.
Required package ‘parsebib-2.4’ is unavailable
Unable to activate package ‘citar’.
Required package ‘parsebib-4.2’ is unavailable
Unable to activate package ‘citar-embark’.
Required package ‘citar-0.9.7’ is unavailable
Unable to activate package ‘citar’.
Required package ‘parsebib-4.2’ is unavailable
Importing package-keyring.gpg...done
Contacting host: elpa.gnu.org:443 [2 times]
Package refresh done
Contacting host: elpa.nongnu.org:443
Package refresh done
Contacting host: melpa.org:443
Package refresh done
Setting ‘package-selected-packages’ temporarily since "emacs -q" would overwrite customizations [2 times]
Parsing tar file...done
Extracting...done
  INFO     Scraping 2 files for loaddefs...done
  GEN      diminish-autoloads.el
Checking /home/mec/.emacs.d/elpa/diminish-20220909.847... [3 times]
Compiling /home/mec/.emacs.d/elpa/diminish-20220909.847/diminish.el...done
Wrote /home/mec/.emacs.d/elpa/diminish-20220909.847/diminish.elc
Checking /home/mec/.emacs.d/elpa/diminish-20220909.847...
Done (Total of 1 file compiled, 2 skipped)
Package ‘diminish’ installed.
Bootstrapping straight.el...done
Looking for gnu-elpa-mirror recipe → Cloning melpa...done
Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...done
Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...done
Looking for emacsmirror-mirror recipe → Cloning el-get...done
Looking for straight recipe → Cloning emacsmirror-mirror...done
Building straight...done
Cloning org...
straight--process-output: Failed to run "git"; see buffer *straight-process*

buffer buffer straight-process contains

$ cd /home/mec/.emacs.d/straight/repos/
$ git clone --origin origin --no-checkout https\://github.com/melpa/melpa.git /home/mec/.emacs.d/straight/repos/melpa/ --no-single-branch

Cloning into '/home/mec/.emacs.d/straight/repos/melpa'...

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/melpa/
$ git branch -r

  origin/HEAD -> origin/master
  origin/faq
  origin/flandrew-packages
  origin/make-improvements
  origin/master
  origin/publish-channels
  origin/python-web-app

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/melpa/
$ git checkout -B master origin/master

branch 'master' set up to track 'origin/master'.
Your branch is up to date with 'origin/master'.
Reset branch 'master'

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/melpa/
$ git submodule update --init --recursive


[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/
$ git clone --origin origin --no-checkout https\://github.com/emacs-straight/gnu-elpa-mirror.git /home/mec/.emacs.d/straight/repos/gnu-elpa-mirror/ --no-single-branch

Cloning into '/home/mec/.emacs.d/straight/repos/gnu-elpa-mirror'...

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/gnu-elpa-mirror/
$ git branch -r

  origin/HEAD -> origin/master
  origin/master

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/gnu-elpa-mirror/
$ git checkout -B master origin/master

branch 'master' set up to track 'origin/master'.
Your branch is up to date with 'origin/master'.
Reset branch 'master'

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/gnu-elpa-mirror/
$ git submodule update --init --recursive


[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/
$ git clone --origin origin --no-checkout https\://git.savannah.gnu.org/git/emacs/nongnu.git /home/mec/.emacs.d/straight/repos/nongnu-elpa/ --single-branch

Cloning into '/home/mec/.emacs.d/straight/repos/nongnu-elpa'...

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/nongnu-elpa/
$ git branch -r

  origin/HEAD -> origin/main
  origin/main

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/nongnu-elpa/
$ git checkout -B main origin/main

branch 'main' set up to track 'origin/main'.
Your branch is up to date with 'origin/main'.
Reset branch 'main'

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/nongnu-elpa/
$ git submodule update --init --recursive


[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/
$ git clone --origin origin --no-checkout https\://github.com/dimitri/el-get.git /home/mec/.emacs.d/straight/repos/el-get/ --no-single-branch

Cloning into '/home/mec/.emacs.d/straight/repos/el-get'...

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/el-get/
$ git branch -r

  origin/2.stable
  origin/3.stable
  origin/4.stable
  origin/HEAD -> origin/master
  origin/fix-dbus-error-on-macos
  origin/jd/methods-autoload
  origin/magit-updates
  origin/master
  origin/next
  origin/recipes/difftastic
  origin/refactoring

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/el-get/
$ git checkout -B master origin/master

branch 'master' set up to track 'origin/master'.
Your branch is up to date with 'origin/master'.
Reset branch 'master'

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/el-get/
$ git submodule update --init --recursive


[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/
$ git clone --origin origin --no-checkout https\://github.com/emacs-straight/emacsmirror-mirror.git /home/mec/.emacs.d/straight/repos/emacsmirror-mirror/ --no-single-branch

Cloning into '/home/mec/.emacs.d/straight/repos/emacsmirror-mirror'...

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/emacsmirror-mirror/
$ git branch -r

  origin/HEAD -> origin/master
  origin/master

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/emacsmirror-mirror/
$ git checkout -B master origin/master

branch 'master' set up to track 'origin/master'.
Your branch is up to date with 'origin/master'.
Reset branch 'master'

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/emacsmirror-mirror/
$ git submodule update --init --recursive


[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/
$ git clone --origin origin --no-checkout https\://git.savannah.gnu.org/git/emacs/org-mode.git /home/mec/.emacs.d/straight/repos/org/ --no-single-branch

Cloning into '/home/mec/.emacs.d/straight/repos/org'...
fatal: did not receive expected object a700785c0eb1e83dbc2e4726050effc3b68de016
fatal: fetch-pack: invalid index-pack output

[Return code: 128]

$ cd /home/mec/.emacs.d/straight/repos/org/
$ git branch -r

[File error while Setting current directory]

quitting and restaring scimax.sh gives

$ cd /home/mec/
$ find /dev/null -newermt 2018-01-01\ 12\:00\:00

/dev/null

[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/
$ find /home/mec/.emacs.d/straight/repos/melpa/ /home/mec/.emacs.d/straight/repos/gnu-elpa-mirror/ /home/mec/.emacs.d/straight/repos/nongnu-elpa/ /home/mec/.emacs.d/straight/repos/el-get/ /home/mec/.emacs.d/straight/repos/emacsmirror-mirror/ /home/mec/.emacs.d/straight/repos/straight.el/ -name .git -prune -o -path /home/mec/.emacs.d/straight/repos/melpa/\* -newermt 2025-01-28\ 17\:07\:17 -print -o -path /home/mec/.emacs.d/straight/repos/gnu-elpa-mirror/\* -newermt 2025-01-28\ 17\:07\:31 -print -o -path /home/mec/.emacs.d/straight/repos/nongnu-elpa/\* -newermt 2025-01-28\ 17\:07\:36 -print -o -path /home/mec/.emacs.d/straight/repos/el-get/\* -newermt 2025-01-28\ 17\:09\:23 -print -o -path /home/mec/.emacs.d/straight/repos/emacsmirror-mirror/\* -newermt 2025-01-28\ 17\:09\:29 -print -o -path /home/mec/.emacs.d/straight/repos/straight.el/\* -newermt 2025-01-28\ 17\:09\:30 -print


[Return code: 0]

$ cd /home/mec/.emacs.d/straight/repos/
$ git clone --origin origin --no-checkout https\://git.savannah.gnu.org/git/emacs/org-mode.git /home/mec/.emacs.d/straight/repos/org/ --no-single-branch

Cloning into '/home/mec/.emacs.d/straight/repos/org'...
fatal: did not receive expected object b412b0af2daf4d4d46c624892f5e5ebb21cd7b66
fatal: fetch-pack: invalid index-pack output

[Return code: 128]

$ cd /home/mec/.emacs.d/straight/repos/org/
$ git branch -r

[File error while Setting current directory]

I then tried hiding my old ~/emacs.d

 mv .emacs.d .emacs.d.hidden

and again running

~/scimax.sh &

and this time found completed

after prompting me to "Store links with" four (or so) times. Not knowing what this meant, I chose the notebook option each time.

So, suggestion you might provide up-front documentation to

  • hide your own .emacs.d when trying out scimax
  • alert user they will be prompted about links, with pointer to what is going on

Thanks for reading!

@jkitchin
Copy link
Owner

hm. Someone else reported an issue around "after prompting me to "Store links with" four (or so) times. Not knowing what this meant, I chose the notebook option each time." that was affecting the homebrew install. I don't know why that is happening. I am pretty sure it is occurring during loading an org-file, either scimax-editmarks.org or scimax-notebook.org but I am baffled on why it happens then, and I can't reproduce it easily. Maybe this report will help.

These are legacy scripts, and homebrew is the preferred way to install it for me.

I am not sure how to make it more robust, there are a lot of things that have to get installed, and it has been my experience in the past that sometimes you have to restart the process, but that was usually on windows.

Errors like this:

Cloning into '/home/mec/.emacs.d/straight/repos/org'...
fatal: did not receive expected object b412b0af2daf4d4d46c624892f5e5ebb21cd7b66
fatal: fetch-pack: invalid index-pack output

look like git transport issues. I am not sure what to do about those. Anyway, thanks for reporting this, when I get a chance I will look into how to reproduce some of these and see if there are fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants