Skip to content

example: version format is invalid #236

@mingfang

Description

@mingfang

version=datetime.utcnow().date().isoformat(),

docker compose up

=> ERROR [shell 4/5] RUN pip3 install -e /crawlers                                                                                                                                    1.3s
------                                                                                                                                                                                      
 > [shell 4/5] RUN pip3 install -e /crawlers:                                                                                                                                               
0.703 Obtaining file:///crawlers                                                                                                                                                            
0.703   Preparing metadata (setup.py): started                                                                                                                                              
0.915   Preparing metadata (setup.py): finished with status 'error'                                                                                                                         
0.922   error: subprocess-exited-with-error                                                                                                                                                 
0.922   
0.922   × python setup.py egg_info did not run successfully.
0.922   │ exit code: 1
0.922   ╰─> [27 lines of output]
0.922       /usr/local/lib/python3.10/dist-packages/setuptools/dist.py:548: UserWarning: The version specified ('2024-05-29') 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.
0.922         warnings.warn(
0.922       running egg_info
0.922       Traceback (most recent call last):
0.922         File "<string>", line 2, in <module>
0.922         File "<pip-setuptools-caller>", line 34, in <module>
0.922         File "/crawlers/setup.py", line 4, in <module>
0.922           setup(
0.922         File "/usr/local/lib/python3.10/dist-packages/setuptools/__init__.py", line 108, in setup
0.922           return distutils.core.setup(**attrs)
0.922         File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 185, in setup
0.922           return run_commands(dist)
0.922         File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands
0.922           dist.run_commands()
0.922         File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands
0.922           self.run_command(cmd)
0.922         File "/usr/local/lib/python3.10/dist-packages/setuptools/dist.py", line 1213, in run_command
0.922           super().run_command(command)
0.922         File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 987, in run_command
0.922           cmd_obj.ensure_finalized()
0.922         File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
0.922           self.finalize_options()
0.922         File "/usr/local/lib/python3.10/dist-packages/setuptools/command/egg_info.py", line 219, in finalize_options
0.922           parsed_version = parse_version(self.egg_version)
0.922         File "/usr/local/lib/python3.10/dist-packages/pkg_resources/_vendor/packaging/version.py", line 197, in __init__
0.922           raise InvalidVersion(f"Invalid version: '{version}'")
0.922       pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '2024-05-29'
0.922       [end of output]
0.922   
0.922   note: This error originates from a subprocess, and is likely not a problem with pip.
0.923 error: metadata-generation-failed
0.923 
0.923 × Encountered error while generating package metadata.
0.923 ╰─> See above for output.
0.923 
0.923 note: This is an issue with the package mentioned above, not pip.
0.923 hint: See above for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions