Skip to content

I got a FileNotFoundError: [WinError 2] The specified file cannot be found #157

@Nikuu971

Description

@Nikuu971

Hello, I have a strange error. I followed the tutorial to install pygame_sdl2 for a ren'py project (yeah, it's a pain in the ass).
I did clone the https://github.com/renpy/pygame_sdl2.git
and I did clone the git clone https://github.com/renpy/pygame_sdl2_windeps
I installed cython wheel, setuptools.
I even changed my python version to 36 like on the tuto. I've run python setup.py install the build works,
python setup.py sdist bdist_wheel also works and where it really hurts is on the pip install dist\pygame_sdl2-2.1.0-cp36-cp36m-win32.whl I get the following error:

Traceback (most recent call last):
File "setup.py", line 61, in
parse_cflags([ "sh", "-c", "sdl2-config --cflags" ])
File "C:\Users\memin\Desktop\Personal Project\pygame_sdl2\dist\setuplib.py", line 99, in parse_cflags
output = subprocess.check_output(command, universal_newlines=True)
File "C:\Users\memin\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 336, in check_output
**kwargs).stdout
File "C:\Users\memin\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\memin\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 709, in init
restore_signals, start_new_session)
File "C:\Users\memin\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The specified file cannot be found

Idk what to try :c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions