vulmap icon indicating copy to clipboard operation
vulmap copied to clipboard

AttributeError: module 'random' has no attribute 'choices'

Open mcam1551 opened this issue 3 years ago • 1 comments

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.

mcam1551 avatar Apr 03 '21 22:04 mcam1551

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

zhzyker avatar Apr 04 '21 07:04 zhzyker