Open remdragon opened 6 years ago
I am having the same issue.
Anyone managed to solve this?
I am also seeing this problem with Python 3.7 on mac OS.
Same issue with python 2.7.13. I wonder if anyone is still supporting this project.
UPDATE: It turned out I was dumping from cProfile rather than line_profiler. So in my case it's explained.
To elaborate on yurymann's comment, it seems that kernprof
does not use line_profiler
by default, but cProfile
. One needs to specify -l
to use line_profiler
. So one should either do:
$ kernprof -l test.py
Wrote profile results to test.py.lprof
$ python -m line_profiler test.py.lprof
or
$ kernprof test.py
Wrote profile results to test.py.prof
$ python -m pstats test.py.prof
I just downloaded line_profiler but my first attempt to use it generated a traceback:
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] on win32
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32