Open mcam1551 opened 3 years ago
In python 3.5 random.choices() will fail because that method is not available on python 3.5.
Replacing random.choices() with random.sample() on modules/md5.py will work on python 3.5.
Adding a routine to check for python version and use one or the other works as well, for example:
import sys if sys.version_info.major == 3 and sys.version_info.minor < 6:
Etc.
In fact vulmap is designed for > python 3.7 At least python 3.6 is also required, but there is a problem with gevent in python 3.6 So it is not compatible with python 3.5
Thanks for your feedback
In python 3.5 random.choices() will fail because that method is not available on python 3.5.
Replacing random.choices() with random.sample() on modules/md5.py will work on python 3.5.
Adding a routine to check for python version and use one or the other works as well, for example:
import sys if sys.version_info.major == 3 and sys.version_info.minor < 6:
Etc.