question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't work on Windows

See original GitHub issue

In the latest release notes you mention that it should work on Windows. However, after pip installing it i get the following errors:

In [2]: binwalk.scan(r"C:\Windows\System32\Calc.exe", signatures=True)

General Error: Cannot open file : [Errno 2] No such file or directory: '--signatures'

---------------------------------------------------------------------------
ModuleException                           Traceback (most recent call last)
<ipython-input-2-a05707c228ff> in <module>
----> 1 binwalk.scan(r"C:\Windows\System32\Calc.exe", signatures=True)

c:\users\loki\miniconda3\envs\stegoveritas\lib\site-packages\binwalk\__init__.py in scan(*args, **kwargs)
      8 def scan(*args, **kwargs):
      9     with Modules(*args, **kwargs) as m:
---> 10         objs = m.execute()
     11     return objs
     12

c:\users\loki\miniconda3\envs\stegoveritas\lib\site-packages\binwalk\core\module.py in execute(self, *args, **kwargs)
    782         # Run all modules
    783         for module in self.list():
--> 784             obj = self.run(module)
    785
    786         # Add all loaded modules that marked themselves as enabled to the

c:\users\loki\miniconda3\envs\stegoveritas\lib\site-packages\binwalk\core\module.py in run(self, module, dependency, kwargs)
    801         '''
    802         try:
--> 803             obj = self.load(module, kwargs)
    804
    805             if isinstance(obj, binwalk.core.module.Module) and obj.enabled:

c:\users\loki\miniconda3\envs\stegoveritas\lib\site-packages\binwalk\core\module.py in load(self, module, kwargs)
    832         argv = self.argv(module, argv=self.arguments)
    833         argv.update(kwargs)
--> 834         argv.update(self.dependencies(module, argv['enabled']))
    835         return module(self, **argv)
    836

c:\users\loki\miniconda3\envs\stegoveritas\lib\site-packages\binwalk\core\module.py in dependencies(self, module, module_enabled)
    864             # raise an exception
    865             if depobj.errors:
--> 866                 raise ModuleException("Failed to load " + dependency.name + " module")
    867             else:
    868                 attributes[dependency.attribute] = depobj

ModuleException: Failed to load General module

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
Kungergelycommented, Aug 9, 2020

Actually the PR by @akx makes this work out of the box on Windows 10. You just have to clone his branch (git clone -b packaging-fixes https://github.com/akx/binwalk.git) and run pip install . in the newly-created folder. Then binwalk can be run either by typing binwalk in the command like (if the Python installation’s Scripts folder is added to %PATH%) or by typing python3 -m binwalk

1reaction
rajhlinuxcommented, Apr 28, 2020

@Bamgm14 Can you write a tutorial on how you got it working on windows 10? Would be great. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What You Should Do If Windows Fails to Start
1. Restart the PC, and as soon as Windows 10 tries to load; remove the power supply or press and hold the Power...
Read more >
[Solved] Windows 10 Not Responding | Quickly & Easily
How to Fix Windows 10 not responding · Restart your computer · Troubleshoot your computer · Update available drivers · Run System File...
Read more >
Fix problems with the Start menu - Microsoft Support
Fix problems with the Start menu · Show a hidden taskbar · Check for updates · Restart your device · Update drivers ·...
Read more >
Troubleshoot problems updating Windows - Microsoft Support
Have issues installing Windows updates? Start here. · Free up some drive space so you can run updates · Restart to apply installed...
Read more >
Windows 10 start button not working - Microsoft Community
Hello, I am using a windows 10 preview build, the most recent one. Just last night the start menu stopped working, it doesn't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found