Cannot generate data with provided default settings
I got the below error when I tried to execute without modification of the downloaded settings.
AMLSim-master>python scripts\transaction_graph_generator.py conf.json
INFO:main:Random seed: 0
INFO:main:Simulation name: sample
INFO:main:Generated 1000 accounts.
INFO:main:Add 9900 base transactions
Traceback (most recent call last):
File "scripts\transaction_graph_generator.py", line 1154, in
Hi @YonetaroKawada ,
I was curious if you were able to solve this issue, even I am facing the same issue. Please let me know if you are able to resolve this issue.
Thanks in advance.
I have the same problem.
I fixed this by installing powerlaw package.
pip3 install powerlaw
I believe this problem occurs if you use more recent versions of networkx . If you use 1.11 as they suggest, it works.
Try running:
pip3 install networkx==1.11
@FluxB I'm having the same problem here. When I change the networkx to 2.5, I have the error "ImportError: cannot import name 'gcd' from 'fractions' (/usr/lib/python3.9/fractions.py)"
Old versions of networkx are not compatible with newer python versions.
It seemed to work when changing the import from from fractions import gcd to from math import gcd in the file with the problems