windows 10 ModuleNotFoundError: No module named 'pwd'

See original GitHub issue
# 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 ??

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:12

github_iconTop GitHub Comments

4reactions
nmantanicommented, Feb 24, 2022

Though I created the pull request https://github.com/ReFirmLabs/binwalk/pull/577 to fix this error in November 2021, it has not been merged yet. 😥

0reactions
Byxs20commented, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'pwd' on Windows 10 · Issue #3107 - GitHub
Trying to start localstack (0.11.6) that's been downloaded on a Windows 10 machine with the help of pip. In fact, trying to run...
Read more >
import daemon, but there is an error: No module named pwd ...
1) pip install daemon. ; 2) Open windows cmd and input: python, then input: import daemon the terminal show ; 3) pip install...
Read more >
ModuleNotFoundError: No module named 'pwd'
Dear all, I ran into this error when the program was starting. The program still ran smoothly the last time I used it,...
Read more >
(Win10) ModuleNotFoundError: No module named 'pwd'
On windows, when running aicrowd-repo2docker .\build.sh I get the following error: I believe the problem is because pwd is linux only.
Read more >
No module named pwd - Google Groups
Hi I'm using django (trunk) with GAE I got strange exception on appspot (and there were no such exception on dev_appserver (on windows))...
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