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

ModuleNotFoundError: No module named 'simplifier' when running decompile.py in command line #378

Closed
yangzao opened this issue Jan 13, 2024 · 2 comments
Labels
question Further information is requested

Comments

@yangzao
Copy link

yangzao commented Jan 13, 2024

Question

Hi,

I tried to run the CLI version of dewolf (decompile.py), but it's showing no module named 'simplifier':

zao@lebowski:~/code/decompilers/dewolf$ python3 decompile.py --help
Traceback (most recent call last):
  File "/home/zao/code/decompilers/dewolf/decompile.py", line 7, in <module>
    from decompiler.backend.codegenerator import CodeGenerator
  File "/home/zao/code/decompilers/dewolf/decompiler/backend/codegenerator.py", line 5, in <module>
    from decompiler.backend.cexpressiongenerator import CExpressionGenerator
  File "/home/zao/code/decompilers/dewolf/decompiler/backend/cexpressiongenerator.py", line 4, in <module>
    from decompiler.structures import pseudo as expressions
  File "/home/zao/code/decompilers/dewolf/decompiler/structures/pseudo/__init__.py", line 2, in <module>
    from .delogic_logic import DelogicConverter
  File "/home/zao/code/decompilers/dewolf/decompiler/structures/pseudo/delogic_logic.py", line 6, in <module>
    from simplifier.world.nodes import Variable as WorldVariable
ModuleNotFoundError: No module named 'simplifier'

I couldn't find this module in pip3 or online. Is this module from BinaryNinja, or is there anything I'm missing?

@yangzao yangzao added the question Further information is requested label Jan 13, 2024
@steffenenders
Copy link
Member

Hi!

Hm, it seems like you did not install the dewolf-logic module from https://github.com/fkie-cad/dewolf-logic
Have you followed the installation steps from the Readme, i.e. installing the requirements using pip? If not, make sure to pip install -r requirements.txt
Also, take a look at the following issue+solution from a seemingly related issue: #345

@yangzao
Copy link
Author

yangzao commented Jan 18, 2024

thank you!

@yangzao yangzao closed this as completed Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants