Skip to content

Instantly share code, notes, and snippets.

@sh1mmer
Created March 24, 2011 22:52
Show Gist options
  • Save sh1mmer/886058 to your computer and use it in GitHub Desktop.
Save sh1mmer/886058 to your computer and use it in GitHub Desktop.
/Users/croucher/Code/node/wscript: error: Traceback (most recent call last):
File "/Users/croucher/Code/node/tools/wafadmin/Utils.py", line 274, in load_module
exec(compile(code, file_path, 'exec'), module.__dict__)
File "/Users/croucher/Code/node/wscript", line 38, in <module>
import js2c
File "/Users/croucher/Code/node/tools/js2c.py", line 41, in <module>
import jsmin
ImportError: Bad magic number in /Users/croucher/Code/node/tools/jsmin.pyc
@sh1mmer
Copy link
Author

sh1mmer commented Mar 24, 2011

Fixed with:

find . -name *.pyc | xargs rm

or:

make distclean

If you have pyc files from another version of python in the WD it will fuck up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment