chrisdonahue / nesmdb

The NES Music Database: use machine learning to compose music for the Nintendo Entertainment System!
MIT License
450 stars 39 forks source link

Failed Building Wheel in Python 2.7 conda environment #10

Open nsanirudh opened 4 years ago

nsanirudh commented 4 years ago

I can paste the full trace back if required.

chrisdonahue commented 4 years ago

Please do add the trace!

nsanirudh commented 4 years ago

I am running it on a Windows 10 machine:

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be f ound at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Collecting nesmdb Downloading https://files.pythonhosted.org/packages/a2/f5/7ae1420059e3dae3239954b7845eecd52b6b4a6f7e4e8866a559f8c8accf/nesmdb-0.1.8.tar.gz Collecting numpy>=1.7.0 (from nesmdb) Downloading https://files.pythonhosted.org/packages/14/ef/9f2eeb4ff0c733ad9149f17266e388c308e171fdb8c2415dbb472e2bbc0f/numpy-1.16.6-cp27-cp27m-win_amd64.whl (11.9MB) |UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU| 11.9MB 4.7MB/s Collecting scipy>=1.0.0 (from nesmdb) Downloading https://files.pythonhosted.org/packages/91/46/3c982996646325c8c11a33956ee0d944d9f1b04e02b147e70eec3efee942/scipy-1.2.3-cp27-cp27m-win_amd64.whl (30.5MB) |UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU| 30.5MB 3.9MB/s Collecting Pillow>=5.1.0 (from nesmdb) Downloading https://files.pythonhosted.org/packages/5e/b6/8960697526a79bd1cb4520293078be3a10d725f23f20abbee298ebdeaabd/Pillow-6.2.2-cp27-cp27m-win_amd64.whl (1.9MB) |UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU| 1.9MB 3.5MB/s Collecting tqdm>=4.19.9 (from nesmdb) Downloading https://files.pythonhosted.org/packages/47/55/fd9170ba08a1a64a18a7f8a18f088037316f2a41be04d2fe6ece5a653e8f/tqdm-4.43.0-py2.py3-none-any.whl (59kB) |UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU| 61kB 2.7MB/s Building wheels for collected packages: nesmdb Building wheel for nesmdb (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\anirudh\appdata\local\temp\pip-install-m5jnvd\nesmdb\setup.py'"'"'; file='"'"'c:\users\anirudh\appdata \local\temp\pip-install-m5jnvd\nesmdb\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'c:\users\anirudh\appdata\local\ temp\pip-wheel-ye5quc' --python-tag cp27 cwd: c:\users\anirudh\appdata\local\temp\pip-install-m5jnvd\nesmdb\ Complete output (67 lines): running bdist_wheel running build running build_py creating build creating build\lib creating build\lib\nesmdb copying nesmdb\apu.py -> build\lib\nesmdb copying nesmdb\convert.py -> build\lib\nesmdb copying nesmdb\cycle.py -> build\lib\nesmdb copying nesmdb__init.py -> build\lib\nesmdb creating build\lib\nesmdb\vgm copying nesmdb\vgm\bintypes.py -> build\lib\nesmdb\vgm copying nesmdb\vgm\ndf_nlm.py -> build\lib\nesmdb\vgm copying nesmdb\vgm\ndr_ndf.py -> build\lib\nesmdb\vgm copying nesmdb\vgm\nd_txt.py -> build\lib\nesmdb\vgm copying nesmdb\vgm\vgm_ndr.py -> build\lib\nesmdb\vgm copying nesmdb\vgm\vgm_simplify.py -> build\lib\nesmdb\vgm copying nesmdb\vgm\vgm_to_wav.py -> build\lib\nesmdb\vgm copying nesmdb\vgm__init.py -> build\lib\nesmdb\vgm creating build\lib\nesmdb\score copying nesmdb\score\blndsco.py -> build\lib\nesmdb\score copying nesmdb\score\exprsco.py -> build\lib\nesmdb\score copying nesmdb\score\midi.py -> build\lib\nesmdb\score copying nesmdb\score\rawsco.py -> build\lib\nesmdb\score copying nesmdb\score\seprsco.py -> build\lib\nesmdb\score copying nesmdb\score__init__.py -> build\lib\nesmdb\score installing to build\bdist.win-amd64\wheel running install running install_lib creating build\bdist.win-amd64 creating build\bdist.win-amd64\wheel creating build\bdist.win-amd64\wheel\nesmdb copying build\lib\nesmdb\apu.py -> build\bdist.win-amd64\wheel.\nesmdb copying build\lib\nesmdb\convert.py -> build\bdist.win-amd64\wheel.\nesmdb copying build\lib\nesmdb\cycle.py -> build\bdist.win-amd64\wheel.\nesmdb creating build\bdist.win-amd64\wheel\nesmdb\score copying build\lib\nesmdb\score\blndsco.py -> build\bdist.win-amd64\wheel.\nesmdb\score copying build\lib\nesmdb\score\exprsco.py -> build\bdist.win-amd64\wheel.\nesmdb\score copying build\lib\nesmdb\score\midi.py -> build\bdist.win-amd64\wheel.\nesmdb\score copying build\lib\nesmdb\score\rawsco.py -> build\bdist.win-amd64\wheel.\nesmdb\score copying build\lib\nesmdb\score\seprsco.py -> build\bdist.win-amd64\wheel.\nesmdb\score copying build\lib\nesmdb\score\init__.py -> build\bdist.win-amd64\wheel.\nesmdb\score creating build\bdist.win-amd64\wheel\nesmdb\vgm copying build\lib\nesmdb\vgm\bintypes.py -> build\bdist.win-amd64\wheel.\nesmdb\vgm copying build\lib\nesmdb\vgm\ndf_nlm.py -> build\bdist.win-amd64\wheel.\nesmdb\vgm copying build\lib\nesmdb\vgm\ndr_ndf.py -> build\bdist.win-amd64\wheel.\nesmdb\vgm copying build\lib\nesmdb\vgm\nd_txt.py -> build\bdist.win-amd64\wheel.\nesmdb\vgm copying build\lib\nesmdb\vgm\vgm_ndr.py -> build\bdist.win-amd64\wheel.\nesmdb\vgm copying build\lib\nesmdb\vgm\vgm_simplify.py -> build\bdist.win-amd64\wheel.\nesmdb\vgm copying build\lib\nesmdb\vgm\vgm_to_wav.py -> build\bdist.win-amd64\wheel.\nesmdb\vgm copying build\lib\nesmdb\vgm\init.py -> build\bdist.win-amd64\wheel.\nesmdb\vgm copying build\lib\nesmdb\init__.py -> build\bdist.win-amd64\wheel.\nesmdb running install_egg_info running egg_info writing requirements to nesmdb.egg-info\requires.txt writing nesmdb.egg-info\PKG-INFO writing top-level names to nesmdb.egg-info\top_level.txt writing dependency_links to nesmdb.egg-info\dependency_links.txt writing entry points to nesmdb.egg-info\entry_points.txt reading manifest file 'nesmdb.egg-info\SOURCES.txt' writing manifest file 'nesmdb.egg-info\SOURCES.txt' Copying nesmdb.egg-info to build\bdist.win-amd64\wheel.\nesmdb-0.1.8-py2.7.egg-info running install_scripts Downloading VGMPlay Extracting VGMPlay Building VGMPlay error: [Error 2] The system cannot find the file specified

ERROR: Failed building wheel for nesmdb Running setup.py clean for nesmdb Failed to build nesmdb Installing collected packages: numpy, scipy, Pillow, tqdm, nesmdb Running setup.py install for nesmdb ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\anirudh\appdata\local\temp\pip-install-m5jnvd\nesmdb\setup.py'"'"'; file='"'"'c:\users\anirudh\appda ta\local\temp\pip-install-m5jnvd\nesmdb\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'c:\users\anirudh\appdata\lo cal\temp\pip-record-28gkhi\install-record.txt' --single-version-externally-managed --compile cwd: c:\users\anirudh\appdata\local\temp\pip-install-m5jnvd\nesmdb\ Complete output (84 lines): running install running build running build_py creating build creating build\lib creating build\lib\nesmdb copying nesmdb\apu.py -> build\lib\nesmdb copying nesmdb\convert.py -> build\lib\nesmdb copying nesmdb\cycle.py -> build\lib\nesmdb copying nesmdb__init.py -> build\lib\nesmdb creating build\lib\nesmdb\vgm copying nesmdb\vgm\bintypes.py -> build\lib\nesmdb\vgm copying nesmdb\vgm\ndf_nlm.py -> build\lib\nesmdb\vgm copying nesmdb\vgm\ndr_ndf.py -> build\lib\nesmdb\vgm copying nesmdb\vgm\nd_txt.py -> build\lib\nesmdb\vgm copying nesmdb\vgm\vgm_ndr.py -> build\lib\nesmdb\vgm copying nesmdb\vgm\vgm_simplify.py -> build\lib\nesmdb\vgm copying nesmdb\vgm\vgm_to_wav.py -> build\lib\nesmdb\vgm copying nesmdb\vgm__init.py -> build\lib\nesmdb\vgm creating build\lib\nesmdb\score copying nesmdb\score\blndsco.py -> build\lib\nesmdb\score copying nesmdb\score\exprsco.py -> build\lib\nesmdb\score copying nesmdb\score\midi.py -> build\lib\nesmdb\score copying nesmdb\score\rawsco.py -> build\lib\nesmdb\score copying nesmdb\score\seprsco.py -> build\lib\nesmdb\score copying nesmdb\score__init__.py -> build\lib\nesmdb\score running install_lib creating C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb copying build\lib\nesmdb\apu.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb copying build\lib\nesmdb\convert.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb copying build\lib\nesmdb\cycle.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb creating C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\score copying build\lib\nesmdb\score\blndsco.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\score copying build\lib\nesmdb\score\exprsco.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\score copying build\lib\nesmdb\score\midi.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\score copying build\lib\nesmdb\score\rawsco.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\score copying build\lib\nesmdb\score\seprsco.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\score copying build\lib\nesmdb\score\init__.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\score creating C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm copying build\lib\nesmdb\vgm\bintypes.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm copying build\lib\nesmdb\vgm\ndf_nlm.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm copying build\lib\nesmdb\vgm\ndr_ndf.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm copying build\lib\nesmdb\vgm\nd_txt.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm copying build\lib\nesmdb\vgm\vgm_ndr.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm copying build\lib\nesmdb\vgm\vgm_simplify.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm copying build\lib\nesmdb\vgm\vgm_to_wav.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm copying build\lib\nesmdb\vgm\init.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm copying build\lib\nesmdb\init.py -> C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\apu.py to apu.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\convert.py to convert.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\cycle.py to cycle.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\score\blndsco.py to blndsco.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\score\exprsco.py to exprsco.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\score\midi.py to midi.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\score\rawsco.py to rawsco.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\score\seprsco.py to seprsco.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\score\init.py to init.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm\bintypes.py to bintypes.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm\ndf_nlm.py to ndf_nlm.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm\ndr_ndf.py to ndr_ndf.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm\nd_txt.py to nd_txt.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm\vgm_ndr.py to vgm_ndr.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm\vgm_simplify.py to vgm_simplify.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm\vgm_to_wav.py to vgm_to_wav.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\vgm\init.py to init.pyc byte-compiling C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb\init.py to init__.pyc running install_egg_info running egg_info writing requirements to nesmdb.egg-info\requires.txt writing nesmdb.egg-info\PKG-INFO writing top-level names to nesmdb.egg-info\top_level.txt writing dependency_links to nesmdb.egg-info\dependency_links.txt writing entry points to nesmdb.egg-info\entry_points.txt reading manifest file 'nesmdb.egg-info\SOURCES.txt' writing manifest file 'nesmdb.egg-info\SOURCES.txt' Copying nesmdb.egg-info to C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Lib\site-packages\nesmdb-0.1.8-py2.7.egg-info running install_scripts Installing nesmdb_convert-script.py script to C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Scripts Installing nesmdb_convert.exe script to C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\Scripts writing list of installed files to 'c:\users\anirudh\appdata\local\temp\pip-record-28gkhi\install-record.txt' Downloading VGMPlay Extracting VGMPlay Building VGMPlay error: [Error 2] The system cannot find the file specified

ERROR: Command errored out with exit status 1: 'C:\Users\Anirudh\Anaconda3\envs\LakhNES\LakhNES-synth\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\anirudh\appdata\local\temp\pip-install-m5jnvd\nesmdb\setup.py'"'"'; file ='"'"'c:\users\anirudh\appdata\local\temp\pip-install-m5jnvd\nesmdb\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --re cord 'c:\users\anirudh\appdata\local\temp\pip-record-28gkhi\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

chrisdonahue commented 4 years ago

Ah I see. I have never actually tried building the library on Windows. The installer script relies on unix tools like gcc to build the VGMPlay library. I am not sure if the VGMPlay library even supports compilation on Windows. Tools like cygwin might be what you need here?

nsanirudh commented 4 years ago

Alright, I shall try the available unix tools and try and make the library work.

Will keep you updated with my progress! 👍

duhaime commented 4 years ago

@nsanirudh I think you'll need to update the Makefile of VGMPlay in the way the setup.py script in this repo does.

See if you can figure out how to build VGMPlay on windows without this library, then clone this library and make the required changes to setup.py so you can install this library and VGMPlay together...

affanmehmood commented 2 years ago

@nsanirudh were you able to install this on windows?