Windows 10: ImportError: No module named pygame

Discus and support ImportError: No module named pygame in Windows 10 Software and Apps to solve the problem; I 'm a programmer and I make games. I most commonly use pygame. But on VS code it gives me a 'ImportError: No module named pygame' error. The rest of... Discussion in 'Windows 10 Software and Apps' started by Prabodh Prasad, May 24, 2021.

  1. ImportError: No module named pygame


    I 'm a programmer and I make games. I most commonly use pygame. But on VS code it gives me a 'ImportError: No module named pygame' error. The rest of the web says that I'm python 2, but I have python 3.9, the image below for proof:I've Tried running it with Python IDLE and it works, I even used the 'pip freeze' command

    :)
     
    Prabodh Prasad, May 24, 2021
    #1
  2. #obi Win User

    MY pygame

    Anytime I want to install pygame from the command prompt it gives me this error:

    >py -m pip install -U pygame --user

    Traceback (most recent call last):

    File "C:\Users\ralph\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 183, in _run_module_as_main

    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)

    File "C:\Users\ralph\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 142, in _get_module_details

    return _get_module_details(pkg_main_name, error)

    File "C:\Users\ralph\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 109, in _get_module_details

    __import__(pkg_name)

    File "C:\Users\ralph\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip\__init__.py", line 21, in <module>

    from pip._vendor.urllib3.exceptions import DependencyWarning

    File "C:\Users\ralph\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip\_vendor\urllib3\__init__.py", line 8, in <module>

    from .connectionpool import (

    File "C:\Users\ralph\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip\_vendor\urllib3\connectionpool.py", line 11, in <module>

    from .exceptions import (

    File "C:\Users\ralph\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip\_vendor\urllib3\exceptions.py", line 2, in <module>

    from .packages.six.moves.http_client import (

    ValueError: source code string cannot contain null bytes

    please help me fix this problem
     
  3. anne_24 Win User
    After creating new user; ImportError: DLL load failed: The specified module could not be found

    Could not create a Python 3 AstroConda environment due to the space in my path name. Running windows 10, created a new user with a name with no space and downloaded anaconda there. My original installation of anaconda then began giving this error:

    So I uninstalled both and tried to re-download into my original user. Now I can not even import numpy or matplotlib without getting:

    ImportError: DLL load failed: The specified module could not be found.

    I have tried everything, have reinstalled Visual C++ Redistributables from Microsoft's website, added the DLLs in anaconda to my environmental variables path and nothing.
    Any help would be great, I just want to be able to import without getting this error or know if there is a bigger issue due to the creation of the other user. Thanks!
     
    anne_24, May 24, 2021
    #3
  4. gk51 Win User

    ImportError: No module named pygame

    Fault Module Name:_wcescommproxy.dll

    My WMDC continually crashes after initial start up. The error report lists
    Fault Module Name: wcescommproxy.dll as the problem. I have done multiple uninstalls and reinstalls. I can initially set up my phone and sync and then the next attempt restarts the crash process.
     
Thema:

ImportError: No module named pygame

Loading...
  1. ImportError: No module named pygame - Similar Threads - ImportError module named

  2. Faulting module name: KERNELBASE.dll, version: 10.0.19041.3992, Faulting module name:...

    in Windows 10 Gaming
    Faulting module name: KERNELBASE.dll, version: 10.0.19041.3992, Faulting module name:...: Hello Since the last cumulative update for Windows 10 22H2 , 9 January 2024 , I experienced this issue : every time I run Calculator , Calendar , Voice recorder , then this apps crash after 1 or 2 seconds from when I open it. it is not fully executed . Please someone could...
  3. Faulting module name: KERNELBASE.dll, version: 10.0.19041.3992, Faulting module name:...

    in Windows 10 Software and Apps
    Faulting module name: KERNELBASE.dll, version: 10.0.19041.3992, Faulting module name:...: Hello Since the last cumulative update for Windows 10 22H2 , 9 January 2024 , I experienced this issue : every time I run Calculator , Calendar , Voice recorder , then this apps crash after 1 or 2 seconds from when I open it. it is not fully executed . Please someone could...
  4. Faulting module name: KERNELBASE.dll, version: 10.0.19041.3992, Faulting module name:...

    in Windows 10 BSOD Crashes and Debugging
    Faulting module name: KERNELBASE.dll, version: 10.0.19041.3992, Faulting module name:...: Hello Since the last cumulative update for Windows 10 22H2 , 9 January 2024 , I experienced this issue : every time I run Calculator , Calendar , Voice recorder , then this apps crash after 1 or 2 seconds from when I open it. it is not fully executed . Please someone could...
  5. BSOD Module name: AutenthicAmd

    in Windows 10 Gaming
    BSOD Module name: AutenthicAmd: Hi.Please helpI'm getting random BSODThis is analyzed dump file:WHEA_UNCORRECTABLE_ERROR 124 A fatal hardware error has occurred. Parameter 1 identifies the type of error source that reported the error. Parameter 2 holds the address of the nt!_WHEA_ERROR_RECORD structure that...
  6. BSOD Module name: AutenthicAmd

    in Windows 10 Software and Apps
    BSOD Module name: AutenthicAmd: Hi.Please helpI'm getting random BSODThis is analyzed dump file:WHEA_UNCORRECTABLE_ERROR 124 A fatal hardware error has occurred. Parameter 1 identifies the type of error source that reported the error. Parameter 2 holds the address of the nt!_WHEA_ERROR_RECORD structure that...
  7. Faulting module name: ucrtbase.dll

    in Windows 10 Gaming
    Faulting module name: ucrtbase.dll: Faulting application name: DataTransferSrv.exe, version: 30.4.6.3, time stamp: 0x63a3019bFaulting module name: ucrtbase.dll, version: 10.0.14393.3659, time stamp: 0x5e914092Exception code: 0xc0000409Fault offset: 0x00088b2bFaulting process id: 0x316cFaulting application start...
  8. Faulting module name: KERNELBASE.dll,

    in Windows 10 BSOD Crashes and Debugging
    Faulting module name: KERNELBASE.dll,: While trying to load a game i get this error in event viewer. Faulting application name: bf4.exe, version: 1.8.2.48475, time stamp: 0x58ab1cc0 Faulting module name: KERNELBASE.dll, version: 10.0.18362.1316, time stamp: 0xf9127b9c Exception code: 0xe06d7363 Fault offset:...
  9. Faulting module name: ntdll.dll

    in Windows 10 Customization
    Faulting module name: ntdll.dll: I cant run a game due to this error. please help Faulting application name: Launcher.exe_Rockstar Games Launcher, version: 1.0.13.176, time stamp: 0x5dcae459 Faulting module name: ntdll.dll, version: 10.0.18362.418, time stamp: 0x99ca0526 Exception code: 0xc0000374 Fault...
  10. Faulting module name: msvcrt.dll

    in Windows 10 BSOD Crashes and Debugging
    Faulting module name: msvcrt.dll: Hi. Sometimes the night light function will suddenly be swtiched off, and then be switched on again. I checked the Event Viwer and it did record down some information. I have attached the information as following. Can anyone figure out what is the real cause of the issue?...