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.01k stars 425 forks source link

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

Open NSTikhomirov opened 6 years ago

NSTikhomirov commented 6 years ago

Command: python2 ./domainOsint.pyc pengen.ru TraceBack:

  File "/root/pentest/datasploit/domainOsint.py", line 17, in <module>
    run(domain, options.output)
  File "/root/pentest/datasploit/domainOsint.py", line 9, in run
    osint_runner.run("domain", "domain", domain, output)
  File "/root/pentest/datasploit/osint_runner.py", line 17, in run
    x = importlib.import_module(module_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/root/pentest/datasploit/domain/domain_history.py", line 6, in <module>
    from bs4 import BeautifulSoup
  File "/usr/lib/python2.7/dist-packages/bs4/__init__.py", line 30, in <module>
    from .builder import builder_registry, ParserRejectedMarkup
  File "/usr/lib/python2.7/dist-packages/bs4/builder/__init__.py", line 314, in <module>
    from . import _html5lib
  File "/usr/lib/python2.7/dist-packages/bs4/builder/_html5lib.py", line 70, in <module>
    class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: 'module' object has no attribute '_base'
NSTikhomirov commented 6 years ago

Requirements installed by pip2 install -r requirements.txt command Installed by pip:

Successfully installed BeautifulSoup-3.2.1 TravisPy-0.3.5 anyjson-0.3.3 attrs-17.3.0 billiard-3.5.0.3 bs4-0.0.1 clearbit-0.1.7 config-0.3.9 future-0.16.0 google-api-python-client-1.6.4 httplib2-0.10.3 ipaddr-2.2.0 ipwhois-1.0.0 json2html-1.2.1 oauth2client-4.1.2 oauthlib-2.0.6 piplapis-python-5.1.4 py-1.5.2 pyasn1-modules-0.2.1 pymongo-3.6.0 pytest-3.3.1 pytest-rerunfailures-3.1 python-Wappalyzer-0.2.2 python-whois-0.6.7 requests-file-1.4.2 requests-oauthlib-0.8.0 rsa-3.4.2 simplejson-3.13.2 termcolor-1.1.0 tld-0.7.9 tldextract-2.2.0 tqdm-4.19.5 tweepy-3.5.0 uritemplate-3.0.0
gnomefish commented 6 years ago

Same here - fresh install

Chan9390 commented 6 years ago

Hey @PenGenKiddy and @gnomefish ,

When you install python using apt-get install python, a few recommendations like requests and BeautifulSoup gets installed by default. These versions are older than required.

So, try the command: pip install --upgrade --force-reinstall -r requirements.txt

Please comment if you are facing any issues again.

NOTE: @PenGenKiddy to execute datasploit, the command is python datasploit.py -i <target>

gnomefish commented 6 years ago

Hi Chan, that fiexed it! thanks!

Chan9390 commented 6 years ago

@upgoingstar Time to close this issue.