pyscripter crashing on startup - python

I've been using PyScripter for a few months now with no issue, but when I tried to open the application today it's just been crashing with the error message
"PyScripter has stopped working: A problem caused the program to stop
working correctly. Please close the program."
I'm unsure what is causing the error and so far I've been unable to fix it.
I don't believe I did anything the last time I used PyScripter which might have caused it to break.

Related

Python Debugging: Given an error, can I step backwards, fix the error, and continue the program?

My current (PyCharm based) debugging workflow is to run a program in debug mode. When I run into an error, I fix it, and restart the program from the beginning.
Is it possible to save re-running the healthy part of the program by moving the program back by one step, fix the issue, and continue the program?
Is there a general way to do this, and one specific for PyCharm?
[edit:]
this is related but not similar to Is there "Edit and Continue" in PyCharm? Reload code into running program like in Eclipse / PyDev? , as there the author anticipates halts the program before an error occurs. here, i consider an error state

Why does PyCharm return exit code 246?

I am running a script in PyCharm and using the Python 3 installation that is installed with ArcGIS Pro.
Every other time I run the code, it returns "exit code 246", but it is not clear to me what could be causing this.
If I close and reopen the program or restart my computer, I might be able to run the code, but it doesn't work consistently.
The issue doesn't happen consistently so I don't think it's an issue with the code itself.
I discovered the same problem. Problem went away when I did this
try:
import arcpy
except:

Spyder Debug - How to fix code and Continue stepping

I am using Spyder (3.2.6) on a Mac, running python code that starts by loading/processing some large data files.
When stepping through my code if I encounter an error, is it possible to fix the error and continue stepping - rather than run everything from the beginning again (and wait for all the data to load/process)?
Encountering an error seems to 'end' the run/debug mode at the point of the error, and I can't seem to find a way to continue.
Thank you for you help.

python spyder debugger crashes

I am having this really annoying problem: when I try to debug in Spyder, the whole program gets stuck and I have to abort it. Yesterday it was working completely fine.
Any idea on how to fix it?
Thank you!

Python Job Not Ending

I've had a strange occurance. I stopped a python script manually, but its still running. It shows it as stopped in my IDE (Spyder) but I can see it's still running in task manager. I also know it still processing because its still outputting files to a directory.
Does anyone know why this is happening and how I can prevent it on a go forward?
Got it, i needed to add Exception to my except statement. Thanks gerosalesc and Dot_Py for your help.
Try/Except in Python: How do you properly ignore Exceptions?

Categories