py4cl icon indicating copy to clipboard operation
py4cl copied to clipboard

(asdf:test-system :py4cl) crashes

Open ericpmoss opened this issue 3 years ago • 4 comments

I think the issue is that py4cl:python-command is defvar'd to "python" and at least on my Ubuntu, the name should be "python3". When the first line of tests/tests.lisp tries to import math, the code that starts python fails, and is not reacting gracefully to that failure. Instead, we get a read on EOS failure.

My personal workaround is to: (let ((py4cl:python-command "python3")) )

but I'm guessing there is a better way.

Thanks for the package, btw!

ericpmoss avatar Jul 08 '21 08:07 ericpmoss

Hi @ericpmoss Thanks for letting me know! Perhaps it would be best to make the default "python3", since that now seems to be the standard?

bendudson avatar Jul 08 '21 08:07 bendudson

It might be -- I am pretty ignorant about these things, but I've only seen python3 in use for several years now. I'm rather glad I don't have to type sbcl2.1.6 to start lisp. :)

ericpmoss avatar Jul 08 '21 08:07 ericpmoss

There are a few fixes at https://github.com/rpgoldman/py4cl2 that could perhaps be cherry-picked here

digikar99 avatar Jul 08 '21 08:07 digikar99

Same problem. Python3 is safely a better default

shukryzablah avatar Jul 25 '22 02:07 shukryzablah