what-studio / profiling

Was an interactive continuous Python profiler.
BSD 3-Clause "New" or "Revised" License
2.97k stars 113 forks source link

`NoneType` when using live-profile #35

Closed otrenav closed 8 years ago

otrenav commented 8 years ago

When I run $ profiling live-profile manage.py runserver on a tweaked manage.py file that only prints the current path, I get

Exception TypeError: "'NoneType' object is not callable" in <function _remove at 0x7f75f23457d0> ignored

The contents of manage.py are:

#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
    from pprint import pprint as p
    p(sys.path)

    # os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_app.settings")
    # from django.core.management import execute_from_command_line
    # execute_from_command_line(sys.argv)

For replication (in case you are not familiar with Django): you can start a brand new Django 1.7 project with $ django-admin startproject test_app and then tweak manage.py to only figure what the path is.

sublee commented 8 years ago

I think that this issue is similar to #34. Would you check it?

otrenav commented 8 years ago

Indeed, it's similar to that issue; however, since behavior is distinct I thought I would report it separately. We can continue on that issue since the solutions will probably be very similar, if not the same.