Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profiling error #2305

Closed
Nodd opened this issue Apr 8, 2015 · 2 comments · Fixed by #2309
Closed

Profiling error #2305

Nodd opened this issue Apr 8, 2015 · 2 comments · Fixed by #2309

Comments

@Nodd
Copy link
Contributor

Nodd commented Apr 8, 2015

Description

  • What steps will reproduce the problem?
    1. Run a script with a profiler
  • What is the expected output? What do you see instead?

I see this in the internal console:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/spyderplugins/widgets/profilergui.py", line 253, in <lambda>
    self.finished(ec, es))
  File "/usr/lib/python2.7/site-packages/spyderplugins/widgets/profilergui.py", line 318, in finished
    self.show_data(justanalyzed=True)
  File "/usr/lib/python2.7/site-packages/spyderplugins/widgets/profilergui.py", line 339, in show_data
    self.datatree.load_data(self.DATAPATH)
  File "/usr/lib/python2.7/site-packages/spyderplugins/widgets/profilergui.py", line 427, in load_data
    map(lambda x: x.calc_callees().stats, stats_indi)
  File "/usr/lib/python2.7/site-packages/spyderplugins/widgets/profilergui.py", line 427, in <lambda>
    map(lambda x: x.calc_callees().stats, stats_indi)
AttributeError: 'NoneType' object has no attribute 'stats'
  • Please provide any additional information below

Version and main components

  • Spyder Version: 3.0.0dev
  • Python Version: 2.7.9
  • Qt Version : 4.8.6, PyQt4 (API v2) 4.11.3 on Linux

Optional dependencies

pyflakes >=0.5.0: 0.8.1 (OK)
pep8 >=0.6 : 1.6.2 (OK)
pygments >=1.6 : 2.0.2 (OK)
IPython >=3.0 : 3.0.0 (OK)
zmq >=13.0.0 : 14.5.0 (OK)
pandas >=0.13.1 : 0.16.0 (OK)
sphinx >=0.6.6 : 1.2.3 (OK)
psutil >=0.3 : 2.2.1 (OK)
rope >=0.9.2 : 0.10.2 (OK)
jedi >=0.8.1 : 0.8.1 (OK)
matplotlib >=1.0: 1.4.3 (OK)
sympy >=0.7.3 : 0.7.6 (OK)
pylint >=0.25 : 1.4.3 (OK)

@ccordoba12
Copy link
Member

@dhoegh, you were the last one to touch our profiler. Could you look at this one?

@ccordoba12 ccordoba12 added this to the v3.0 milestone Apr 8, 2015
@Nodd
Copy link
Contributor Author

Nodd commented Apr 8, 2015

To add more information: the script runs fine and the error appears before displaying the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants