-
Notifications
You must be signed in to change notification settings - Fork 8
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
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function #20
Comments
This comment has been minimized.
This comment has been minimized.
Based on #8 I have also added /opt/eye/bin to $PATH and I've created the symbolic link from eye to eye.sh in the /opt/eye/bin directory. This has changed the error to: wnm3MacBook:bin wnm3$ eyeserver 8000 TypeError [ERR_INVALID_CALLBACK]: Callback must be a function |
Note that Node 11 is unstable (as are all uneven versions); can you test on 10? |
sure, will try to get that set up, thx |
Almost the same issue: the line in fs.js changed to 137 from 144... wnm3MacBook:graceful-fs wnm3$ node -v TypeError [ERR_INVALID_CALLBACK]: Callback must be a function |
Thanks, will investigate. |
It must be late for you -- it can wait until tomorrow or when you have time. Thank you. Note: I installed using the eye.zip: If desired I could reinstall by cloning the repo... |
Ah well, nothing like a good bug in the evening 🙂 |
Is it possible that when eye.js calls to remove the temporary file it doesn't pass a callback so it is null in the resourcecache.js? the console.log I added shows callback is undefined: release: function (fileName, callback) { and the call in eye.js only passes the resource without any callback... |
the console.logs above print: |
Yes, that was it. Earlier versions of Node didn't require that (this lib is 7 years old). |
I believe the tmp file is getting unlinked so perhaps (kludge...) surround by try/catch ;^) |
Should be fixed in v1.1.2. |
thx, I'm running with the kludge for now: EYE server running on http://localhost:8000 |
Why the kludge though? v1.1.2 works fine here on Node v10. Also very unlikely that the kludge will work given that try/catch is sync, but unlink is async. |
BLUF: it appears the eyeserver can not spawn eye and there is only the /opt/eye/bin/eye.sh and no eye executable that I can find (there is the /opt/eye/lib/eye.pvm though)
I have followed the installation instructions here:
http://eulersharp.sourceforge.net/README.MacOSX
to install eye correctly (see version displayed below for eye, swipl, carl, cturtle, node, and npm)
but when I run: eyeserver 8000 I get this error:
wnm3MacBook:bin wnm3$ eyeserver 8000
events.js:167
throw er; // Unhandled 'error' event
^
Error: spawn eye ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
at onErrorNT (internal/child_process.js:407:16)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
at onErrorNT (internal/child_process.js:407:16)
at process.internalTickCallback (internal/process/next_tick.js:72:19)
wnm3MacBook:bin wnm3$ /opt/eye/bin/eye.sh --version
eye --version
EYE v18.1105.2012 josd
SWI-Prolog 7.6.4 (x86_64-darwin15.6.0): Jan 12 2018, 14:07:02
starting 26 [msec cputime] 46 [msec walltime]
wnm3MacBook:bin wnm3$ swipl --version
SWI-Prolog version 7.6.4 for x86_64-darwin15.6.0
wnm3MacBook:bin wnm3$ carl --version
carl version 1.0.3
Usage: carl [-b=base-uri] [-o=output-file] [input-files]
wnm3MacBook:bin wnm3$ cturtle --version
cturtle version 1.0.6-SNAPSHOT
Usage: cturtle [-b=base-uri] [-o=output-file] [-f=(nt|n3p|n3p-rdiv)] [input-files]
wnm3MacBook:bin wnm3$ node -v
v11.0.0
wnm3MacBook:bin wnm3$ npm -v
6.4.1
I am running XQuartz.app v2.7.11 and logged out/in before attempting to run the eyeserver.
Running as sudo doesn't have any effect to resolve the problem.
The text was updated successfully, but these errors were encountered: