Archive du forum du MOOC Recherche Reproductible Session 2

Windows Installation Problem

sachabrisset

Hi :slight_smile:
I’m having a problem when I try to use the init.el provided in the mooc:

exec-path-from-shell-printf: Non-zero exit code from shell C:/home/opt/emacs/libexec/emacs/26.1/x86_64-w64-mingw32/cmdproxy.exe invoked with args ("-l" “-i” “-c” “printf ‘__RESULT\000%s\000%s\000__RESULT’ “${PATH-2a14f1874e4c2d06ecd0d78fae08e749}” “${MANPATH-2a14f1874e4c2d06ecd0d78fae08e749}””). Output was:
"‘printf’ is not recognized as an internal or external command,
operable program or batch file.
"

Do you have any idea why it could happen?

Thanks,
Sacha.

khinsen

Not being a Windows user, I cannot provide a detailed diagnostic, unfortunately. But the code that created this error situation is the Emacs package exec-path-from-shell. If you remove the two lines

(exec-path-from-shell-initialize)
(exec-path-from-shell-copy-env "PYTHONPATH")

from our init.el, the error should disappear. Could you please try this?

I don’t know how important exec-path-from-shell is when working under Windows. If after removing these two lines you can work correctly, that may be a good fix. Otherwise we will have to figure out a better one!

mgdondon

I got a nearby message on Windows :

I commented the two lines related to exec-path-from-shell and it seems to be OK.

sachabrisset

Ca marche en effet
Merci beaucoup :slight_smile:

khinsen

Merci pour vos retours ! J’ai désactivé ces deux lignes dans notre configuration, pour ceux qui s’y mettent à partir de maintenant il n’y a donc plus rien à faire.