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

Error when running a file #21238

Closed
dalthviz opened this issue Aug 10, 2023 · 3 comments
Closed

Error when running a file #21238

dalthviz opened this issue Aug 10, 2023 · 3 comments

Comments

@dalthviz
Copy link
Member

Problem Description

Tried running a file and instead I got the error report dialog. The error ocurred while I was checking #21160

What steps reproduce the problem?

  • Not totally sure, maybe running a file which was runned in a previous session (?)
    • Also, not long ago, I saved a run config, maybe that could be part of the reason why the error raised?

What is the expected output? What do you see instead?

No error

Paste Traceback/Error Below (if applicable)

Traceback (most recent call last):
  File "C:\Users\dalth\AppData\Local\spyder-6\envs\spyder-runtime\lib\site-packages\spyder\plugins\run\container.py", line 207, in run_file
    first_execution = exec_params['first_execution']
KeyError: 'first_execution'

Versions

  • Spyder version: 6.0.0a1 0d7fb75 (standalone)
  • Python version: 3.9.16 64-bit
  • Qt version: 5.15.6
  • PyQt5 version: 5.15.7
  • Operating System: Windows-10-10.0.19045-SP0
@ccordoba12
Copy link
Member

ccordoba12 commented Aug 11, 2023

@dalthviz, did you try to run a file that you had previously run in alpha1?

The problem is the first_execution key was removed from the run config parameters on PR #20762, so that should cause this problem.

@dalthviz
Copy link
Member Author

Oh I see! I'm not totally sure, it is quite possible since I think the file that I tried to run was the temp.py file that opens and that I usually use to run example code from issues 🤔

Should we close this one then @ccordoba12 ?

@ccordoba12 ccordoba12 removed this from the v6.0alphaX milestone Aug 14, 2023
@ccordoba12
Copy link
Member

Yep, I think that's fine. If you run spyder --reset you shouldn't see this problem again.

@ccordoba12 ccordoba12 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 14, 2023
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

2 participants