Windows 10: Python script crashes on windows 11

Discus and support Python script crashes on windows 11 in Windows 10 Software and Apps to solve the problem; 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... Discussion in 'Windows 10 Software and Apps' started by Dimitris Kougioumtzis, Feb 4, 2025 at 5:58 AM.

  1. 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

    :)
     
    Dimitris Kougioumtzis, Feb 4, 2025 at 5:58 AM
    #1

  2. Simple Python Scripts

    Hey exodusprime1337,
    Just got in from shoveling snow *Frown Python script  crashes on windows 11 :(

    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 Python script  crashes on windows 11 :)
     
    regexorcist, Feb 4, 2025 at 6:03 AM
    #2
  3. 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 Python script  crashes on windows 11 :confused:

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


    Python script  crashes on windows 11 [​IMG]


    Now I use the HELP function to view all the installed modules/libraries
    Code: help("modules")[/quote]
    Python script  crashes on windows 11 [​IMG]



    Python script  crashes on windows 11 [​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]
    Python script  crashes on windows 11 [​IMG]



    Python script  crashes on windows 11 [​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.


    Python script  crashes on windows 11 [​IMG]


    Help can navigate through any module, exposing the various
    functions which I hope will make your python coding easy and fun *Big Grin Python script  crashes on windows 11 :D

    Now lets do some scripting. *Wink Python script  crashes on windows 11 ;)
     
    regexorcist, Feb 4, 2025 at 6:03 AM
    #3
  4. Python script crashes on windows 11

    Windows 11 Randomly crashing apps.

    Hello! My name is Cristiano. I'm an Independent Advisor. I'm glad to help you.

    Based on the information, the issue seems to be with the PC and not with the Python scripts. Your has tried different RAMs, SSDs, GPUs, and configurations, but the problem persists even after a clean install of Windows 11 and Windows 10. The latest Windows update has made things a bit more stable, but the PC still crashes randomly. You has also mentioned that the Python scripts crash very often with the error "Windows fatal exception: access violation." It is suggested to seek technical support from a professional to diagnose and fix the issue. Another suggestion is to run Python scripts from the command prompt to avoid the scripts from closing immediately.
     
    Cristiano Rocha1, Feb 4, 2025 at 6:03 AM
    #4
Thema:

Python script crashes on windows 11

Loading...
  1. Python script crashes on windows 11 - Similar Threads - Python script crashes

  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. Windows 11 Hypervisor_error BSOD while executing python script

    in Windows 10 Software and Apps
    Windows 11 Hypervisor_error BSOD while executing python script: I recently upgraded my PC mother board, CPU and RAM, I did a clean install.I am receiving regular chrashes and blue screen death errors while executing python scripts on Windows Visual Studio Code! Please help asap!Below you can see the outcome of minidump results:Minidump...
  4. Windows 11 Hypervisor_error BSOD while executing python script

    in Windows 10 Gaming
    Windows 11 Hypervisor_error BSOD while executing python script: I recently upgraded my PC mother board, CPU and RAM, I did a clean install.I am receiving regular chrashes and blue screen death errors while executing python scripts on Windows Visual Studio Code! Please help asap!Below you can see the outcome of minidump results:Minidump...
  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. Windows Terminal and Python scripts?

    in Windows 10 Ask Insider
    Windows Terminal and Python scripts?: The new Windows Terminal is so beautiful and well done that I completely switched over to it, but the only thing that bugs me is still seeing the basic console window when running a Python script by double clicking on it... I did manage to make a profile for Python console,...
  7. 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
  8. MTP Python script

    in Windows 10 Ask Insider
    MTP Python script: I want to run a Python script using a MTP path (an external device). How can I write to it? submitted by /u/Geekest07 [link] [comments] https://www.reddit.com/r/Windows10/comments/f2g8ao/mtp_python_script/
  9. cx_Freeze: Python error in main script

    in Windows 10 BSOD Crashes and Debugging
    cx_Freeze: Python error in main script: Hi, I have upgraded from Win 7 to Win 10. However, I have been received this error message with 100% utilisation of hard disk space. Can advise what is the issue and how to overcome it? I have disabled SysMain service. Regards, Akbar...
  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,...