[Pkg-javascript-devel] Bug#848823: node-ltx does not work with its main user node-node-xmpp
Nicolas George
george at nsup.org
Mon Dec 19 22:50:49 UTC 2016
Package: node-ltx
Version: 2.4.2-1
Severity: important
Dear Maintainer,
I tried using node-node-xmpp, and trying with the examples leads to this
error:
/tmp $ nodejs echo_bot.js
(node) sys is deprecated. Use util instead.
module.js:327
throw err;
^
Error: Cannot find module 'ltx'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/lib/nodejs/node-xmpp/lib/xmpp/connection.js:4:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
(I had to fix a relative path in the echo_bot.js example.)
The infringing line in xmpp/connection.js is this:
var ltx = require('ltx');
And indeed, doing that with nodejs directly results in the same issue:
/tmp $ echo "var ltx = require('ltx');" | nodejs
module.js:327
throw err;
^
Error: Cannot find module 'ltx'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at [stdin]:1:11
at Object.exports.runInThisContext (vm.js:54:17)
at Object.<anonymous> ([stdin]-wrapper:6:22)
at Module._compile (module.js:409:26)
at node.js:579:27
at nextTickCallbackWith0Args (node.js:420:9)
strace shows it tries to access these files:
stat("/usr/lib/nodejs/ltx", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/nodejs/ltx/package.json", O_RDONLY|O_CLOEXEC) = -1 ENOENT
stat("/usr/lib/nodejs/ltx.js", 0x7ffc6fd397f0) = -1 ENOENT
stat("/usr/lib/nodejs/ltx.json", 0x7ffc6fd397f0) = -1 ENOENT
stat("/usr/lib/nodejs/ltx.node", 0x7ffc6fd397f0) = -1 ENOENT
open("/usr/lib/nodejs/ltx/package.json", O_RDONLY|O_CLOEXEC) = -1 ENOENT
stat("/usr/lib/nodejs/ltx/index.js", 0x7ffc6fd397f0) = -1 ENOENT
stat("/usr/lib/nodejs/ltx/index.json", 0x7ffc6fd397f0) = -1 ENOENT
stat("/usr/lib/nodejs/ltx/index.node", 0x7ffc6fd397f0) = -1 ENOENT
(ENOENT = No such file or directory, I truncated for readability)
The exact same thing happens with "require('node-xmpp')".
I do not know whether the bug is in node-node-xmpp or node-ltx, but I
suspect it is in the packaging of the later.
Regards,
--
Nicolas GEorge
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable'), (50, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages node-ltx depends on:
ii nodejs 4.6.1~dfsg-1
node-ltx recommends no packages.
Versions of packages node-ltx suggests:
ii node-node-expat 2.3.15-1
pn node-sax <none>
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20161219/41c4122a/attachment.sig>
More information about the Pkg-javascript-devel
mailing list