python data_error ai_generated true

ERROR: setuptools.errors.VersionError: Version '1.0.0' is invalid: expected '.' or end of string after '1'

ID: python/setuptools-version-scheme-error

Also available as: JSON · Markdown · 中文
80%Fix Rate
85%Confidence
0Evidence
2025-08-15First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.8 active — — —
3.9 active — — —

Root Cause

The version string contains invalid characters or format that setuptools cannot parse, e.g., using commas or spaces.

generic

中文

版本字符串包含 setuptools 无法解析的无效字符或格式,例如使用逗号或空格。

Workarounds

  1. 95% success Use a valid PEP 440 version string
    Change to '1.0.0' (ensure only dots and digits).
  2. 90% success Use setuptools_scm to auto-generate versions from git tags
    Install setuptools_scm and configure in setup.cfg: [tool:setuptools_scm]

Dead Ends

Common approaches that don't work:

  1. Adding a trailing 'v' to the version 90% fail

    Versions must start with a digit.

  2. Using a version like '1,0,0' with commas 80% fail

    Commas are not valid separators.