jby1993 / SelfReconCode

This repository contains a pytorch implementation of "SelfRecon: Self Reconstruction Your Digital Avatar from Monocular Video (CVPR 2022, Oral)".
403 stars 45 forks source link

How to install openmesh #8

Closed xjchao7 closed 2 years ago

xjchao7 commented 2 years ago

Thank you for your perfect work. When I run the inference code. I met "ModuleNotFoundError: No module named 'openmesh'". Do you know how to quickly install OpenMesh on Linux.

Thank you very much.

MySTerY1747 commented 2 years ago

OpenMesh is a python module, so to install it just do:

pip install openmesh

If you don't have pip installed, run:

sudo apt install python3-pip

And try re-running the previous command.

xjchao7 commented 2 years ago

all python3-pip

Thank you for your quick reply. I have tried this command, but it still has error: ip3 install openme <ip3 install openmesh
Collecting openmesh Using cached openmesh-1.2.1.tar.gz (9.3 MB) ERROR: Command errored out with exit status 1: command: /opt/conda/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nhouase2/openmesh/setup.py'"'"'; file='"'"'/tmp/pip-install-nhouase2/openmesh/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-_bm3yud7 cwd: /tmp/pip-install-nhouase2/openmesh/ Complete output (25 lines): Traceback (most recent call last): File "", line 1, in File "/tmp/pip-install-nhouase2/openmesh/setup.py", line 82, in setup( File "/opt/conda/lib/python3.8/site-packages/setuptools/init.py", line 153, in setup return distutils.core.setup(**attrs) File "/opt/conda/lib/python3.8/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "/opt/conda/lib/python3.8/site-packages/setuptools/dist.py", line 423, in init _Distribution.init(self, { File "/opt/conda/lib/python3.8/distutils/dist.py", line 292, in init self.finalize_options() File "/opt/conda/lib/python3.8/site-packages/setuptools/dist.py", line 694, in finalize_options for ep in sorted(eps, key=by_order): File "/opt/conda/lib/python3.8/site-packages/setuptools/dist.py", line 693, in eps = map(lambda e: e.load(), pkg_resources.iter_entry_points(group)) File "/opt/conda/lib/python3.8/site-packages/pkg_resources/init.py", line 2447, in load return self.resolve() File "/opt/conda/lib/python3.8/site-packages/pkg_resources/init.py", line 2453, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/tmp/pip-install-nhouase2/openmesh/.eggs/setuptools_scm-7.0.1-py3.8.egg/setuptools_scm/init.py", line 13, in from . import _types as _t File "/tmp/pip-install-nhouase2/openmesh/.eggs/setuptools_scm-7.0.1-py3.8.egg/setuptools_scm/_types.py", line 16, in from typing_extensions import ParamSpec, TypeAlias, Protocol ImportError: cannot import name 'ParamSpec' from 'typing_extensions' (/opt/conda/lib/python3.8/site-packages/typing_extensions.py)

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

xjchao7 commented 2 years ago

I think it's probably because I use Docker to install the environment. Thanks again.