Giter VIP home page Giter VIP logo

Comments (4)

RuoyuChen10 avatar RuoyuChen10 commented on June 25, 2024 4

I hit the following error when installing. I strictly follow the install.md file but it doesn't seem to work. The cuda version is 11.3

Obtaining file:///media/data2/ziqing/RegionCLIP Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [28 lines of output] No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda' /home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/dist.py:543: UserWarning: The version specified ('RegionCLIP') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. warnings.warn( running egg_info Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/media/data2/ziqing/actiondetection/RegionCLIP/setup.py", line 193, in setup( File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/init.py", line 87, in setup return distutils.core.setup(**attrs) File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/dist.py", line 1208, in run_command super().run_command(command) File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 987, in run_command cmd_obj.ensure_finalized() File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized self.finalize_options() File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 219, in finalize_options parsed_version = parse_version(self.egg_version) File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/version.py", line 266, in init raise InvalidVersion(f"Invalid version: '{version}'") pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'RegionCLIP' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

I meet it too, and I solved it by downgrade the version of setuptools:

pip install setuptools==59

from regionclip.

Taoww21480 avatar Taoww21480 commented on June 25, 2024 2

Thank you for RuoyuChen10's answer. I tested on Google Collab today and encountered a similar issue. The solution is to lower the version of setuptools, which is version 59.0.1!

pip install setuptools==59.0.1

from regionclip.

jayambe36 avatar jayambe36 commented on June 25, 2024 2

It looks like the error is related to the package metadata, and specifically the version specified in the setup.py file. The error message indicates that the version specified ('RegionCLIP') is not a valid version according to PEP 440.

To fix this issue, you should update the version specified in the setup.py file to a valid version string that conforms to the PEP 440 specification. This should resolve the error and allow you to install the package successfully.

For example, you could update the setup.py file to specify a version number like this:

arduino

setup(
name='RegionCLIP',
version='0.1.0',
...
)

This specifies a version number of '0.1.0', which is a valid version string according to PEP 440. You should replace '0.1.0' with the appropriate version number for your package.

Once you have updated the version string in the setup.py file, you can try running the installation command again and see if the issue is resolved.

from regionclip.

Taoww21480 avatar Taoww21480 commented on June 25, 2024

from regionclip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.