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

Installation Error #2

Open
MilesTheProwler opened this issue Aug 17, 2023 · 0 comments
Open

Installation Error #2

MilesTheProwler opened this issue Aug 17, 2023 · 0 comments

Comments

@MilesTheProwler
Copy link

Hello, I got many errors when I install with pip install . Could you help me to solve it ?

    Traceback (most recent call last):
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1723, in _run_ninja_build
        env=env)
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/subprocess.py", line 512, in run
        output=stdout, stderr=stderr)
    subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/mnt/c/Users/ADMIN/Desktop/Project/minimal_pytorch_rasterizer/setup.py", line 23, in <module>
        cmdclass={'build_ext': BuildExtension}
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/site-packages/setuptools/__init__.py", line 144, in setup
        return distutils.core.setup(**attrs)
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/distutils/command/install.py", line 545, in run
        self.run_command('build')
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 87, in run
        _build_ext.run(self)
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/distutils/command/build_ext.py", line 340, in run
        self.build_extensions()
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 735, in build_extensions
        build_ext.build_extensions(self)
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
        self._build_extensions_serial()
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
        self.build_extension(ext)
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 208, in build_extension
        _build_ext.build_extension(self, ext)
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
        depends=ext.depends)
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 565, in unix_wrap_ninja_compile
        with_cuda=with_cuda)
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1404, in _write_ninja_file_and_compile_objects
        error_prefix='Error compiling objects for extension')
      File "/home/top/miniconda3/envs/gent_docker/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1733, in _run_ninja_build
        raise RuntimeError(message) from e
    RuntimeError: Error compiling objects for extension
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/top/miniconda3/envs/gent_docker/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/mnt/c/Users/ADMIN/Desktop/Project/minimal_pytorch_rasterizer/setup.py'"'"'; __file__='"'"'/mnt/c/Users/ADMIN/Desktop/Project/minimal_pytorch_rasterizer/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-f5zjmpqt/install-record.txt --single-version-externally-managed --compile --install-headers /home/top/miniconda3/envs/gent_docker/include/python3.7m/minimal-pytorch-rasterizer Check the logs for full command output.
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