node-buffertools icon indicating copy to clipboard operation
node-buffertools copied to clipboard

The system cannot find message text for message number 0x%1 in the message file for %2 while require('buffertools')

Open OgNellis opened this issue 9 years ago • 8 comments

Window7 x86 Node 5.10.1 I try to build buffertools such way:

node-gyp configure
node-gyp build -d

Then I got the error while requiring buffertools (require('buffertools');):

The system cannot find message text for message number 0x%1 in the message file for %2.
\\?\D:\work\terminal_second\build\Wjbets-v0.1.03\node_modules\buffertools\build\Debug\buffertools.node"

OgNellis avatar Jun 20 '16 11:06 OgNellis

Can you delete your node_modules directory and reinstall buffertools without -d?

bnoordhuis avatar Jun 20 '16 11:06 bnoordhuis

Yes, I have tried to delete the node_modules and to reinstall buffertools but nothing changed.

OgNellis avatar Jun 20 '16 13:06 OgNellis

Can you post the exact error message? Does it still say Debug in the file path?

The error itself suggests buffertools has been compiled wrong, e.g., for the wrong architecture.

bnoordhuis avatar Jun 20 '16 19:06 bnoordhuis

Error: The system cannot find message text for message number 0x%1 in the message file for %2.
\\?\D:\work\terminal_second\build\Wjbets-v0.1.03\node_modules\buffertools\build\Release\buffertools.node
at Error (native)
at Object.Module._extensions..node (module.js:476:18)
at Module.load (module.js:375:32)
at Function.Module._load (module.js:332:12)
at Module.require (module.js:385:17)
at require (internal/module.js:16:19)
at self.require (<anonymous>:11:26)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

When I compile information shows that it is compiled for x32

OgNellis avatar Jun 21 '16 06:06 OgNellis

Am I right to assume that node -p process.arch says 'x64'? If yes, what happens when you pass --arch=x64 to node-gyp?

bnoordhuis avatar Jun 21 '16 07:06 bnoordhuis

image

OgNellis avatar Jun 21 '16 08:06 OgNellis

Okay, then I'm afraid I don't know what the issue is.

bnoordhuis avatar Jun 21 '16 08:06 bnoordhuis

have anyone found I a solution to this? I get the same error when in my attempt to use electron with emberJS and zerorpc to communicate with python.

MrfksIv avatar Oct 04 '17 13:10 MrfksIv