Aug-19-2024, 03:34 PM
(This post was last modified: Aug-19-2024, 05:34 PM by Larz60+.
Edit Reason: fixed code tags
)
I have numerous Python scripts that I've developed over the years on a VM at my office. 2 days ago, all of a sudden when I was continuing to enhance/refine several of these Python scripts, upon trying to execute them on the VM in either Sublime Text Editor or a standard Windows Command Line window, most all of these Python scripts failed to execute. They didn't present a failure message, but just basically "hung" and nothing ever printed in the execution window at the bottom of Sublime Text Editor. I've done a bunch of research this a.m. and it *seems* that the issue is related to specific Python "import" statements in the various Python scripts.
For example, I can execute the following without issue:
I can execute the following as well without issue:
Any thoughts on what may be going on here?
Many thanks if anyone else has had this happen if you can pass along some hints/tips as to how to resolve this sudden issue.
For example, I can execute the following without issue:
print ("Hello")
I can execute the following as well without issue:
import os print ("Hello")If I keep adding "import" statements, some very common ones that I've used in numerous Python scripts over the years that typically import and function perfectly fine without any issues, then that's where the "hang" occurs as if a specific (or multiple) import is never fully finishing. This, for example, when adding the "import cx_Oracle" statement (yes, I know it's not needed to just print "Hello World"), the code execution just hangs and never completes.:
import os import cx_Oracle print ("Hello World")I haven't updated Python recently nor has anything else major been done to this VM.
Any thoughts on what may be going on here?
Many thanks if anyone else has had this happen if you can pass along some hints/tips as to how to resolve this sudden issue.