Jeff-sjtu / HybrIK

Official code of "HybrIK: A Hybrid Analytical-Neural Inverse Kinematics Solution for 3D Human Pose and Shape Estimation", CVPR 2021
MIT License
1.21k stars 147 forks source link

Unable to install: RuntimeError: Python version >= 3.9 required. #175

Open Silverlan opened 1 year ago

Silverlan commented 1 year ago

I used the installation instructions from the readme:

# 1. Create a conda virtual environment.
conda create -n hybrik python=3.8 -y
conda activate hybrik

# 2. Install PyTorch
conda install pytorch==1.9.1 torchvision==0.10.1 -c pytorch

# 3. Install PyTorch3D (Optional, only for visualization)
# Skipped

# 4. Pull our code
git clone https://github.com/Jeff-sjtu/HybrIK.git
cd HybrIK

# 5. Install
pip install pycocotools
python setup.py develop  # or "pip install -e ."

Everything works fine until the last command, which fails with the error:

RuntimeError: Python version >= 3.9 required.
Full Log

``` (hybrik) vboxuser@vboxuser-VirtualBox:~/Desktop/HybrIK/HybrIK$ python setup.py develop /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! dist.fetch_build_eggs(dist.setup_requires) running develop /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` and ``easy_install``. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! easy_install.initialize_options(self) /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running egg_info creating hybrik.egg-info writing hybrik.egg-info/PKG-INFO writing dependency_links to hybrik.egg-info/dependency_links.txt writing requirements to hybrik.egg-info/requires.txt writing top-level names to hybrik.egg-info/top_level.txt writing manifest file 'hybrik.egg-info/SOURCES.txt' reading manifest file 'hybrik.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'hybrik.egg-info/SOURCES.txt' running build_ext Creating /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/hybrik.egg-link (link to .) Adding hybrik 0.2.0+9b8681d to easy-install.pth file Installed /home/vboxuser/Desktop/HybrIK/HybrIK Processing dependencies for hybrik==0.2.0+9b8681d Searching for joblib Reading https://pypi.org/simple/joblib/ Downloading https://files.pythonhosted.org/packages/91/d4/3b4c8e5a30604df4c7518c562d4bf0502f2fa29221459226e140cf846512/joblib-1.2.0-py3-none-any.whl#sha256=091138ed78f800342968c523bdde947e7a305b8594b910a0fea2ab83c3c6d385 Best match: joblib 1.2.0 Processing joblib-1.2.0-py3-none-any.whl Installing joblib-1.2.0-py3-none-any.whl to /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages Adding joblib 1.2.0 to easy-install.pth file Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/joblib-1.2.0-py3.8.egg Searching for ffmpeg-python Reading https://pypi.org/simple/ffmpeg-python/ Downloading https://files.pythonhosted.org/packages/d7/0c/56be52741f75bad4dc6555991fabd2e07b432d333da82c11ad701123888a/ffmpeg_python-0.2.0-py3-none-any.whl#sha256=ac441a0404e053f8b6a1113a77c0f452f1cfc62f6344a769475ffdc0f56c23c5 Best match: ffmpeg-python 0.2.0 Processing ffmpeg_python-0.2.0-py3-none-any.whl Installing ffmpeg_python-0.2.0-py3-none-any.whl to /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages Adding ffmpeg-python 0.2.0 to easy-install.pth file detected new path './joblib-1.2.0-py3.8.egg' Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/ffmpeg_python-0.2.0-py3.8.egg Searching for future Reading https://pypi.org/simple/future/ Downloading https://files.pythonhosted.org/packages/8f/2e/cf6accf7415237d6faeeebdc7832023c90e0282aa16fd3263db0eb4715ec/future-0.18.3.tar.gz#sha256=34a17436ed1e96697a86f9de3d15a3b0be01d8bc8de9c1dffd59fb8234ed5307 Best match: future 0.18.3 Processing future-0.18.3.tar.gz Writing /tmp/easy_install-rqb8d5i4/future-0.18.3/setup.cfg Running future-0.18.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-rqb8d5i4/future-0.18.3/egg-dist-tmp-egikj1_k /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg` !! ******************************************************************************** The license_file parameter is deprecated, use license_files instead. By 2023-Oct-30, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! parsed = self.parsers.get(option_name, lambda x: x)(value) warning: no files found matching '*.au' under directory 'tests' warning: no files found matching '*.gif' under directory 'tests' warning: no files found matching '*.txt' under directory 'tests' /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() zip_safe flag not set; analyzing archive contents... future.backports.test.__pycache__.ssl_servers.cpython-38: module references __file__ future.backports.test.__pycache__.support.cpython-38: module references __file__ future.standard_library.__pycache__.__init__.cpython-38: module references __file__ future.standard_library.__pycache__.__init__.cpython-38: module references __path__ future.utils.__pycache__.__init__.cpython-38: module MAY be using inspect.stack past.builtins.__pycache__.misc.cpython-38: module MAY be using inspect.stack past.translation.__pycache__.__init__.cpython-38: module references __file__ past.translation.__pycache__.__init__.cpython-38: module references __path__ Adding future 0.18.3 to easy-install.pth file detected new path './ffmpeg_python-0.2.0-py3.8.egg' Installing futurize script to /home/vboxuser/miniconda3/envs/hybrik/bin Installing pasteurize script to /home/vboxuser/miniconda3/envs/hybrik/bin Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/future-0.18.3-py3.8.egg Searching for tb-nightly Reading https://pypi.org/simple/tb-nightly/ Downloading https://files.pythonhosted.org/packages/0e/70/5df926f4a8da99f5dbaf16c50e6ac8ccf6184bbe90c24698cb1754767452/tb_nightly-2.14.0a20230625-py3-none-any.whl#sha256=542813a8d16223fb86369327ca04a64c4f6af7bc89c43f4a3857a7bd5f96b986 Best match: tb-nightly 2.14.0a20230625 Processing tb_nightly-2.14.0a20230625-py3-none-any.whl Installing tb_nightly-2.14.0a20230625-py3-none-any.whl to /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages Adding tb-nightly 2.14.0a20230625 to easy-install.pth file detected new path './future-0.18.3-py3.8.egg' Installing tensorboard script to /home/vboxuser/miniconda3/envs/hybrik/bin Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/tb_nightly-2.14.0a20230625-py3.8.egg Searching for chumpy Reading https://pypi.org/simple/chumpy/ Downloading https://files.pythonhosted.org/packages/01/f7/865755c8bdb837841938de622e6c8b5cb6b1c933bde3bd3332f0cd4574f1/chumpy-0.70.tar.gz#sha256=a0275c2018784ca1302875567dc81761f5fd469fab9f3ac0f3e7c39e9180350a Best match: chumpy 0.70 Processing chumpy-0.70.tar.gz Writing /tmp/easy_install-lchc9a93/chumpy-0.70/setup.cfg Running chumpy-0.70/setup.py -q bdist_egg --dist-dir /tmp/easy_install-lchc9a93/chumpy-0.70/egg-dist-tmp-2lp8leva /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() build/bdist.linux-x86_64/egg/chumpy/ch_ops.py:85: SyntaxWarning: "is" with a literal. Did you mean "=="? assert(order is 'C' or order is None) File "build/bdist.linux-x86_64/egg/chumpy/api_compatibility.py", line 532 global which_passed ^ SyntaxError: name 'which_passed' is assigned to before global declaration zip_safe flag not set; analyzing archive contents... chumpy.__pycache__.__init__.cpython-38: module references __file__ chumpy.__pycache__.ch_ops.cpython-38: module references __file__ File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/chumpy-0.70-py3.8.egg/chumpy/api_compatibility.py", line 532 global which_passed ^ SyntaxError: name 'which_passed' is assigned to before global declaration /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/chumpy-0.70-py3.8.egg/chumpy/ch_ops.py:85: SyntaxWarning: "is" with a literal. Did you mean "=="? assert(order is 'C' or order is None) Adding chumpy 0.70 to easy-install.pth file detected new path './tb_nightly-2.14.0a20230625-py3.8.egg' Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/chumpy-0.70-py3.8.egg Searching for easydict Reading https://pypi.org/simple/easydict/ Downloading https://files.pythonhosted.org/packages/55/83/0d1ee7962f3ba3fbe9eebe67eb484f6745995c9af045c0ebe5f33564cba0/easydict-1.10.tar.gz#sha256=11dcb2c20aaabbfee4c188b4bc143ef6be044b34dbf0ce5a593242c2695a080f Best match: easydict 1.10 Processing easydict-1.10.tar.gz Writing /tmp/easy_install-uqifoc46/easydict-1.10/setup.cfg Running easydict-1.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-uqifoc46/easydict-1.10/egg-dist-tmp-xcpht33y /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() Adding easydict 1.10 to easy-install.pth file detected new path './chumpy-0.70-py3.8.egg' Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/easydict-1.10-py3.8.egg Searching for opencv-python==4.1.2.30 Reading https://pypi.org/simple/opencv-python/ Downloading https://files.pythonhosted.org/packages/9c/6f/220c45977e6f85cbe63cd978c5cb774aa7c71ef9fb52b45f69c2611af010/opencv_python-4.1.2.30-cp38-cp38-manylinux1_x86_64.whl#sha256=5fec35916a6b9ce935f2e2806084303fd4e3fbb0c973a8db8f54b5aca54613cb Best match: opencv-python 4.1.2.30 Processing opencv_python-4.1.2.30-cp38-cp38-manylinux1_x86_64.whl Installing opencv_python-4.1.2.30-cp38-cp38-manylinux1_x86_64.whl to /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages Adding opencv-python 4.1.2.30 to easy-install.pth file detected new path './easydict-1.10-py3.8.egg' Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/opencv_python-4.1.2.30-py3.8-linux-x86_64.egg Searching for cython Reading https://pypi.org/simple/cython/ Downloading https://files.pythonhosted.org/packages/cb/a7/ee3149300c8daee710e88781ebc831b0e0300d5f9b5b132a1508a3af6a32/Cython-3.0.0b3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=4a39eacb0c97ca47352e17597b521dd00f6c0a4531231695c28077e7ed688a09 Best match: Cython 3.0.0b3 Processing Cython-3.0.0b3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Installing Cython-3.0.0b3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl to /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages Adding Cython 3.0.0b3 to easy-install.pth file detected new path './opencv_python-4.1.2.30-py3.8-linux-x86_64.egg' Installing cygdb script to /home/vboxuser/miniconda3/envs/hybrik/bin Installing cython script to /home/vboxuser/miniconda3/envs/hybrik/bin Installing cythonize script to /home/vboxuser/miniconda3/envs/hybrik/bin Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/Cython-3.0.0b3-py3.8-linux-x86_64.egg Searching for scipy Reading https://pypi.org/simple/scipy/ Downloading https://files.pythonhosted.org/packages/fa/d0/724c8204f87b6f807e3e67de32b8b4922d579154a448ce94e89129064bf1/scipy-1.11.0.tar.gz#sha256=f9b0248cb9d08eead44cde47cbf6339f1e9aa0dfde28f5fb27950743e317bd5d Best match: scipy 1.11.0 Processing scipy-1.11.0.tar.gz Writing /tmp/easy_install-mke1lj10/scipy-1.11.0/setup.cfg Running scipy-1.11.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-mke1lj10/scipy-1.11.0/egg-dist-tmp-2pkbzp8u Traceback (most recent call last): File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/sandbox.py", line 156, in save_modules yield saved File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/sandbox.py", line 198, in setup_context yield File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/sandbox.py", line 259, in run_setup _execfile(setup_script, ns) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/sandbox.py", line 46, in _execfile exec(code, globals, locals) File "/tmp/easy_install-mke1lj10/scipy-1.11.0/setup.py", line 33, in env['LANGUAGE'] = 'C' RuntimeError: Python version >= 3.9 required. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "setup.py", line 101, in setup( File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/__init__.py", line 107, in setup return distutils.core.setup(**attrs) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/dist.py", line 1244, in run_command super().run_command(command) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/command/develop.py", line 34, in run self.install_for_development() File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/command/develop.py", line 130, in install_for_development self.process_distribution(None, self.dist, not self.no_deps) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 750, in process_distribution distros = WorkingSet([]).resolve( File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/pkg_resources/__init__.py", line 827, in resolve dist = self._resolve_dist( File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/pkg_resources/__init__.py", line 863, in _resolve_dist dist = best[req.key] = env.best_match( File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1133, in best_match return self.obtain(req, installer) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1145, in obtain return installer(requirement) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 677, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 703, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 896, in install_eggs return self.build_and_install(setup_script, setup_base) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 1170, in build_and_install self.run_setup(setup_script, setup_base, args) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 1154, in run_setup run_setup(setup_script, args) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/sandbox.py", line 262, in run_setup raise File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/contextlib.py", line 131, in __exit__ self.gen.throw(type, value, traceback) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/sandbox.py", line 198, in setup_context yield File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/contextlib.py", line 131, in __exit__ self.gen.throw(type, value, traceback) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/sandbox.py", line 169, in save_modules saved_exc.resume() File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/sandbox.py", line 143, in resume raise exc.with_traceback(self._tb) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/sandbox.py", line 156, in save_modules yield saved File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/sandbox.py", line 198, in setup_context yield File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/sandbox.py", line 259, in run_setup _execfile(setup_script, ns) File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.8/site-packages/setuptools/sandbox.py", line 46, in _execfile exec(code, globals, locals) File "/tmp/easy_install-mke1lj10/scipy-1.11.0/setup.py", line 33, in env['LANGUAGE'] = 'C' RuntimeError: Python version >= 3.9 required. (hybrik) vboxuser@vboxuser-VirtualBox:~/Desktop/HybrIK/HybrIK$ ```



I tried changing the python version to 3.9:

conda create -n hybrik python=3.9 -y

Again everything works fine until the last command, but this time I get a different error:

No local packages or working download links found for opencv-python==4.1.2.30
error: Could not find suitable distribution for Requirement.parse('opencv-python==4.1.2.30')
Full Log

``` (hybrik) vboxuser@vboxuser-VirtualBox:~/.local/share/Trash/files/HybrIK/HybrIK$ python setup.py develop /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! dist.fetch_build_eggs(dist.setup_requires) running develop /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` and ``easy_install``. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. See https://github.com/pypa/setuptools/issues/917 for details. ******************************************************************************** !! easy_install.initialize_options(self) /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running egg_info creating hybrik.egg-info writing hybrik.egg-info/PKG-INFO writing dependency_links to hybrik.egg-info/dependency_links.txt writing requirements to hybrik.egg-info/requires.txt writing top-level names to hybrik.egg-info/top_level.txt writing manifest file 'hybrik.egg-info/SOURCES.txt' reading manifest file 'hybrik.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'hybrik.egg-info/SOURCES.txt' running build_ext Creating /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/hybrik.egg-link (link to .) Adding hybrik 0.2.0+9b8681d to easy-install.pth file Installed /home/vboxuser/.local/share/Trash/files/HybrIK/HybrIK Processing dependencies for hybrik==0.2.0+9b8681d Searching for joblib Reading https://pypi.org/simple/joblib/ Downloading https://files.pythonhosted.org/packages/91/d4/3b4c8e5a30604df4c7518c562d4bf0502f2fa29221459226e140cf846512/joblib-1.2.0-py3-none-any.whl#sha256=091138ed78f800342968c523bdde947e7a305b8594b910a0fea2ab83c3c6d385 Best match: joblib 1.2.0 Processing joblib-1.2.0-py3-none-any.whl Installing joblib-1.2.0-py3-none-any.whl to /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages Adding joblib 1.2.0 to easy-install.pth file Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/joblib-1.2.0-py3.9.egg Searching for ffmpeg-python Reading https://pypi.org/simple/ffmpeg-python/ Downloading https://files.pythonhosted.org/packages/d7/0c/56be52741f75bad4dc6555991fabd2e07b432d333da82c11ad701123888a/ffmpeg_python-0.2.0-py3-none-any.whl#sha256=ac441a0404e053f8b6a1113a77c0f452f1cfc62f6344a769475ffdc0f56c23c5 Best match: ffmpeg-python 0.2.0 Processing ffmpeg_python-0.2.0-py3-none-any.whl Installing ffmpeg_python-0.2.0-py3-none-any.whl to /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages Adding ffmpeg-python 0.2.0 to easy-install.pth file detected new path './joblib-1.2.0-py3.9.egg' Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/ffmpeg_python-0.2.0-py3.9.egg Searching for future Reading https://pypi.org/simple/future/ Downloading https://files.pythonhosted.org/packages/8f/2e/cf6accf7415237d6faeeebdc7832023c90e0282aa16fd3263db0eb4715ec/future-0.18.3.tar.gz#sha256=34a17436ed1e96697a86f9de3d15a3b0be01d8bc8de9c1dffd59fb8234ed5307 Best match: future 0.18.3 Processing future-0.18.3.tar.gz Writing /tmp/easy_install-45fgdr0f/future-0.18.3/setup.cfg Running future-0.18.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-45fgdr0f/future-0.18.3/egg-dist-tmp-vjiznhvm /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg` !! ******************************************************************************** The license_file parameter is deprecated, use license_files instead. By 2023-Oct-30, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! parsed = self.parsers.get(option_name, lambda x: x)(value) warning: no files found matching '*.au' under directory 'tests' warning: no files found matching '*.gif' under directory 'tests' warning: no files found matching '*.txt' under directory 'tests' /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() zip_safe flag not set; analyzing archive contents... future.backports.test.__pycache__.ssl_servers.cpython-39: module references __file__ future.backports.test.__pycache__.support.cpython-39: module references __file__ future.standard_library.__pycache__.__init__.cpython-39: module references __file__ future.standard_library.__pycache__.__init__.cpython-39: module references __path__ future.utils.__pycache__.__init__.cpython-39: module MAY be using inspect.stack past.builtins.__pycache__.misc.cpython-39: module MAY be using inspect.stack past.translation.__pycache__.__init__.cpython-39: module references __file__ past.translation.__pycache__.__init__.cpython-39: module references __path__ Adding future 0.18.3 to easy-install.pth file detected new path './ffmpeg_python-0.2.0-py3.9.egg' Installing futurize script to /home/vboxuser/miniconda3/envs/hybrik/bin Installing pasteurize script to /home/vboxuser/miniconda3/envs/hybrik/bin Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/future-0.18.3-py3.9.egg Searching for tb-nightly Reading https://pypi.org/simple/tb-nightly/ Downloading https://files.pythonhosted.org/packages/0e/70/5df926f4a8da99f5dbaf16c50e6ac8ccf6184bbe90c24698cb1754767452/tb_nightly-2.14.0a20230625-py3-none-any.whl#sha256=542813a8d16223fb86369327ca04a64c4f6af7bc89c43f4a3857a7bd5f96b986 Best match: tb-nightly 2.14.0a20230625 Processing tb_nightly-2.14.0a20230625-py3-none-any.whl Installing tb_nightly-2.14.0a20230625-py3-none-any.whl to /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages Adding tb-nightly 2.14.0a20230625 to easy-install.pth file detected new path './future-0.18.3-py3.9.egg' Installing tensorboard script to /home/vboxuser/miniconda3/envs/hybrik/bin Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/tb_nightly-2.14.0a20230625-py3.9.egg Searching for pyyaml Reading https://pypi.org/simple/pyyaml/ Downloading https://files.pythonhosted.org/packages/12/fc/a4d5a7554e0067677823f7265cb3ae22aed8a238560b5133b58cda252dad/PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl#sha256=40527857252b61eacd1d9af500c3337ba8deb8fc298940291486c465c8b46ec0 Best match: PyYAML 6.0 Processing PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl Installing PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl to /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages Adding PyYAML 6.0 to easy-install.pth file detected new path './tb_nightly-2.14.0a20230625-py3.9.egg' Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/PyYAML-6.0-py3.9-linux-x86_64.egg Searching for chumpy Reading https://pypi.org/simple/chumpy/ Downloading https://files.pythonhosted.org/packages/01/f7/865755c8bdb837841938de622e6c8b5cb6b1c933bde3bd3332f0cd4574f1/chumpy-0.70.tar.gz#sha256=a0275c2018784ca1302875567dc81761f5fd469fab9f3ac0f3e7c39e9180350a Best match: chumpy 0.70 Processing chumpy-0.70.tar.gz Writing /tmp/easy_install-1fhtk5a8/chumpy-0.70/setup.cfg Running chumpy-0.70/setup.py -q bdist_egg --dist-dir /tmp/easy_install-1fhtk5a8/chumpy-0.70/egg-dist-tmp-xm25u69s /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() build/bdist.linux-x86_64/egg/chumpy/ch_ops.py:85: SyntaxWarning: "is" with a literal. Did you mean "=="? assert(order is 'C' or order is None) File "build/bdist.linux-x86_64/egg/chumpy/api_compatibility.py", line 532 global which_passed ^ SyntaxError: name 'which_passed' is assigned to before global declaration zip_safe flag not set; analyzing archive contents... chumpy.__pycache__.__init__.cpython-39: module references __file__ chumpy.__pycache__.ch_ops.cpython-39: module references __file__ File "/home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/chumpy-0.70-py3.9.egg/chumpy/api_compatibility.py", line 532 global which_passed ^ SyntaxError: name 'which_passed' is assigned to before global declaration /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/chumpy-0.70-py3.9.egg/chumpy/ch_ops.py:85: SyntaxWarning: "is" with a literal. Did you mean "=="? assert(order is 'C' or order is None) Adding chumpy 0.70 to easy-install.pth file detected new path './PyYAML-6.0-py3.9-linux-x86_64.egg' Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/chumpy-0.70-py3.9.egg Searching for easydict Reading https://pypi.org/simple/easydict/ Downloading https://files.pythonhosted.org/packages/55/83/0d1ee7962f3ba3fbe9eebe67eb484f6745995c9af045c0ebe5f33564cba0/easydict-1.10.tar.gz#sha256=11dcb2c20aaabbfee4c188b4bc143ef6be044b34dbf0ce5a593242c2695a080f Best match: easydict 1.10 Processing easydict-1.10.tar.gz Writing /tmp/easy_install-ourrpr7c/easydict-1.10/setup.cfg Running easydict-1.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ourrpr7c/easydict-1.10/egg-dist-tmp-w36_b27l /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() Adding easydict 1.10 to easy-install.pth file detected new path './chumpy-0.70-py3.9.egg' Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/easydict-1.10-py3.9.egg Searching for tqdm Reading https://pypi.org/simple/tqdm/ Downloading https://files.pythonhosted.org/packages/e6/02/a2cff6306177ae6bc73bc0665065de51dfb3b9db7373e122e2735faf0d97/tqdm-4.65.0-py3-none-any.whl#sha256=c4f53a17fe37e132815abceec022631be8ffe1b9381c2e6e30aa70edc99e9671 Best match: tqdm 4.65.0 Processing tqdm-4.65.0-py3-none-any.whl Installing tqdm-4.65.0-py3-none-any.whl to /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages Adding tqdm 4.65.0 to easy-install.pth file detected new path './easydict-1.10-py3.9.egg' Installing tqdm script to /home/vboxuser/miniconda3/envs/hybrik/bin Installed /home/vboxuser/miniconda3/envs/hybrik/lib/python3.9/site-packages/tqdm-4.65.0-py3.9.egg Searching for opencv-python==4.1.2.30 Reading https://pypi.org/simple/opencv-python/ No local packages or working download links found for opencv-python==4.1.2.30 error: Could not find suitable distribution for Requirement.parse('opencv-python==4.1.2.30') (hybrik) vboxuser@vboxuser-VirtualBox:~/.local/share/Trash/files/HybrIK/HybrIK$ ```



I then tried installing opencv-python 4.1.2.30 (https://pypi.org/project/opencv-python/4.1.2.30/) :

pip install opencv-python==4.1.2.30

Unfortunately that also fails:

(hybrik) vboxuser@vboxuser-VirtualBox:~/.local/share/Trash/files/HybrIK/HybrIK$ pip install opencv-python==4.1.2.30
ERROR: Could not find a version that satisfies the requirement opencv-python==4.1.2.30 (from versions: 3.4.0.14, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.14.53, 3.4.15.55, 3.4.16.57, 3.4.16.59, 3.4.17.61, 3.4.17.63, 3.4.18.65, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.2.54, 4.5.3.56, 4.5.4.58, 4.5.4.60, 4.5.5.62, 4.5.5.64, 4.6.0.66, 4.7.0.68, 4.7.0.72)
ERROR: No matching distribution found for opencv-python==4.1.2.30



I am using Miniconda. I have tried it on both Windows 11 and Linux Mint 21.1 Cinnamon and I get the same issues on both. Am I missing something obvious?



I also have some unrelated questions:

  1. The code is licensed under MIT, but what about the models and datasets? Are they also MIT or are there any usage restrictions?
  2. I am mostly interested in the 3D Keypoint estimation, not the parametric model. How would I extract the positions from the result of hybrik_model(...)?
Echolink50 commented 1 year ago

Same issue here. The instructions don't say what folders to put the models and other downloaded files in

yupei-song commented 1 year ago

This helped me solve the problem. Run pip install scipy, then run python setup.pydevelop.

AmoghTiwari commented 1 year ago

I have shared the steps which worked for me in #186 . You can have a look at that if you are still stuck.

Echolink50 commented 1 year ago

I have shared the steps which worked for me in #186 . You can have a look at that if you are still stuck.

Thanks. Are you on windows? I was having the opencv 4.1.2.30 issue so I will try out your solution and report back. Thanks

AmoghTiwari commented 1 year ago

I have shared the steps which worked for me in #186 . You can have a look at that if you are still stuck.

Thanks. Are you on windows? I was having the opencv 4.1.2.30 issue so I will try out your solution and report back. Thanks

I am on Ubuntu 18.04, with Nvidia 2080Ti

biansy000 commented 1 year ago

No local packages or working download links found for opencv-python==4.1.2.30 error: Could not find suitable distribution for Requirement.parse('opencv-python==4.1.2.30')

I think the version of opencv-python is not so important. You may just install the latest version which can be installed in your environment.

Echolink50 commented 1 year ago

You also have to remove openCV from the install requirements file or it will keep looking for that specific version