Could not require NativeExtension "crfsuite.node" for OS "linux centos"

#1

Error starting botpress
Error: Could not require NativeExtension “crfsuite.node” for OS “linux centos”. Tried the following paths: [ /home/latcosmic/botpress/bindings/linux/centos_6_10 /crfsuite.node, /home/latcosmic/botpress/bindings/linux/default/crfsuite.node ]
at Module.module_1.default.require (/snapshot/build-linux/out/bp/sdk/rewire. js:0:0)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/snapshot/build-linux/out/bp/ml/crfsuite.js:0:0)
at Module._compile (pkg/prelude/bootstrap.js:1255:22)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:711:10)
at Module.load (internal/modules/cjs/loader.js:610:32)
at tryModuleLoad (internal/modules/cjs/loader.js:549:12)
at Function.Module._load (internal/modules/cjs/loader.js:541:3)
at Module.require (internal/modules/cjs/loader.js:648:17)
at Module.require (pkg/prelude/bootstrap.js:1160:31)
at Module.module_1.default.require (/snapshot/build-linux/out/bp/sdk/rewire. js:0:0)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/snapshot/build-linux/out/bp/ml/toolkit.js:0:0)
at Module._compile (pkg/prelude/bootstrap.js:1255:22)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:711:10)
at Module.load (internal/modules/cjs/loader.js:610:32)
Could not require NativeExtension “crfsuite.node” for OS “linux centos”. Tried t he following paths: [ /home/latcosmic/botpress/bindings/linux/centos_6_10/crfsui te.node, /home/latcosmic/botpress/bindings/linux/default/crfsuite.node ]

Facing a issue with Botpress 11.8.4 On centos 6.10 My node version is 10.15.3

#2

As a workaround, you can try the following:

  1. Navigate to bindings/linux directory and check whether you have bindings for different centos version (e.g. there might be folder centos_7_5)
  2. Copy that folder and name it centos_6_10

Could you also report this issue to the github?

#3

Yeah tried that already same error

Error: Could not require NativeExtension “crfsuite.node” for OS “linux centos”. Tried the following paths: [ /home/latcosmic/botpress/bindings/linux/centos_7_5/crfsuite.node, /home/latcosmic/botpress/bindings/linux/default/crfsuite.node ]
at Module.module_1.default.require (/snapshot/build-linux/out/bp/sdk/rewire.js:0:0)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/snapshot/build-linux/out/bp/ml/crfsuite.js:0:0)
at Module._compile (pkg/prelude/bootstrap.js:1255:22)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:711:10)
at Module.load (internal/modules/cjs/loader.js:610:32)
at tryModuleLoad (internal/modules/cjs/loader.js:549:12)
at Function.Module._load (internal/modules/cjs/loader.js:541:3)
at Module.require (internal/modules/cjs/loader.js:648:17)
at Module.require (pkg/prelude/bootstrap.js:1160:31)
at Module.module_1.default.require (/snapshot/build-linux/out/bp/sdk/rewire.js:0:0)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/snapshot/build-linux/out/bp/ml/toolkit.js:0:0)
at Module._compile (pkg/prelude/bootstrap.js:1255:22)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:711:10)
at Module.load (internal/modules/cjs/loader.js:610:32)