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

lineprofiler.results not created if script didn't finish #89

Open
skjerns opened this issue Dec 12, 2023 · 0 comments
Open

lineprofiler.results not created if script didn't finish #89

skjerns opened this issue Dec 12, 2023 · 0 comments

Comments

@skjerns
Copy link
Contributor

skjerns commented Dec 12, 2023

On a new install using Anaconda and Spyder 5.4.3 I get the following error when the script did not completely run (i.e. if the run was cancelled). Before, this still created an output.

Traceback (most recent call last):
  File "/home/skjerns/anaconda3/lib/python3.11/site-packages/spyder_line_profiler/spyder/widgets.py", line 489, in finished
    self.show_data(justanalyzed=True)
  File "/home/skjerns/anaconda3/lib/python3.11/site-packages/spyder_line_profiler/spyder/widgets.py", line 526, in show_data
    self.datatree.load_data(self.DATAPATH)
  File "/home/skjerns/anaconda3/lib/python3.11/site-packages/spyder_line_profiler/spyder/widgets.py", line 609, in load_data
    with open(profdatafile, 'rb') as fid:
         ^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/skjerns/.config/spyder-py3/lineprofiler.results'

Anyone know how I can revert to the behaviour that even code that didn't finish produces some profile output?

kernprof==4.1.1
spyder-line-profiler==0.3.2
@skjerns skjerns changed the title Not working with newest Spyder version: lineprofiler.results not created lineprofiler.results not created if script didn't finish Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant