Django expat error

118 views
Skip to first unread message

Amal Francis

unread,
Nov 5, 2014, 12:10:42 PM11/5/14
to django...@googlegroups.com
I have a fresh installation of Django 1.7 on virtualenv. When i run the migration python manage.py migrate am getting 

    from xml.sax.expatreader import ExpatParser as _ExpatParser
  File "/usr/lib/python2.7/xml/sax/expatreader.py", line 24, in <module>
    raise SAXReaderNotAvailable("expat not supported", None)
xml.sax._exceptions.SAXReaderNotAvailable: expat not supported

I am using ubuntu 14.04. Any help, please?
Thanks in advance.

Collin Anderson

unread,
Nov 12, 2014, 3:07:10 PM11/12/14
to django...@googlegroups.com
Hello,

Interesting. Could you post more of the traceback?

Thanks,
Collin

Syed Saqlain

unread,
Jan 3, 2017, 7:05:07 AM1/3/17
to Django users
Hi I am getting same error I am using django 1.8

/home/vagrant/.virtualenvs/bmo-us-wealth/local/lib/python2.7/site-packages/environ/environ.py:572: UserWarning: not reading /home/vagrant/source/core/.env - it doesn't exist.
  warnings.warn("not reading %s - it doesn't exist." % env_file)
Operations to perform:
  Synchronize unmigrated apps: messages, icon_mixin, django_coverage, sekizai, import_export, treebeard, localflavor, style, link_mixin, title_mixin, haystack, mptt, staticfiles, button_mixin, djangocms_admin_style, sitemaps, multiselectfield, promote, insights, ckeditor, debug_toolbar, django_extensions, django_nose, image_cropping
  Apply all migrations: contact_us_plugin, horizontal_tab_plugin, tabs, share, resource_plugin, sites, captcha, banker_contact_grid, iframe_plugin, easy_thumbnails, send_message_plugin, category, resource, category_segment, accordion, mega_menu_plugin, sessions, contenttypes, feature_text, menus, banker_plugin, modal_plugin, image_plugin, grid_plugin, footer_plugin, page_section_target, locationcomponent, our_services_plugin, auth, call_us_plugin, card, text_plugin, carousel_plugin, button_component, casestudykeyword_plugin, admin, award_component, floodlight_plugin, djangocms_accordion, page_section_links, location_states, circle_component, banker, taggit, sticky_nav, solution_specialist, how_we_help_plugin, cms, stay_connected_form
Synchronizing apps without migrations:
  Creating tables...
    Running deferred SQL...
  Installing custom SQL...
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/vagrant/.virtualenvs/bmo-us-wealth/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
    utility.execute()
  File "/home/vagrant/.virtualenvs/bmo-us-wealth/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/vagrant/.virtualenvs/bmo-us-wealth/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/vagrant/.virtualenvs/bmo-us-wealth/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
    output = self.handle(*args, **options)
  File "/home/vagrant/.virtualenvs/bmo-us-wealth/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 179, in handle
    created_models = self.sync_apps(connection, executor.loader.unmigrated_apps)
  File "/home/vagrant/.virtualenvs/bmo-us-wealth/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 365, in sync_apps
    hide_empty=True,
  File "/home/vagrant/.virtualenvs/bmo-us-wealth/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 120, in call_command
    return command.execute(*args, **defaults)
  File "/home/vagrant/.virtualenvs/bmo-us-wealth/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
    output = self.handle(*args, **options)
  File "/home/vagrant/.virtualenvs/bmo-us-wealth/local/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 60, in handle
    self.loaddata(fixture_labels)
  File "/home/vagrant/.virtualenvs/bmo-us-wealth/local/lib/python2.7/site-packages/django/core/management/commands/loaddata.py", line 78, in loaddata
    self.serialization_formats = serializers.get_public_serializer_formats()
  File "/home/vagrant/.virtualenvs/bmo-us-wealth/local/lib/python2.7/site-packages/django/core/serializers/__init__.py", line 111, in get_public_serializer_formats
    _load_serializers()
  File "/home/vagrant/.virtualenvs/bmo-us-wealth/local/lib/python2.7/site-packages/django/core/serializers/__init__.py", line 153, in _load_serializers
    register_serializer(format, BUILTIN_SERIALIZERS[format], serializers)
  File "/home/vagrant/.virtualenvs/bmo-us-wealth/local/lib/python2.7/site-packages/django/core/serializers/__init__.py", line 71, in register_serializer
    module = importlib.import_module(serializer_module)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/vagrant/.virtualenvs/bmo-us-wealth/local/lib/python2.7/site-packages/django/core/serializers/xml_serializer.py", line 9, in <module>
Reply all
Reply to author
Forward
0 new messages