Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Could not build wheels for nes-py, which is required to install pyproject.toml-based projects #3

Closed
ManPython opened this issue Mar 17, 2024 · 2 comments

Comments

@ManPython
Copy link

pip install nes-py
Collecting nes-py
  Downloading nes_py-8.2.1.tar.gz (77 kB)
     ---------------------------------------- 77.7/77.7 kB 613.0 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting gym>=0.17.2 (from nes-py)
  Downloading gym-0.26.2.tar.gz (721 kB)
     ---------------------------------------- 721.7/721.7 kB 827.3 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.18.5 in e:\python311-venv\lib\site-packages (from nes-py) (1.25.0)
Collecting pyglet<=1.5.21,>=1.4.0 (from nes-py)
  Downloading pyglet-1.5.21-py3-none-any.whl.metadata (7.6 kB)
Requirement already satisfied: tqdm>=4.48.2 in e:\python311-venv\lib\site-packages (from nes-py) (4.66.1)
Collecting cloudpickle>=1.2.0 (from gym>=0.17.2->nes-py)
  Downloading cloudpickle-3.0.0-py3-none-any.whl.metadata (7.0 kB)
Collecting gym-notices>=0.0.4 (from gym>=0.17.2->nes-py)
  Downloading gym_notices-0.0.8-py3-none-any.whl.metadata (1.0 kB)
Requirement already satisfied: colorama in e:\python311-venv\lib\site-packages (from tqdm>=4.48.2->nes-py) (0.4.6)
Downloading pyglet-1.5.21-py3-none-any.whl (1.1 MB)
   ---------------------------------------- 1.1/1.1 MB 800.4 kB/s eta 0:00:00
Downloading cloudpickle-3.0.0-py3-none-any.whl (20 kB)
Downloading gym_notices-0.0.8-py3-none-any.whl (3.0 kB)
Building wheels for collected packages: nes-py, gym
  Building wheel for nes-py (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [28 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\nes_py
      copying nes_py\nes_env.py -> build\lib.win-amd64-cpython-311\nes_py
      copying nes_py\_image_viewer.py -> build\lib.win-amd64-cpython-311\nes_py
      copying nes_py\_rom.py -> build\lib.win-amd64-cpython-311\nes_py
      copying nes_py\__init__.py -> build\lib.win-amd64-cpython-311\nes_py
      creating build\lib.win-amd64-cpython-311\nes_py\app
      copying nes_py\app\cli.py -> build\lib.win-amd64-cpython-311\nes_py\app
      copying nes_py\app\play_human.py -> build\lib.win-amd64-cpython-311\nes_py\app
      copying nes_py\app\play_random.py -> build\lib.win-amd64-cpython-311\nes_py\app
      copying nes_py\app\__init__.py -> build\lib.win-amd64-cpython-311\nes_py\app
      creating build\lib.win-amd64-cpython-311\nes_py\wrappers
      copying nes_py\wrappers\joypad_space.py -> build\lib.win-amd64-cpython-311\nes_py\wrappers
      copying nes_py\wrappers\__init__.py -> build\lib.win-amd64-cpython-311\nes_py\wrappers
      running build_ext
      building 'nes_py.lib_nes_env' extension
      creating build\temp.win-amd64-cpython-311
      creating build\temp.win-amd64-cpython-311\Release
      creating build\temp.win-amd64-cpython-311\Release\nes_py
      creating build\temp.win-amd64-cpython-311\Release\nes_py\nes
      creating build\temp.win-amd64-cpython-311\Release\nes_py\nes\src
      creating build\temp.win-amd64-cpython-311\Release\nes_py\nes\src\mappers
      cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ines_py/nes/include -IE:\Python311-venv\include -IE:\Python311\include -IE:\Python311\Include /EHsc /Tpnes_py/nes/src/mappers\mapper_CNROM.cpp /Fobuild\temp.win-amd64-cpython-311\Release\nes_py/nes/src/mappers\mapper_CNROM.obj -std=c++1y -pipe -O3
      error: command 'cl.exe' failed: None
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for nes-py
  Running setup.py clean for nes-py
  Building wheel for gym (pyproject.toml) ... done
  Created wheel for gym: filename=gym-0.26.2-py3-none-any.whl size=827637 sha256=4bd5ea8e44a83ff271acbca77ab5ff7b8bd0bcd02a9d8b2065ef66a3c9b9ce5b
  Stored in directory: c:\users\ManPython\appdata\local\pip\cache\wheels\1c\77\9e\9af5470201a0b0543937933ee99ba884cd237d2faefe8f4d37
Successfully built gym
Failed to build nes-py
ERROR: Could not build wheels for nes-py, which is required to install pyproject.toml-based projects
@ManPython
Copy link
Author

Also need here pre-built wheels for python3.11 and python3.12
Youlixx/cynes#1 (reference)

@ManPython
Copy link
Author

pip install pyntendo
Collecting pyntendo
  Using cached pyntendo-0.0.8.tar.gz (1.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pyntendo
  Building wheel for pyntendo (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pyntendo (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [35 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\nes
      copying nes\instructions.py -> build\lib.win-amd64-cpython-311\nes
      copying nes\meta.py -> build\lib.win-amd64-cpython-311\nes
      copying nes\peripherals.py -> build\lib.win-amd64-cpython-311\nes
      copying nes\rom.py -> build\lib.win-amd64-cpython-311\nes
      copying nes\tests.py -> build\lib.win-amd64-cpython-311\nes
      copying nes\utils.py -> build\lib.win-amd64-cpython-311\nes
      copying nes\__init__.py -> build\lib.win-amd64-cpython-311\nes
      creating build\lib.win-amd64-cpython-311\tests
      copying tests\__init__.py -> build\lib.win-amd64-cpython-311\tests
      creating build\lib.win-amd64-cpython-311\nes\cycore
      copying nes\cycore\__init__.py -> build\lib.win-amd64-cpython-311\nes\cycore
      creating build\lib.win-amd64-cpython-311\nes\pycore
      copying nes\pycore\bitwise.py -> build\lib.win-amd64-cpython-311\nes\pycore
      copying nes\pycore\carts.py -> build\lib.win-amd64-cpython-311\nes\pycore
      copying nes\pycore\memory.py -> build\lib.win-amd64-cpython-311\nes\pycore
      copying nes\pycore\mos6502.py -> build\lib.win-amd64-cpython-311\nes\pycore
      copying nes\pycore\ppu.py -> build\lib.win-amd64-cpython-311\nes\pycore
      copying nes\pycore\system.py -> build\lib.win-amd64-cpython-311\nes\pycore
      copying nes\pycore\__init__.py -> build\lib.win-amd64-cpython-311\nes\pycore
      running build_ext
      building 'nes.cycore.apu' extension
      creating build\temp.win-amd64-cpython-311
      creating build\temp.win-amd64-cpython-311\Release
      creating build\temp.win-amd64-cpython-311\Release\nes
      creating build\temp.win-amd64-cpython-311\Release\nes\cycore
      cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IE:\Python311-venv\include -IE:\Python311\include -IE:\Python311\Include /Tcnes/cycore\apu.c /Fobuild\temp.win-amd64-cpython-311\Release\nes/cycore\apu.obj
      apu.c
      E:\Python311\include\pyconfig.h(59): fatal error C1083: can't open file : 'io.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.39.33519\\bin\\Hostx64\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyntendo
Failed to build pyntendo
ERROR: Could not build wheels for pyntendo, which is required to install pyproject.toml-based projects

Looks it's more complicated problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant