Windows 10: Any Help For a Python Error?

Discus and support Any Help For a Python Error? in Windows 10 Support to solve the problem; 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... Discussion in 'Windows 10 Support' started by abrogard, Sep 29, 2019.

  1. abrogard Win User

    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 why, they're greyed out.

    I get this error in powershell:

    PS C:\Windows\system32> youtube-dl
    Fatal Python error: Py_Initialize: unable to load the file system codec
    ImportError: No module named 'encodings'

    I just downloaded and installed the latest version of Python. Hasn't helped.

    Does anyone have any idea what might be going wrong?

    Any Help For a Python Error? :)

    :)
     
    abrogard, Sep 29, 2019
    #1

  2. Made a Mistake with Python


    I had to install Python some time ago. I think it so I could use VeraCrypt. I do not remember which version of Python I installed or if it showed up in the app list in Settings.

    Yesterday, I decided to install DeDRM removal tools. One of them required Phyton and I installed Python 3.5.4.3504. It shows up in the app list in Settings.\

    I then figured out I didn't need Python because I was not going to use the standalone DeDRM removal app but just the DeDRM removcal plugin. So I proceeded to uninstall Python 3.5.4.3504.

    I then remembered about the earlier Python install and was wondering if the new Python installation had maybe overwritten the earlier one. Since I need Python for Veracrypt to work, I decided to cancel uninstalling. For the last half hour, I have been looking at at the Python popup saying "canceling" and the cursor showing an hourglass.


    1. Is it likely that Python 3.5.4.3504 replaced the previously installed Python ?

    2. Was it a mistake to cancel uninstalling? If yes, what should I have done?

    EDIT: I restarted and Python 3.5.4.3504 is still installed. VeraCrypt works. I still would like to know why after I canceled uninstalling, the canceling process would not stop.
     
    battlezone, Sep 29, 2019
    #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 Any Help For a Python Error? :confused:

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


    Any Help For a Python Error? [​IMG]


    Now I use the HELP function to view all the installed modules/libraries
    Code: help("modules")[/quote]
    Any Help For a Python Error? [​IMG]



    Any Help For a Python Error? [​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]
    Any Help For a Python Error? [​IMG]



    Any Help For a Python Error? [​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.


    Any Help For a Python Error? [​IMG]


    Help can navigate through any module, exposing the various
    functions which I hope will make your python coding easy and fun *Big Grin Any Help For a Python Error? :D

    Now lets do some scripting. *Wink Any Help For a Python Error? ;)
     
    regexorcist, Sep 29, 2019
    #3
  4. Any Help For a Python Error?

    help to remote connect

    not sure how to use both programs u 2 suggested, i need more helpful steps thanks
     
    Corduroy_Jr, Sep 29, 2019
    #4
Thema:

Any Help For a Python Error?

Loading...
  1. Any Help For a Python Error? - Similar Threads - Help Python Error

  2. 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...
  3. Got Blue Screen Error After Installing Python 3.7 With "Add Python 3.7 to PATH" Option Checked

    in Windows 10 BSOD Crashes and Debugging
    Got Blue Screen Error After Installing Python 3.7 With "Add Python 3.7 to PATH" Option Checked: Today I installed Python 3.7 with these two options checked in installation wizard. (1) Add Python 3.7 to PATH (2) Install for all users. After installing when I restart my PC, got the blue screen error "DPC_WATCHDOG_VIOLATION". After that, I reinstall Python 3.7 With "Add...
  4. 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...
  5. Cannot install Python

    in Windows 10 Installation and Upgrade
    Cannot install Python: I'm trying to install Python 2.7.15. I've downloaded the Windows x86 MSI installer, but when I try to open it so I can install Python, I get a message saying "You'll need a new app to open this .msi file". Every tutorial I've found has said that the Python installer should...
  6. StrTrail.txt Error. Any help is appreciated.

    in Windows 10 BSOD Crashes and Debugging
    StrTrail.txt Error. Any help is appreciated.: Hello, I am currently running into a BSOD on my windows Laptop. I currently am stuck in a loop where I cannot even enter Safe Mode, and I have run out of online sources that could help me in the correct direction. According to my SrtTrail.txt file, my error lies within the...
  7. 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,...
  8. Any one help with this windows error ?

    in Windows 10 Support
    Any one help with this windows error ?: Ok this has been happening lately every time i install or uninstall a software i get this message but the program uninstalled completely no let overs I am using [img] [img] can any one tell me should i ignore it or is there a way to solve it ? many thanks 115221
  9. Made a Mistake with Python

    in Windows 10 Software and Apps
    Made a Mistake with Python: I had to install Python some time ago. I think it so I could use VeraCrypt. I do not remember which version of Python I installed or if it showed up in the app list in Settings. Yesterday, I decided to install DeDRM removal tools. One of them required Phyton and I...
  10. Help! Win 10 cannot run CMD with python and Jenkins

    in Windows 10 Support
    Help! Win 10 cannot run CMD with python and Jenkins: I'm developing some scripts on Win 10. But suddenly all the script failed due to it cannot invoke CMD on Win10. Here is one example, " import os os.system("cd .") " It is a very simple code that python to call CMD to execute "cd .". But it always return "-1073740791"....