Skip to content
This repository was archived by the owner on Nov 10, 2017. It is now read-only.

ImportError: cannot import name LaxOptionParser #29

Open
Bjwebb opened this issue Aug 27, 2015 · 0 comments
Open

ImportError: cannot import name LaxOptionParser #29

Bjwebb opened this issue Aug 27, 2015 · 0 comments
Labels

Comments

@Bjwebb
Copy link
Contributor

Bjwebb commented Aug 27, 2015

From our salt run:

----------
          ID: assets-standard-collaborator
    Function: cmd.run
        Name: source .ve/bin/activate; python manage.py assets build
      Result: False
     Comment: Command "source .ve/bin/activate; python manage.py assets build" run
     Started: 16:14:36.512559
    Duration: 387.64 ms
     Changes:   
              ----------
              pid:
                  24438
              retcode:
                  1
              stderr:
                  Traceback (most recent call last):
                    File "manage.py", line 58, in <module>
                      execute_from_command_line(sys.argv)
                    File "/home/opencontracting/standard-collaborator/django/website/.ve/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
                      utility.execute()
                    File "/home/opencontracting/standard-collaborator/django/website/.ve/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute
                      self.fetch_command(subcommand).run_from_argv(self.argv)
                    File "/home/opencontracting/standard-collaborator/django/website/.ve/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 190, in fetch_command
                      klass = load_command_class(app_name, subcommand)
                    File "/home/opencontracting/standard-collaborator/django/website/.ve/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 40, in load_command_class
                      module = import_module('%s.management.commands.%s' % (app_name, name))
                    File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
                      __import__(name)
                    File "/home/opencontracting/standard-collaborator/django/website/.ve/local/lib/python2.7/site-packages/django_assets/management/commands/assets.py", line 29, in <module>
                      from django.core.management import LaxOptionParser
                  ImportError: cannot import name LaxOptionParser
              stdout:

I suspect this is due to changes in Django 1.8. It's not currently affecting our live/dev sites as the assets have not changed since last time they were successfully deployed.

@Bjwebb Bjwebb added the bug label Sep 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant