Skip to content

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

Description

@sprutner

Hey there,

I followed your instructions exactly, but when I try to run

./manage.py search --help
or any ./manage.py search

I run into

$ ./manage.py search
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/srutner/skyscraper/lib/python2.7/site-packages/django/core/management/__init__.py", line 453, in execute_from_command_line
    utility.execute()
  File "/Users/srutner/skyscraper/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/srutner/skyscraper/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/Users/srutner/skyscraper/lib/python2.7/site-packages/django/core/management/__init__.py", line 77, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File "/Users/srutner/skyscraper/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/Users/srutner/skyscraper/skyscanner_scraper/management/commands/search.py", line 16, in <module>
    from skyscanner_scraper.client import SkyscannerClient
  File "/Users/srutner/skyscraper/skyscanner_scraper/client.py", line 13, in <module>
    from bs4 import BeautifulSoup
  File "/Users/srutner/skyscraper/lib/python2.7/site-packages/bs4/__init__.py", line 29, in <module>
    from .builder import builder_registry
  File "/Users/srutner/skyscraper/lib/python2.7/site-packages/bs4/builder/__init__.py", line 306, in <module>
    from . import _html5lib
  File "/Users/srutner/skyscraper/lib/python2.7/site-packages/bs4/builder/_html5lib.py", line 57, in <module>
    class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: 'module' object has no attribute '_base'

Any idea why this is occurring?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions