Traceback (most recent call last):


 "train.py", line 522, in <module>

x = x[random.choices(range(n), weights=w)[0]]
# weighted selection
AttributeError: 'builtin_function_or_method' object has no attribute 'choices'
Traceback (most recent call last):


 "wifi-pumpkin.py", line 50, in <module>

from core.main import Initialize


 "/usr/share/WiFi-Pumpkin/core/main.py", line 31, in <module>

from core.widgets.tabmodels import (


 "/usr/share/WiFi-Pumpkin/core/widgets/tabmodels.py", line 7, in <module>

from core.utility.threads import ThreadPopen


 "/usr/share/WiFi-Pumpkin/core/utility/threads.py", line 19, in <module>

from core.servers.proxy.controller.handler import MasterHandler


 "/usr/share/WiFi-Pumpkin/core/servers/proxy/controller/handler.py", line 1, in <module>

from plugins.extension import *


 "/usr/share/WiFi-Pumpkin/plugins/extension/html_inject.py", line 2, in <module>

from bs4 import BeautifulSoup


 "/usr/local/lib/python2.7/dist-packages/bs4/__init__.py", line 30, in <module>

from .builder import builder_registry, ParserRejectedMarkup


 "/usr/local/lib/python2.7/dist-packages/bs4/builder/__init__.py", line 311, in <module>

from . import _html5lib


 "/usr/local/lib/python2.7/dist-packages/bs4/builder/_html5lib.py", line 57, in <module>

class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: 'module' object has no attribute '_base'
