-
Notifications
You must be signed in to change notification settings - Fork 1
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
Error creating temp file #2
Comments
Aaaand if I run the command through the SBCL interpreter, it works just fine. So this seems to be an issue with my REPL / Portacle. Closing this. |
Still curious to see where it's happening. I don't know what portacle is actually doing, but is it perhaps using a container based infrastructure like docker? Then it's possible that /tmp/ is not mounted in that container |
Didn't think of that, good shout. I'll experiment when I'm at home again. If it turns out to be a missing tmp folder in the Portacle environment, I might send a pull request here to quietly create a tmp folder in the |
Right, I figured out what's wrong. Portacle is overriding the mktemp command. See here for details: portacle/portacle#129 I suggest changing the call to the mktemp command to avoid the --tmpdir argument, since this approach seems to be more portable. Pull request incoming, let me know if you agree. |
I've prepared a fix (see: https://github.com/Kevinpgalligan/cl-sat), and the new version of Here's what I run, with output:
It errors out before printing the variables:
Any idea what's wrong? Also, are there any other ways that I should test my change, besides running Thanks! |
It just occurred to me that the version of cl-sat.mini I've pulled using quicklisp may be incompatible with the most recent version of cl-sat, I'll try again tomorrow with the most up-to-date cl-sat.mini. |
yes, |
Confirmed that it works in Portacle now. Sent a pull request (see above). I know it's just addressing my specific case and still won't work on all systems, so I understand if you want to do something more thorough here. |
Hi,
I tried to run one of the example commands in SLIME --
(solve '(and (or a b) (or a !b c)) :minisat)
-- after successfully installing cl-sat.minisat, but encountered the following error:Same error if I run the command through the REPL:
(uiop:run-program "mktemp --tmpdir='/tmp/' cnf.XXXXXXX")
, which indicates it's not a problem with cl-sat specifically.If I try to run the command myself from the terminal --
mktemp --tmpdir='/tmp/' cnf.XXXXXXX
-- it works fine.If I run the command through the SBCL interpreter, it succeeds:
(uiop:run-program "mktemp --tmpdir='/tmp/' cnf.XXXXXXX")
Any idea what might be the issue? Thanks!
The text was updated successfully, but these errors were encountered: