Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install pysparkling after updating setuptools >= 69.0.0 #5705

Closed
ajayrgb opened this issue Dec 22, 2023 · 2 comments · Fixed by #5712
Closed

Can't install pysparkling after updating setuptools >= 69.0.0 #5705

ajayrgb opened this issue Dec 22, 2023 · 2 comments · Fixed by #5712

Comments

@ajayrgb
Copy link

ajayrgb commented Dec 22, 2023

setuptools now enforces PEP 440 complaint version numbers:

Configuring project version and egg_info.tag_* in such a way that results in invalid version strings (according to PEP 440) is no longer permitted. (#4066)

This causes pysparkling to fail to install.

Steps to reproduce

docker run --rm python:3.9 bash -c "pip install setuptools==69.0.2; pip install h2o-pysparkling-3.4"

Error

  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-hyb7sdsg/h2o-pysparkling-3-4_6c75896111544cff9585271e3640d900/setup.py", line 13, in <module>
          setup(
        File "/opt/conda/lib/python3.9/site-packages/setuptools/__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
        File "/opt/conda/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 147, in setup
          _setup_distribution = dist = klass(attrs)
        File "/opt/conda/lib/python3.9/site-packages/setuptools/dist.py", line 314, in __init__
          self.metadata.version = self._normalize_version(self.metadata.version)
        File "/opt/conda/lib/python3.9/site-packages/setuptools/dist.py", line 350, in _normalize_version
          normalized = str(Version(version))
        File "/opt/conda/lib/python3.9/site-packages/setuptools/_vendor/packaging/version.py", line 198, in __init__
          raise InvalidVersion(f"Invalid version: '{version}'")
      setuptools.extern.packaging.version.InvalidVersion: Invalid version: '3.44.0.2_1'
      [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.
@JeroenSchmidt
Copy link

This might be related #5695

@krasinski
Copy link
Member

@ajayrgb @JeroenSchmidt 3.46.0.1-1 should fix that problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants