Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows 10 ModuleNotFoundError: No module named 'pwd' #594

Open
babyshen opened this issue Feb 24, 2022 · 13 comments
Open

windows 10 ModuleNotFoundError: No module named 'pwd' #594

babyshen opened this issue Feb 24, 2022 · 13 comments

Comments

@babyshen
Copy link

# windows 10
# python setup.py install 
C:\software\Python37\Scripts>python binwalk -h
Traceback (most recent call last):
  File "binwalk", line 4, in <module>
    __import__('pkg_resources').run_script('binwalk==2.3.3', 'binwalk')
  File "C:\software\Python37\lib\site-packages\pkg_resources\__init__.py", line 664, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "C:\software\Python37\lib\site-packages\pkg_resources\__init__.py", line 1444, in run_script
    exec(code, namespace, namespace)
  File "c:\software\python37\lib\site-packages\binwalk-2.3.3-py3.7.egg\EGG-INFO\scripts\binwalk", line 2, in <module>
    from binwalk.__main__ import main
  File "C:\software\Python37\lib\site-packages\binwalk-2.3.3-py3.7.egg\binwalk\__main__.py", line 24, in <module>
    import binwalk.modules
  File "C:\software\Python37\lib\site-packages\binwalk-2.3.3-py3.7.egg\binwalk\modules\__init__.py", line 16, in <module>
    from binwalk.modules.extractor import Extractor
  File "C:\software\Python37\lib\site-packages\binwalk-2.3.3-py3.7.egg\binwalk\modules\extractor.py", line 7, in <module>
    import pwd
ModuleNotFoundError: No module named 'pwd'

why ??

@babyshen
Copy link
Author

binwalk 2.3.3

@nmantani
Copy link

Though I created the pull request #577 to fix this error in November 2021, it has not been merged yet. 😥

@babyshen
Copy link
Author

binwalk 2.3.2 works fine on windows10.

@DieselDX
Copy link

Is it work now? How do you solve the problem? Same error occur to me.

@babyshen
Copy link
Author

@DieselDX use binwalk 2.3.2

@kazegh
Copy link

kazegh commented May 1, 2022

I have the same question:How do you solve the problem?
Windows 11
Python 3.9.10 (tags/v3.9. , Jan 17 2022, 15:14:21) [MSC v.1929 64 bit (AMD64)] on win32

@hahn23
Copy link

hahn23 commented May 17, 2022

I used the following workaround. Download the 2.3.2 package and take the file "binwalk-2.3.2.zip\binwalk-2.3.2\src\binwalk\modules\extractor.py" and replace it with the one under "C:\software\Python37\lib\site-packages\binwalk-2.3.3-py3.7.egg\binwalk\modules" (according your example)

After that it should work with 2.3.3 as well.

@CypherpunkSamurai
Copy link

CypherpunkSamurai commented May 17, 2022

For someone looking to run binwalk without all the editing and stuff, I've made a fork of biwalk with PR #577 merged, and with unofficial released binaries.

https://github.com/CypherpunkSamurai/binwalk-win/releases/tag/v2.3.4

you can use it for the moment until the PR gets merged :)

@nmantani
Copy link

@CypherpunkSamurai Thank you for using my fix!

No commit or merge have been made to this repository since last September... Is binwalk abandoned?

@CypherpunkSamurai
Copy link

CypherpunkSamurai commented May 18, 2022

@CypherpunkSamurai Thank you for using my fix!

Thanks to you for the PR, I was going through the PR for a fix then i found this issue :)

No commit or merge have been made to this repository since last September... Is binwalk abandoned?

Binwalk is probably the primary tool in most people's re toolkits. I doubt it's abandoned. The devs are probably busy with other projects / life. Also, Windows PRs always take time ;)

@CypherpunkSamurai
Copy link

I would honestly want to make a golang / nim / rust / cpp version of binwalk and name it similarly for the credits.

We could use the magic headers from binwalk and other sweet stuff :)

@Byxs20
Copy link

Byxs20 commented Aug 23, 2022

我使用了以下解决方法。下载2.3.2包,将“binwalk-2.3.2.zip\binwalk-2.3.2\src\binwalk\modules\extractor.py”文件替换为“C:\software\Python37\ lib\site-packages\binwalk-2.3.3-py3.7.egg\binwalk\modules”(根据你的例子)

它之后也应该与2.3.3一起使用。

Thank you. That solved my problem.

@dwisuseno
Copy link

我使用了以下解决方法。下载2.3.2包,将“binwalk-2.3.2.zip\binwalk-2.3.2\src\binwalk\modules\extractor.py”文件替换为“C:\software\Python37\ lib\site-packages\binwalk-2.3.3-py3.7.egg\binwalk\modules”(根据你的例子)
它之后也应该与2.3.3一起使用。

Thank you. That solved my problem.

I don't get it, how to solve this issue about no module pwd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants