Node-gyp: No module named filecmp

Created on 31 Jul 2012  路  5Comments  路  Source: nodejs/node-gyp

i am using node on beaglebone .. with angstrom distribution
it gave me this error

No module named filecmp

I search the internet .. but i could not find how to get this file to work ..

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | arm
gyp info spawn python
gyp info spawn args [ '/home/root/.node-gyp/0.6.14/tools/gyp_addon',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-I/build/config.gypi',
gyp info spawn args   '-f',
gyp info spawn args   'make' ]
Traceback (most recent call last):
  File "/home/root/.node-gyp/0.6.14/tools/gyp_addon", line 14, in <module>
    import gyp
  File "/home/root/.node-gyp/0.6.14/tools/gyp/pylib/gyp/__init__.py", line 8, in <module>
    import gyp.input
  File "/home/root/.node-gyp/0.6.14/tools/gyp/pylib/gyp/input.py", line 14, in <module>
    import gyp.common
  File "/home/root/.node-gyp/0.6.14/tools/gyp/pylib/gyp/common.py", line 8, in <module>
    import filecmp
ImportError: No module named filecmp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp_addon` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/node-gyp/lib/configure.js:290:16)
gyp ERR! stack     at ChildProcess.emit (events.js:70:17)
gyp ERR! stack     at maybeExit (child_process.js:360:16)
gyp ERR! stack     at Process.onexit (child_process.js:396:5)
gyp ERR! System Linux 3.1.0+
gyp ERR! command "node" "/usr/bin/node-gyp" "configure"
gyp ERR! cwd /
gyp ERR! node -v v0.6.14
gyp ERR! node-gyp -v v0.6.2
gyp ERR! not ok 

Most helpful comment

If anyone is finding an issue with importing filecmp on angstrom/openembedded you need to install the python-misc package.

Sorry for commenting on an old/closed issue

All 5 comments

Which version of python?

its Python 2.7.2

i restart every thing many times .. but this problem still coming

i am waiting for replay

I manually copy the files (filecmp.py,filecmp.pyc) from my python on ubuntu ...

so now i got this error

Exception: binding.gyp not found (cwd: /) while trying to load binding.gyp

Well what command are you invoking? You probably aren't meaning to invoke node-gyp from the / directory.

If anyone is finding an issue with importing filecmp on angstrom/openembedded you need to install the python-misc package.

Sorry for commenting on an old/closed issue

Was this page helpful?
0 / 5 - 0 ratings