Windows 10: My python script failing without giving any error on Windows 11. Please help.

Discus and support My python script failing without giving any error on Windows 11. Please help. in Windows 10 Software and Apps to solve the problem; Without any error on console, Python script is getting closed again and again. I checked windows 11 logs. Log Event ID is 1005 and Task Category is... Discussion in 'Windows 10 Software and Apps' started by Vaibhav Sharma6, Jun 25, 2024.

  1. My python script failing without giving any error on Windows 11. Please help.


    Without any error on console, Python script is getting closed again and again. I checked windows 11 logs. Log Event ID is 1005 and Task Category is "Application Crashing Events". Here is the detailed log message of the event log-Windows cannot access the file for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this comp

    :)
     
    Vaibhav Sharma6, Jun 25, 2024
    #1

  2. Simple Python Scripts

    Before we post any more scripts, I'd like to take
    a step back and go over the basic help function
    within the Python interactive console.
    (mine is on linux, not sure if the Windows version is exactly the same) *Confused My python script failing without giving any error on Windows 11. Please help. :confused:

    Here I start the Python console, it tells me what
    version I'm using and gives me a >>> prompt


    My python script failing without giving any error on Windows 11. Please help. [​IMG]


    Now I use the HELP function to view all the installed modules/libraries
    Code: help("modules")[/quote]
    My python script failing without giving any error on Windows 11. Please help. [​IMG]



    My python script failing without giving any error on Windows 11. Please help. [​IMG]


    Now to see what functions are contained within a particular module,
    we simply use help again. I'll be looking at the webbrowser module
    which can be seen in the list.
    Code: help("webbrowser")[/quote]
    My python script failing without giving any error on Windows 11. Please help. [​IMG]



    My python script failing without giving any error on Windows 11. Please help. [​IMG]


    By looking into the module, I see that I want to use the open_new(url) function,
    so my command(s) will look someting like this.
    I have to import the module to use the functions.

    Code: >>> import webbrowser >>> webbrowser.open_new("TechPowerUp")[/quote] As you can see from the image, my default browser opened to
    the specified url from within Python.


    My python script failing without giving any error on Windows 11. Please help. [​IMG]


    Help can navigate through any module, exposing the various
    functions which I hope will make your python coding easy and fun *Big Grin My python script failing without giving any error on Windows 11. Please help. :D

    Now lets do some scripting. *Wink My python script failing without giving any error on Windows 11. Please help. ;)
     
    regexorcist, Jun 25, 2024
    #2
  3. Simple Python Scripts

    Hey exodusprime1337,
    Just got in from shoveling snow *Frown My python script failing without giving any error on Windows 11. Please help. :(

    I'm all for suggesting Linux to people, but...
    I've also learned to keep my variables to a minimum.
    What I'm saying is, when learning something new,
    Python in this case, you don't want to add Linux and the
    shell into the mix as debugging is harder with 2 unknowns.

    Stick with your tried and true environment when experimenting
    w/ Python and when you have time to focus on Linux only
    start messing w/ shell scripting, perl and tcl/tk.
    Then you'll realize that you can do everything on Linux.

    For now just remove my she-bang line Code: #!/usr/bin/python[/quote] as it's only function is to tell the Linux kernel what interpreter to use.

    I'll have another script for you tonight *Smile My python script failing without giving any error on Windows 11. Please help. :)
     
    regexorcist, Jun 25, 2024
    #3
  4. My python script failing without giving any error on Windows 11. Please help.

    Python Error in Main Script

    Hi, Can anybody help me i am getting Python Error in main Script,
     
    Leannered77, Jun 25, 2024
    #4
Thema:

My python script failing without giving any error on Windows 11. Please help.

Loading...
  1. My python script failing without giving any error on Windows 11. Please help. - Similar Threads - python script failing

  2. Python script crashes on windows 11

    in Windows 10 Gaming
    Python script crashes on windows 11: It is windows thread detector bug because i ran tha same script in a pc with the intel 9900k and it runs smootly So the thread detector in windows 11 has bug...
  3. Python script crashes on windows 11

    in Windows 10 Software and Apps
    Python script crashes on windows 11: It is windows thread detector bug because i ran tha same script in a pc with the intel 9900k and it runs smootly So the thread detector in windows 11 has bug...
  4. My python script failing without giving any error on Windows 11. Please help.

    in Windows 10 Gaming
    My python script failing without giving any error on Windows 11. Please help.: Without any error on console, Python script is getting closed again and again. I checked windows 11 logs. Log Event ID is 1005 and Task Category is "Application Crashing Events". Here is the detailed log message of the event log-Windows cannot access the file for one of the...
  5. cx_Freeze: Python error in main script

    in Windows 10 BSOD Crashes and Debugging
    cx_Freeze: Python error in main script: I receive the above subject error message continuously on windows startup and it appears to be contributing to the poor performance of my Windows 10 PC causing it to run slowly and become unresponsive. I reviewed the article with a similar error message and applied the...
  6. Python Error in Main Script

    in Windows 10 Installation and Upgrade
    Python Error in Main Script: Hi, Can anybody help me i am getting Python Error in main Script, https://answers.microsoft.com/en-us/windows/forum/all/python-error-in-main-script/e606f84e-b2d8-4a8b-a94a-6bf55a1870b9
  7. Any Help For a Python Error?

    in Windows 10 Software and Apps
    Any Help For a Python Error?: I just had to put my third or fourth new win10 install on this machine and now I'm into the usual hassles: much of my software won't run. In this instance it is powershell in admin mode running youtube-dl. It is in the user path. I can't edit the system vars, don't know...
  8. Any Help For a Python Error?

    in Windows 10 Support
    Any Help For a Python Error?: I just had to put my third or fourth new win10 install on this machine and now I'm into the usual hassles: much of my software won't run. In this instance it is powershell in admin mode running youtube-dl. It is in the user path. I can't edit the system vars, don't know...
  9. Please help... script error

    in Windows 10 Support
    Please help... script error: Hi...before I start I will need replies in Laymans terms as I am not technically minded...sorry. Every time I use my laptop it comes up with a box stating "script error" how do I rectify this? Also the laptop is running VERY SLOW is there a way I can get it back to running...
  10. cx_Freeze: Python error in main script

    in Windows 10 BSOD Crashes and Debugging
    cx_Freeze: Python error in main script: I receive the above subject error message continuously and it appears to be contributing to the poor performance of my Windows 10 PC causing it to run slowly and become unresponsive. I reviewed the article with a similar error message and applied the recommended fixes,...