Oxooxo
Oxooxoโ€ข3w ago

validateSchema getting better with v2.1.8 - but still not yet working

Hi all ๐Ÿ‘‹ , I want to validate some xml files to a given xsd. npm:xsd-validator seems to be promising so I want to use it.
import validateSchema from 'npm:xsd-validator';
import validateSchema from 'npm:xsd-validator';
` In v2.1.7 I got the hint to install
deno install npm:libxmljs@1.0.11
deno install npm:libxmljs@1.0.11
which failed with some node-gyp error. This seems to be soled now in v2.1.8. It goes through without an error now. Thanks :deno_logo:. But I still get an error:
error: Uncaught (in promise) Error: Could not locate the bindings file. Tried:
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/Debug/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/Release/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/out/Debug/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/Debug/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/out/Release/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/Release/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/default/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/compiled/20.11.1/darwin/arm64/xmljs.node
at bindings (file:///Users/me/workspace/me/Tool/node_modules/.deno/bindings@1.3.1/node_modules/bindings/bindings.js:96:9)
at Object.<anonymous> (file:///Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/dist/lib/bindings/index.js:5:16)
at Object.<anonymous> (file:///Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/dist/lib/bindings/index.js:49:4)
error: Uncaught (in promise) Error: Could not locate the bindings file. Tried:
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/Debug/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/Release/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/out/Debug/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/Debug/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/out/Release/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/Release/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/build/default/xmljs.node
โ†’ /Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/compiled/20.11.1/darwin/arm64/xmljs.node
at bindings (file:///Users/me/workspace/me/Tool/node_modules/.deno/bindings@1.3.1/node_modules/bindings/bindings.js:96:9)
at Object.<anonymous> (file:///Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/dist/lib/bindings/index.js:5:16)
at Object.<anonymous> (file:///Users/me/workspace/me/Tool/node_modules/.deno/libxmljs@1.0.11/node_modules/libxmljs/dist/lib/bindings/index.js:49:4)
` Any ideas?
3 Replies
marvinh.
marvinh.โ€ข3w ago
Looks like a bug. Can you open an issue at https://github.com/denoland/deno/issues ? That way the folks working on Deno can take a look at it
Oxooxo
OxooxoOPโ€ข2w ago
sure ๐Ÿ‘ , I did now
Oxooxo
OxooxoOPโ€ข2w ago
GitHub
binding problem with libxmljs ยท Issue #27933 ยท denoland/deno
Version: Deno 2.1.8 (on macOS M1) marvinh on discord suggested to open a ticket for my problem: Hi, I want to validate some xml files to a given xsd. npm:xsd-validator seems to be promising so I wa...

Did you find this page helpful?