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

Spyder Profiler Hangs/Freezes #6220

Closed
BenStringer3 opened this issue Jan 16, 2018 · 4 comments
Closed

Spyder Profiler Hangs/Freezes #6220

BenStringer3 opened this issue Jan 16, 2018 · 4 comments

Comments

@BenStringer3
Copy link

Description

I am trying to profile a script in spyder on Windows 10 but it freezes

What steps will reproduce the problem?
I am on Windows 10

  1. I created and activated a virtual environment with >conda create --name deeplearningtest3 python and activate deeplearningtest3
  2. installed ipython, seaborn, spyder, gym, and tensorflow-gpu using conda
  3. opened spyder and began profiling my script (main5.py)

main5.txt

What is the expected output? What do you see instead?
My script runs fine without profiling but freezes after one loop iteration when run in profile mode. I am given the attached error when I stop profiling

Please provide any additional information below

File "C:\Users\User\Anaconda3\envs\deeplearningtest3\lib\site-packages\spyder_profiler\widgets\profilergui.py", line 264, in
self.finished(ec, es))
File "C:\Users\User\Anaconda3\envs\deeplearningtest3\lib\site-packages\spyder_profiler\widgets\profilergui.py", line 329, in finished
self.show_data(justanalyzed=True)
File "C:\Users\User\Anaconda3\envs\deeplearningtest3\lib\site-packages\spyder_profiler\widgets\profilergui.py", line 350, in show_data
self.datatree.load_data(self.DATAPATH)
File "C:\Users\User\Anaconda3\envs\deeplearningtest3\lib\site-packages\spyder_profiler\widgets\profilergui.py", line 462, in load_data
stats_indi = [pstats.Stats(profdatafile),]
File "C:\Users\User\Anaconda3\envs\deeplearningtest3\lib\pstats.py", line 72, in init
self.init(arg)
File "C:\Users\User\Anaconda3\envs\deeplearningtest3\lib\pstats.py", line 86, in init
self.load_stats(arg)
File "C:\Users\User\Anaconda3\envs\deeplearningtest3\lib\pstats.py", line 99, in load_stats
with open(arg, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\User\.spyder-py3\profiler.results'

Version and main components

  • Spyder Version: 3.2.6
  • Python Version: 3.6.4
  • Qt Versions: 5.6.2, PyQt5 5.6 on Windows

Dependencies

pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  None (OK)
numpy >=1.7      :  1.12.1 (OK)
sphinx >=0.6.6   :  1.6.6 (OK)
rope >=0.9.4     :  0.10.7 (OK)
jedi >=0.9.0     :  0.11.1 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
sympy >=0.7.3    :  None (NOK)
cython >=0.21    :  None (NOK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  6.2.1 (OK)
pylint >=0.25    :  1.8.1 (OK)

@CAM-Gerlach
Copy link
Member

I thought we fixed the proximate error, i.e. #5587 , with #5634 in 3.2.5?

@BenStringer3
Copy link
Author

@CAM-Gerlach Thank you for the response. I followed your link to issue #5587 and applied the fix suggested by Lemming0815 (calling reset_config_files()). But I got the same error as before.

@ccordoba12
Copy link
Member

@CAM-Gerlach, we need to address this problem in 3.2.7 because it seems it was not properly solved in previous versions.

@csabella csabella self-assigned this Jan 17, 2018
@CAM-Gerlach
Copy link
Member

CAM-Gerlach commented Jan 17, 2018

@ccordoba12 Yes, I believe I've seen this ~three times now on >=3.2.5 versions though the first ~two didn't follow up.

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

No branches or pull requests

4 participants