Ticket #589 (closed defect: wontfix)

Opened 4 years ago

Last modified 3 years ago

Attempts to inspect egg directories for migrations fails

Reported by: floguy@… Owned by: andrew
Priority: major Milestone: 0.7.3
Component: commands Version: 0.7.2
Keywords: Cc:


Traceback (most recent call last):
  File "", line 16, in <module>
  File "/mochi/opt/app-env/py26-ticket8057/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/management/", line 438, in execute_manager
  File "/mochi/opt/app-env/py26-ticket8057/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/management/", line 379, in execute
  File "/mochi/opt/app-env/py26-ticket8057/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/management/", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/mochi/opt/app-env/py26-ticket8057/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/management/", line 220, in execute
    output = self.handle(*args, **options)
  File "/mochi/opt/app-env/py26-ticket8057/lib/python2.6/site-packages/South-0.7.2-py2.6.egg/south/management/commands/", line 84, in handle
    apps = list(migration.all_migrations())
  File "/mochi/opt/app-env/py26-ticket8057/lib/python2.6/site-packages/South-0.7.2-py2.6.egg/south/migration/", line 29, in all_migrations
    yield Migrations(app)
  File "/mochi/opt/app-env/py26-ticket8057/lib/python2.6/site-packages/South-0.7.2-py2.6.egg/south/migration/", line 60, in __call__
    self.instances[app_label] = super(MigrationsMetaclass, self).__call__(app_label_to_app_module(app_label), **kwds)
  File "/mochi/opt/app-env/py26-ticket8057/lib/python2.6/site-packages/South-0.7.2-py2.6.egg/south/migration/", line 88, in __init__
    self.set_application(application, force_creation, verbose_creation)
  File "/mochi/opt/app-env/py26-ticket8057/lib/python2.6/site-packages/South-0.7.2-py2.6.egg/south/migration/", line 161, in set_application
  File "/mochi/opt/app-env/py26-ticket8057/lib/python2.6/site-packages/South-0.7.2-py2.6.egg/south/migration/", line 169, in _load_migrations_module
    for f in os.listdir(dirname):
OSError: [Errno 20] Not a directory: '/mochi/opt/app-env/py26-ticket8057/lib/python2.6/site-packages/django_indexer-0.2-py2.6.egg/indexer/migrations'


Change History

comment:1 Changed 4 years ago by andrew

  • Status changed from new to closed
  • Resolution set to wontfix
  • Milestone set to 0.7.3

Yeah, we don't support zipped eggs for migrations, since you can't discover what migrations there are inside them easily, if at all. You should set this in your ~/.distutils.cfg:

zip_ok = False

That will install all packages unzipped.

comment:2 Changed 3 years ago by admin@…

Can't you just ignore that error then?

comment:3 Changed 3 years ago by andrew

We probably could - if you want that feature, open a new bug for it. I'd much rather recommend people don't use zipped eggs at all, as they play havoc in all kinds of ways (when you're on read-only filesystems, for example)

comment:4 Changed 3 years ago by anonymous

Try uninstalling the egg and then reinstalling with the easy_install flag "--always-unzip".

$ pip uninstall <package>
$ easy_install --always-unzip <package>


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.