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

Fail to install #13

Open
yzxstore opened this issue Aug 26, 2020 · 0 comments
Open

Fail to install #13

yzxstore opened this issue Aug 26, 2020 · 0 comments

Comments

@yzxstore
Copy link

yzxstore commented Aug 26, 2020

Hello. Many thanks for your code. However, when I am trying to install, I meet the errors below. May you give some hints to solve it? Many thanks.

pip install mesh-renderer
Collecting mesh-renderer
Using cached mesh_renderer-1.4.tar.gz (21 kB)
Building wheels for collected packages: mesh-renderer
Building wheel for mesh-renderer (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/yzx/PycharmProjects/Myenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wvqwbrng/mesh-renderer/setup.py'"'"'; file='"'"'/tmp/pip-install-wvqwbrng/mesh-renderer/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 /tmp/pip-wheel-pp6pkq6k
cwd: /tmp/pip-install-wvqwbrng/mesh-renderer/
Complete output (39 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
copying mesh_renderer.py -> build/lib.linux-x86_64-3.8
copying camera_utils.py -> build/lib.linux-x86_64-3.8
copying rasterize_triangles.py -> build/lib.linux-x86_64-3.8
running build_ext
2020-08-26 17:40:41.943057: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-wvqwbrng/mesh-renderer/setup.py", line 108, in
setup(
File "/home/yzx/PycharmProjects/Myenv/lib/python3.8/site-packages/setuptools/init.py", line 165, 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 223, in run
self.run_command('build')
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/tmp/pip-install-wvqwbrng/mesh-renderer/setup.py", line 70, in build_extensions
assert tf_version_major == 1
AssertionError

ERROR: Failed building wheel for mesh-renderer
Running setup.py clean for mesh-renderer
Failed to build mesh-renderer
Installing collected packages: mesh-renderer
Running setup.py install for mesh-renderer ... error
ERROR: Command errored out with exit status 1:
command: /home/yzx/PycharmProjects/Myenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wvqwbrng/mesh-renderer/setup.py'"'"'; file='"'"'/tmp/pip-install-wvqwbrng/mesh-renderer/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-z356jsnx/install-record.txt --single-version-externally-managed --compile --install-headers /home/yzx/PycharmProjects/Myenv/include/site/python3.8/mesh-renderer
cwd: /tmp/pip-install-wvqwbrng/mesh-renderer/
Complete output (41 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
copying mesh_renderer.py -> build/lib.linux-x86_64-3.8
copying camera_utils.py -> build/lib.linux-x86_64-3.8
copying rasterize_triangles.py -> build/lib.linux-x86_64-3.8
running build_ext
2020-08-26 17:40:43.783594: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-wvqwbrng/mesh-renderer/setup.py", line 108, in
setup(
File "/home/yzx/PycharmProjects/Myenv/lib/python3.8/site-packages/setuptools/init.py", line 165, 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 "/home/yzx/PycharmProjects/Myenv/lib/python3.8/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python3.8/distutils/command/install.py", line 589, in run
self.run_command('build')
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/tmp/pip-install-wvqwbrng/mesh-renderer/setup.py", line 70, in build_extensions
assert tf_version_major == 1
AssertionError
----------------------------------------
ERROR: Command errored out with exit status 1: /home/yzx/PycharmProjects/Myenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wvqwbrng/mesh-renderer/setup.py'"'"'; file='"'"'/tmp/pip-install-wvqwbrng/mesh-renderer/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-z356jsnx/install-record.txt --single-version-externally-managed --compile --install-headers /home/yzx/PycharmProjects/Myenv/include/site/python3.8/mesh-renderer 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