Skip to content

No module named 'fraction' in BiAn src. #3

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

Open
AlirezaEthDev opened this issue Nov 8, 2022 · 1 comment
Open

No module named 'fraction' in BiAn src. #3

AlirezaEthDev opened this issue Nov 8, 2022 · 1 comment

Comments

@AlirezaEthDev
Copy link

AlirezaEthDev commented Nov 8, 2022

I've cloned BiAn correctly by:

git clone https://github.com/xf97/BiAn

After that, I change the directory to the BiAn src and there I run it by:

python main.py <contractName>.sol <contractName>.ast
But, This error occurred and the process stopped:

Traceback (most recent call last):
  File "...\BiAn\src\main.py", line 5, in <module>
    from dataflowObfuscation import dataflowObfuscation
  File "...\BiAn\src\dataflowObfuscation.py", line 15, in <module>
    from literal2Exp import literal2Exp
  File "...\BiAn\src\literal2Exp.py", line 5, in <module>
    from generateExp import generateExp
  File "...\BiAn\src\generateExp.py", line 7, in <module>
    from postProcessing import postProcessing
  File "...\BiAn\src\postProcessing.py", line 4, in <module>
    from fraction import Fraction
ModuleNotFoundError: No module named 'fraction'

It seems there is no module named fraction in the src. I checked the online file on BiAn's GitHub and see that doesn't exist there too. So, because of that, BiAn can't do its task. What is the solution? How can I find the module?

@z0rats
Copy link

z0rats commented Jun 5, 2023

@AlirezaEthDev I solved it by installing Fraction package:
pip3 install Fraction
python3 main.py <contractName>.sol <contractName>.ast

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

2 participants