epic-kitchens / epic-kitchens-100-object-masks

:wine_glass: Support library for the MaskRCNN masks extracted on EPIC-KITCHENS-100
14 stars 2 forks source link

error: Couldn't find a setup script in /tmp/easy_install-cpt9wcxv/scikit_image-0.22.0.tar.gz #5

Closed yqi19 closed 1 year ago

yqi19 commented 1 year ago

Hi, thank you for your amazing works!

I was trying to install exactly as you suggested.

However, when I am trying to install using the command python setup.py install, an error shows:

python setup.py install
running install
/home/yu/anaconda3/envs/ego_rewards/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 or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
/home/yu/anaconda3/envs/ego_rewards/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
running bdist_egg
running egg_info
creating src/public_lib/epic_masks.egg-info
writing src/public_lib/epic_masks.egg-info/PKG-INFO
writing dependency_links to src/public_lib/epic_masks.egg-info/dependency_links.txt
writing requirements to src/public_lib/epic_masks.egg-info/requires.txt
writing top-level names to src/public_lib/epic_masks.egg-info/top_level.txt
writing manifest file 'src/public_lib/epic_masks.egg-info/SOURCES.txt'
reading manifest file 'src/public_lib/epic_masks.egg-info/SOURCES.txt'
writing manifest file 'src/public_lib/epic_masks.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/epic_kitchens
copying src/public_lib/epic_kitchens/__init__.py -> build/lib/epic_kitchens
creating build/lib/epic_kitchens/masks
copying src/public_lib/epic_kitchens/masks/visualisation.py -> build/lib/epic_kitchens/masks
copying src/public_lib/epic_kitchens/masks/_maskrcnn_visualise.py -> build/lib/epic_kitchens/masks
copying src/public_lib/epic_kitchens/masks/__init__.py -> build/lib/epic_kitchens/masks
copying src/public_lib/epic_kitchens/masks/coco.py -> build/lib/epic_kitchens/masks
copying src/public_lib/epic_kitchens/masks/_maskrcnn_utils.py -> build/lib/epic_kitchens/masks
copying src/public_lib/epic_kitchens/masks/io.py -> build/lib/epic_kitchens/masks
copying src/public_lib/epic_kitchens/masks/types_pb2.py -> build/lib/epic_kitchens/masks
copying src/public_lib/epic_kitchens/masks/types.py -> build/lib/epic_kitchens/masks
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/epic_kitchens
copying build/lib/epic_kitchens/__init__.py -> build/bdist.linux-x86_64/egg/epic_kitchens
creating build/bdist.linux-x86_64/egg/epic_kitchens/masks
copying build/lib/epic_kitchens/masks/visualisation.py -> build/bdist.linux-x86_64/egg/epic_kitchens/masks
copying build/lib/epic_kitchens/masks/_maskrcnn_visualise.py -> build/bdist.linux-x86_64/egg/epic_kitchens/masks
copying build/lib/epic_kitchens/masks/__init__.py -> build/bdist.linux-x86_64/egg/epic_kitchens/masks
copying build/lib/epic_kitchens/masks/coco.py -> build/bdist.linux-x86_64/egg/epic_kitchens/masks
copying build/lib/epic_kitchens/masks/_maskrcnn_utils.py -> build/bdist.linux-x86_64/egg/epic_kitchens/masks
copying build/lib/epic_kitchens/masks/io.py -> build/bdist.linux-x86_64/egg/epic_kitchens/masks
copying build/lib/epic_kitchens/masks/types_pb2.py -> build/bdist.linux-x86_64/egg/epic_kitchens/masks
copying build/lib/epic_kitchens/masks/types.py -> build/bdist.linux-x86_64/egg/epic_kitchens/masks
byte-compiling build/bdist.linux-x86_64/egg/epic_kitchens/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/epic_kitchens/masks/visualisation.py to visualisation.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/epic_kitchens/masks/_maskrcnn_visualise.py to _maskrcnn_visualise.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/epic_kitchens/masks/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/epic_kitchens/masks/coco.py to coco.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/epic_kitchens/masks/_maskrcnn_utils.py to _maskrcnn_utils.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/epic_kitchens/masks/io.py to io.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/epic_kitchens/masks/types_pb2.py to types_pb2.cpython-38.pyc
byte-compiling build/bdist.linux-x86_64/egg/epic_kitchens/masks/types.py to types.cpython-38.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying src/public_lib/epic_masks.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/public_lib/epic_masks.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/public_lib/epic_masks.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/public_lib/epic_masks.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/public_lib/epic_masks.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/epic_masks-0.0.1-py3.8.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing epic_masks-0.0.1-py3.8.egg
Copying epic_masks-0.0.1-py3.8.egg to /home/yu/anaconda3/envs/ego_rewards/lib/python3.8/site-packages
Adding epic-masks 0.0.1 to easy-install.pth file

Installed /home/yu/anaconda3/envs/ego_rewards/lib/python3.8/site-packages/epic_masks-0.0.1-py3.8.egg
Processing dependencies for epic-masks==0.0.1
Searching for scikit-image
Reading https://pypi.org/simple/scikit-image/
Downloading https://files.pythonhosted.org/packages/65/c1/a49da20845f0f0e1afbb1c2586d406dc0acb84c26ae293bad6d7e7f718bc/scikit_image-0.22.0.tar.gz#sha256=018d734df1d2da2719087d15f679d19285fce97cd37695103deadfaef2873236
error: Download error for https://files.pythonhosted.org/packages/65/c1/a49da20845f0f0e1afbb1c2586d406dc0acb84c26ae293bad6d7e7f718bc/scikit_image-0.22.0.tar.gz#sha256=018d734df1d2da2719087d15f679d19285fce97cd37695103deadfaef2873236: [Errno 101] Network is unreachable

When I am trying to hack on it using command python setup.py develop, another error shows:

running develop
/home/yu/anaconda3/envs/ego_rewards/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 or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  easy_install.initialize_options(self)
/home/yu/anaconda3/envs/ego_rewards/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 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
writing src/public_lib/epic_masks.egg-info/PKG-INFO
writing dependency_links to src/public_lib/epic_masks.egg-info/dependency_links.txt
writing requirements to src/public_lib/epic_masks.egg-info/requires.txt
writing top-level names to src/public_lib/epic_masks.egg-info/top_level.txt
reading manifest file 'src/public_lib/epic_masks.egg-info/SOURCES.txt'
writing manifest file 'src/public_lib/epic_masks.egg-info/SOURCES.txt'
running build_ext
Creating /home/yu/anaconda3/envs/ego_rewards/lib/python3.8/site-packages/epic-masks.egg-link (link to src/public_lib)
Adding epic-masks 0.0.1 to easy-install.pth file

Installed /home/yu/ego/epic-kitchens-100-object-masks/src/public_lib
Processing dependencies for epic-masks==0.0.1
Searching for scikit-image
Reading https://pypi.org/simple/scikit-image/
Downloading https://files.pythonhosted.org/packages/65/c1/a49da20845f0f0e1afbb1c2586d406dc0acb84c26ae293bad6d7e7f718bc/scikit_image-0.22.0.tar.gz#sha256=018d734df1d2da2719087d15f679d19285fce97cd37695103deadfaef2873236
Best match: scikit-image 0.22.0
Processing scikit_image-0.22.0.tar.gz
error: Couldn't find a setup script in /tmp/easy_install-cpt9wcxv/scikit_image-0.22.0.tar.gz

May I ask do you have any back-up plans to resolve this? Thank you!

Best, Yu

dimadamen commented 1 year ago

You might want to look into the newly released VISOR annotations of masks instead of these old Mask R-CNN annotations. At the moment, we do not have plans to update this old installation script.