dhermes / bezier

Helper for Bézier Curves, Triangles, and Higher Order Objects
Apache License 2.0
266 stars 36 forks source link

Unable to install on python 3.12 #317

Closed epicwhale closed 5 months ago

epicwhale commented 8 months ago

I get the following error, any pointers to resolve this?

Using version ^2023.7.28 for bezier

Updating dependencies
Resolving dependencies... (0.5s)

Package operations: 1 install, 0 updates, 0 removals

  • Installing bezier (2023.7.28): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke get_requires_for_build_wheel

  <string>:18: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  The current Python version (3.12) is not supported.

  The supported versions are: 3.8, 3.9, 3.10 and 3.11

  Using `bezier` on an unsupported version of Python is not known to work. You
  may be seeing this message as part of a source distribution (`sdist`) install
  because no wheels exist on PyPI for your current Python environment. The
  Python environment is uniquely identified by Python version, operating
  system (ABI) and architecture (platform). You are likely seeing this message
  because a new version of Python has been released. To disable this check, set
  the `BEZIER_IGNORE_VERSION_CHECK` environment variable.

  at .conda/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
      160│ 
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│ 
      163│             if error is not None:
    → 164│                 raise error from None
      165│ 
      166│             return path
      167│ 
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with bezier (2023.7.28) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "bezier (==2023.7.28)"'.
dhermes commented 5 months ago

@epicwhale This is now fixed, thanks for your patience!

I just released https://pypi.org/project/bezier/2024.6.20/