-
Notifications
You must be signed in to change notification settings - Fork 12
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
Dyalog APL could not initialise because the script file could not be opened #16
Comments
Hey there, @justin2004. In order for Python to start Py'n'APL, it tries writing a little auxiliary file so that APL knows what port to connect to. Can you check if this is what's happening? |
hi @RojerGS execution does not make it past this line: Line 444 in 8b17bce
but the FIFOs do get created:
and i see them in the /tmp/ directory. i guess i'll |
it might also be that dyalog isn't starting:
|
Mind that, when using Line 437 in 8b17bce
If you don't set
|
@RojerGS i got it to work with this patch: diff --git a/pynapl/RunDyalog.py b/pynapl/RunDyalog.py
index 2166877..1a0572f 100644
--- a/pynapl/RunDyalog.py
+++ b/pynapl/RunDyalog.py
@@ -46,7 +46,7 @@ def posix_dythread(inf,outf, dyalog=b"dyalog"):
path=to_bytes(os.path.dirname(SCRIPTFILE))+b'/Py.dyalog'
# Run the Dyalog instance in this thread
- p=Popen([dyalog, b'-script'], stdin=PIPE, preexec_fn=os.setpgrp)
+ p=Popen([dyalog], stdin=PIPE, preexec_fn=os.setpgrp)
s=script%(pystr(ipcpath),pystr(path),inf,outf)
p.communicate(input=s.encode('utf8'))
my session:
|
How did you come to the conclusion that you should remove And is it working decently, now? |
i ran
and started iterating on variations around that. also i didn't even see the
yup. but i've only done apl.eval() which i think is all i will care about. |
the only way i have been able to get this project to work under a linux distro is to apply this patch. it seems like this project is only used by people using MS windows? |
Applying the patch above also fixes the error for me. Re: Removing the See Shell Scripts. |
dyalog version 18.0.4068
Python 3.9.2
Debian 11
any tips?
The text was updated successfully, but these errors were encountered: