NeMo icon indicating copy to clipboard operation
NeMo copied to clipboard

Nemo gets installed in legacy version because it couldn't build a wheel

Open speedhunter001 opened this issue 3 years ago • 0 comments

Describe the bug

I am using google colab for using nemo, nemo supports python 3.8 but colab has python 3.7, I can succesfully install python 3.8 in colab and pip but when I try to install nemo, it gives me an error in the end that nemo got installed in legacy version becaue pip failed to build a wheel. After using the !pip install git+https://github.com/NVIDIA/NeMo.git@main#egg=nemo_toolkit[all] --verbose --log ./pip.log and reading the logs, I find this

Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/tmp/pip-install-0anzil8f/nemo-toolkit_8b9af28d0a0a4f5d861548d9508e4c38/setup.py", line 209, in setuptools.setup( File "/usr/local/lib/python3.8/dist-packages/setuptools/init.py", line 153, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3.8/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 256, in run self.egg2dist(self.egginfo_dir, File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 426, in egg2dist pymeta = pkginfo_to_dict(metadata_path, File "/usr/lib/python3/dist-packages/wheel/metadata.py", line 177, in pkginfo_to_dict new_requirements = sorted(convert_requirements(requirements)) File "/usr/lib/python3/dist-packages/wheel/metadata.py", line 234, in convert_requirements parsed_requirement = pkg_resources.Requirement.parse(req) File "/usr/local/lib/python3.8/dist-packages/pkg_resources/init.py", line 3154, in parse req, = parse_requirements(s) ValueError: too many values to unpack (expected 1)

Steps/Code to reproduce bug

Install python 3.8 and then run this

Expected behavior Nemo should be installed correctly and its logs should show any problem.

Environment overview (please complete the following information)

  • Environment location: Colab
  • Method of NeMo install: [pip install or from source]. !pip install git+https://github.com/NVIDIA/NeMo.git@main#egg=nemo_toolkit[all] --verbose --log ./pip.log

Environment details

If NVIDIA docker image is used you don't need to specify these. Otherwise, please provide:

  • Ubuntu (colab)
  • pytorch 1.12+cu116
  • Python 3.8

speedhunter001 avatar Sep 12 '22 14:09 speedhunter001