Windows 10: Encounter Error 'The file cannot be accessed by the system.' when executing python over...

Discus and support Encounter Error 'The file cannot be accessed by the system.' when executing python over... in Windows 10 Network and Sharing to solve the problem; Hi all, Just like to ask for help troubleshooting this issue. I keep encountering the following error when executing python over a remove... Discussion in 'Windows 10 Network and Sharing' started by gabrielwu84, Jan 18, 2021.

  1. Encounter Error 'The file cannot be accessed by the system.' when executing python over...


    Hi all,

    Just like to ask for help troubleshooting this issue.


    I keep encountering the following error when executing python over a remove powershell session -


    Program 'python.exe' failed to run: The file cannot be accessed by the system.
    + CategoryInfo : ResourceUnavailable: : [], ApplicationFailedException

    + FullyQualifiedErrorId : NativeCommandFailed

    I suspect there is some access control/applocker that I cannot figure out how to modify the settings of.


    I am however able to do the following -

    1. run python locally

    2. run other programs remotely over powershell session e.g. nodejs.exe

    3. the PATH variable is correctly set, confirmed by this -

    Get-Command python Select-Object -ExpandProperty Definition

    C:\Users\xxx\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe


    The python program was installed through the microsoft store, and I cannot reproduce this error on other remote Windows 10 systems.


    Any advise is greatly appreciated.


    Best regards,
    Gabriel

    :)
     
    gabrielwu84, Jan 18, 2021
    #1
  2. 2AI
    2AI Win User

    running python executable file error in window server

    running python executable file error in window server

    after install vcredist_x64.exe still have this error

    The application has failed to start because its side-by-side configuration is in

    correct. Please see the application event log or use the command-line sxstrace.e

    xe tool for more detail.

    in the past, compile this program with py2exe in window 7 without any visual studio installed, it can run in new window server

    but after install VS2017 community, and compile python program to executable file in window 10, then got this error

    install in new virtual machine window 2008 in window 2012
     
  3. file system error -1073545193

    Hello,

    Thank you for posting your concern in Microsoft Community and welcome to the Windows 10 Family.

    From the description provided, I understand that you are encountering the error message when you are trying to access any media file in the CD/DVD Drive of your computer.

    This issue may happen due to system file corruption. I suggest you to run System file checker. System File checker (SFC) scan is done to check if there are any corrupted system files that could be causing this issue. Kindly follow
    the below given steps:


    • Press Windows key + X, select
      Command prompt (Admin) to bring up elevated Command prompt.

    • In Command prompt type
      sfc/scannow
      and press enter.
    • Restart the computer.
    If no corrupted system files were found in the previous state, then I suggest you to try the following steps:


    • Open command prompt by pressing Windows key + X and selecting “Command prompt admin”.

    • In command prompt, type the following commands and press Enter after each command:

      DISM.exe /Online /Cleanup-image /Scanhealth

      DISM.exe /Online /Cleanup-image /Restorehealth

    • Close the command prompt and restart the PC and check if it works.
    Hope the above information was helpful. If you need further information, feel free to write to us and we would be happy to assist you further.

    Thank You.
     
    Sayan_Ghosh, Jan 18, 2021
    #3
  4. DaveM121 Win User

    Encounter Error 'The file cannot be accessed by the system.' when executing python over...

    python files are curropted.

    Hi kiranbh

    I am Dave, an Independent Advisor, I will help you with this . . .

    If the icon on your .py files has changed,that means the file association on your python files has changed and they are trying to open in the wrong application

    To fix the file association, you need to locate pythonw.exe in your Python installation, then, right click a .py file, choose Properties. On the resulting dialog, click 'Change' then navigate to find that pythonw.exe executable

    That should reset the file association on Python files . . .
     
    DaveM121, Jan 18, 2021
    #4
Thema:

Encounter Error 'The file cannot be accessed by the system.' when executing python over...

Loading...
  1. Encounter Error 'The file cannot be accessed by the system.' when executing python over... - Similar Threads - Encounter Error 'The

  2. encountering the error ,''the system cannot find the file specified.'' when installing the...

    in Windows 10 Gaming
    encountering the error ,''the system cannot find the file specified.'' when installing the...: My system information. hp ProBook 440 g8,windows 11 home. I uninstalled my audio drivers both from the audio inputs and outputs section and sound, video and game controller section in the device manager. Now the audio inputs and outputs and sound, video and game controller...
  3. encountering the error ,''the system cannot find the file specified.'' when installing the...

    in Windows 10 Software and Apps
    encountering the error ,''the system cannot find the file specified.'' when installing the...: My system information. hp ProBook 440 g8,windows 11 home. I uninstalled my audio drivers both from the audio inputs and outputs section and sound, video and game controller section in the device manager. Now the audio inputs and outputs and sound, video and game controller...
  4. encountering the error ,''the system cannot find the file specified.'' when installing the...

    in Windows 10 Drivers and Hardware
    encountering the error ,''the system cannot find the file specified.'' when installing the...: My system information. hp ProBook 440 g8,windows 11 home. I uninstalled my audio drivers both from the audio inputs and outputs section and sound, video and game controller section in the device manager. Now the audio inputs and outputs and sound, video and game controller...
  5. "Error 0x80070780 File Cannot Be Accessed by the System"

    in Windows 10 Gaming
    "Error 0x80070780 File Cannot Be Accessed by the System": I made the boneheaded move of deleting some OneDrive files then emptying the recycle bin in an effort to clear some space. I didn't think any of it included operating files, but apparently my user account got messed up in the process.Now when I try to open a folder from a...
  6. Python-based executable file

    in AntiVirus, Firewalls and System Security
    Python-based executable file: Hello! I tried to convert from .PY Python file to .EXE Executable. But if I ejected it, the AntiVirus says this program is malware.File converted to EXE: pythoncolorama.pyMalware type: Wacatac.B!ml trojanBut the Antivirus could remove it automatically. Why am I facing this...
  7. Python-based executable file

    in Windows 10 Gaming
    Python-based executable file: Hello! I tried to convert from .PY Python file to .EXE Executable. But if I ejected it, the AntiVirus says this program is malware.File converted to EXE: pythoncolorama.pyMalware type: Wacatac.B!ml trojanBut the Antivirus could remove automatically. Whi am I facing this...
  8. Python-based executable file

    in Windows 10 Software and Apps
    Python-based executable file: Hello! I tried to convert from .PY Python file to .EXE Executable. But if I ejected it, the AntiVirus says this program is malware.File converted to EXE: pythoncolorama.pyMalware type: Wacatac.B!ml trojanBut the Antivirus could remove automatically. Whi am I facing this...
  9. Python-based executable file

    in AntiVirus, Firewalls and System Security
    Python-based executable file: Hello! I tried to convert from .PY Python file to .EXE Executable. But if I ejected it, the AntiVirus says this program is malware.File converted to EXE: pythoncolorama.pyMalware type: Wacatac.B!ml trojanBut the Antivirus could remove automatically. Whi am I facing this...
  10. Cannot access files over network

    in Windows 10 Network and Sharing
    Cannot access files over network: Our small network has computers running windows 7 pro and one laptop running windows 10 home. Until recently there wasn't an issue, now the laptop cant see the files on the other machines. Everything is visible until I try to access the files themselves. Meaning drives,...