DataSploit / datasploit

An #OSINT Framework to perform various recon techniques on Companies, People, Phone Number, Bitcoin Addresses, etc., aggregate all the raw data, and give data in multiple formats.
GNU General Public License v3.0
3.04k stars 424 forks source link

AttributeError: 'module' object has no attribute '_base' #104

Closed hydhyd closed 7 years ago

hydhyd commented 7 years ago

Did a "pip install -r requirements.txt", ran "C_FORCE_ROOT=root celery -A core worker -l info --concurrency 20":

root@foobar:~/datasploit/core# C_FORCE_ROOT=root celery -A core worker -l info --concurrency 20 Traceback (most recent call last): File "/usr/local/bin/celery", line 11, in sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/celery/main.py", line 30, in main main() File "/usr/local/lib/python2.7/dist-packages/celery/bin/celery.py", line 81, in main cmd.execute_from_commandline(argv) File "/usr/local/lib/python2.7/dist-packages/celery/bin/celery.py", line 793, in execute_from_commandline super(CeleryCommand, self).execute_from_commandline(argv))) File "/usr/local/lib/python2.7/dist-packages/celery/bin/base.py", line 311, in execute_from_commandline return self.handle_argv(self.prog_name, argv[1:]) File "/usr/local/lib/python2.7/dist-packages/celery/bin/celery.py", line 785, in handle_argv return self.execute(command, argv) File "/usr/local/lib/python2.7/dist-packages/celery/bin/celery.py", line 717, in execute ).run_from_argv(self.prog_name, argv[1:], command=argv[0]) File "/usr/local/lib/python2.7/dist-packages/celery/bin/worker.py", line 179, in run_from_argv return self(*args, *options) File "/usr/local/lib/python2.7/dist-packages/celery/bin/base.py", line 274, in call ret = self.run(args, kwargs) File "/usr/local/lib/python2.7/dist-packages/celery/bin/worker.py", line 212, in run state_db=self.node_format(state_db, hostname), kwargs File "/usr/local/lib/python2.7/dist-packages/celery/worker/init.py", line 95, in init self.app.loader.init_worker() File "/usr/local/lib/python2.7/dist-packages/celery/loaders/base.py", line 128, in init_worker self.import_default_modules() File "/usr/local/lib/python2.7/dist-packages/celery/loaders/base.py", line 116, in import_default_modules signals.import_modules.send(sender=self.app) File "/usr/local/lib/python2.7/dist-packages/celery/utils/dispatch/signal.py", line 166, in send response = receiver(signal=self, sender=sender, *named) File "/usr/local/lib/python2.7/dist-packages/celery/fixups/django.py", line 73, in on_import_modules self.worker_fixup.validate_models() File "/usr/local/lib/python2.7/dist-packages/celery/fixups/django.py", line 173, in validate_models cmd.check() File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 426, in check include_deployment_checks=include_deployment_checks, File "/usr/local/lib/python2.7/dist-packages/django/core/checks/registry.py", line 75, in run_checks new_errors = check(app_configs=app_configs) File "/usr/local/lib/python2.7/dist-packages/django/core/checks/urls.py", line 13, in check_url_config return check_resolver(resolver) File "/usr/local/lib/python2.7/dist-packages/django/core/checks/urls.py", line 23, in check_resolver for pattern in resolver.url_patterns: File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 33, in get res = instance.dict[self.name] = self.func(instance) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 417, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 33, in get res = instance.dict[self.name] = self.func(instance) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 410, in urlconf_module return import_module(self.urlconf_name) File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module import(name) File "/root/datasploit/core/core/urls.py", line 22, in url(r'^osint/', include('ui.urls', namespace = "osint")), File "/usr/local/lib/python2.7/dist-packages/django/conf/urls/init.py", line 52, in include urlconf_module = import_module(urlconf_module) File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module import(name) File "/root/datasploit/core/ui/urls.py", line 17, in from ui import views File "/root/datasploit/core/ui/views.py", line 5, in from osint import File "/root/datasploit/core/osint/domain_sslinfo.py", line 4, in from bs4 import BeautifulSoup File "/usr/local/lib/python2.7/dist-packages/bs4/init.py", line 30, in from .builder import builder_registry, ParserRejectedMarkup File "/usr/local/lib/python2.7/dist-packages/bs4/builder/init.py", line 314, in from . import _html5lib File "/usr/local/lib/python2.7/dist-packages/bs4/builder/_html5lib.py", line 70, in class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder): AttributeError: 'module' object has no attribute '_base'

root@foobar:~/datasploit/core# cat /etc/debian_version && python -V Kali Linux Rolling Python 2.7.13

Any input? Thanks.

vysecurity commented 7 years ago

How was this fixed? It's still here.

dxflatline commented 7 years ago

Try this. It worked for me :)

pip install --upgrade beautifulsoup4 pip install --upgrade html5lib

I suppose the requirements.txt should update their versions..