InviteBox / django-live-profiler

A database access profiler for Django-based applications that can be ran in production
194 stars 44 forks source link

ImportError: cannot import name empty_iter #24

Open oppianmatt opened 10 years ago

oppianmatt commented 10 years ago
  File "[...]/venv/lib/python2.7/site-packages/profiler/models.py", line 5, in <module>
    from profiler.instrument import *
  File "[...]/venv/lib/python2.7/site-packages/profiler/instrument.py", line 3, in <module>
    from django.db.models.sql.compiler import SQLCompiler, empty_iter
ImportError: cannot import name empty_iter
markeroon commented 9 years ago

I'm having this issue too. I noticed that my build choked on zeromq at some point. Possibly related?

oppianmatt commented 9 years ago

Issue is that empty_iter got moved in a django upgrade and so this won't work with django 1.6 or above.

markeroon commented 9 years ago

@oppianmatt Is this project dead, for all intents and purposes? Should I use something different?

cool-RR commented 9 years ago

I'm stuck because of this issue too.

oppianmatt commented 9 years ago

Yep I think this project is dead. I've moved to using runprofileserver which creates prof files and use a view to view them:

http://django-extensions.readthedocs.org/en/latest/runprofileserver.html

markeroon commented 9 years ago

Nice, thanks for the link.

pirate commented 5 years ago

Fixed here: https://github.com/InviteBox/django-live-profiler/pull/28

I just replaced it with QuerySet.none().