Traceback (most recent call last): File "/usr/local/bin/binwalk", line 25, in <module> import binwalk File "/usr/local/lib/python2.7/dist-packages/binwalk/__init__.py", line 3, in <module> from binwalk.core.module import Modules File "/usr/local/lib/python2.7/dist-packages/binwalk/core/module.py", line 17, in <module> import binwalk.core.settings File "/usr/local/lib/python2.7/dist-packages/binwalk/core/settings.py", line 135 if os.path.expanduser("~") is Not None: ^ SyntaxError: invalid syntax
不知道为什么它会犯这种语法错误,进settings.py将Not改成not即可。 问题二:
1 2 3 4 5 6 7 8 9 10
Traceback (most recent call last): File "/usr/local/bin/binwalk", line 81, in <module> main() File "/usr/local/bin/binwalk", line 57, in main usage(modules) File "/usr/local/bin/binwalk", line 44, in usage sys.stderr.write(modules.help()) File "/usr/local/lib/python2.7/dist-packages/binwalk/core/module.py", line 735, in help help_string += "Binwalk v%s\n" % binwalk.__version__ AttributeError: 'module' object has no attribute '__version__'