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

poetry incompatible with latest version of python-build #150812

Closed
4 tasks done
rben01 opened this issue Oct 13, 2023 · 0 comments · Fixed by #150837
Closed
4 tasks done

poetry incompatible with latest version of python-build #150812

rben01 opened this issue Oct 13, 2023 · 0 comments · Fixed by #150837
Labels
bug Reproducible Homebrew/homebrew-core bug outdated PR was locked due to age

Comments

@rben01
Copy link

rben01 commented Oct 13, 2023

brew gist-logs <formula> link OR brew config AND brew doctor output

brew config:

HOMEBREW_VERSION: 4.1.15
ORIGIN: https://github.com/Homebrew/brew
HEAD: e57a87cfe9c15f192cd4fc6695a2b3b7acf0ddf7
Last commit: 4 days ago
Core tap JSON: 13 Oct 16:46 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: nvim
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_blizzard_avalanche
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.1.2 => /usr/bin/curl
macOS: 14.0-arm64
CLT: 15.0.0.0.1.1694021235
Xcode: N/A
Rosetta 2: false
brew doctor: `Your system is ready to brew.`

Verification

  • My "brew doctor output" says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

Using brew’s version of Poetry, poetry add openai-whisper.

What happened (include all command output)?

$ poetry add openai-whisper

Using version ^20230918 for openai-whisper

Updating dependencies
Resolving dependencies... (2.0s)

Package operations: 180 installs, 1 update, 0 removals

  • Installing attrs (23.1.0)
  • Installing rpds-py (0.10.6)
  • Installing referencing (0.30.2)
  • Installing six (1.16.0)
  • Installing jsonschema-specifications (2023.7.1)
  • Installing platformdirs (3.11.0)
  • Installing python-dateutil (2.8.2)
  • Installing traitlets (5.11.2)
  • Installing types-python-dateutil (2.8.19.14)
  • Installing arrow (1.3.0)
  • Installing fastjsonschema (2.18.1)
  • Installing jsonschema (4.19.1)
  • Installing jupyter-core (5.4.0)
  • Installing pycparser (2.21)
  • Installing pyzmq (25.1.1)
  • Installing tornado (6.3.3)
  • Installing cffi (1.16.0)
  • Installing fqdn (1.5.1)
  • Installing idna (3.4)
  • Installing isoduration (20.11.0)
  • Installing jsonpointer (2.4)
  • Installing jupyter-client (8.4.0)
  • Installing markupsafe (2.1.3)
  • Installing nbformat (5.9.2)
  • Installing ptyprocess (0.7.0)
  • Installing rfc3339-validator (0.1.4)
  • Installing rfc3986-validator (0.1.1)
  • Installing soupsieve (2.5)
  • Installing uri-template (1.3.0)
  • Installing webcolors (1.13)
  • Installing webencodings (0.5.1)
  • Installing argon2-cffi-bindings (21.2.0)
  • Installing asttokens (2.4.0)
  • Installing beautifulsoup4 (4.12.2)
  • Installing bleach (6.1.0)
  • Installing defusedxml (0.7.1)
  • Installing exceptiongroup (1.1.3)
  • Installing executing (2.0.0)
  • Installing jinja2 (3.1.2)
  • Installing jupyterlab-pygments (0.2.2)
  • Installing mistune (3.0.2)
  • Installing nbclient (0.8.0)
  • Installing packaging (23.2)
  • Installing pandocfilters (1.5.0)
  • Installing parso (0.8.3)
  • Installing pure-eval (0.2.2)
  • Installing pygments (2.16.1)
  • Installing python-json-logger (2.0.7)
  • Installing pyyaml (6.0.1)
  • Installing sniffio (1.3.0)
  • Installing terminado (0.17.1)
  • Installing tinycss2 (1.2.1)
  • Installing wcwidth (0.2.8)
  • Installing anyio (4.0.0)
  • Installing appnope (0.1.3)
  • Installing argon2-cffi (23.1.0)
  • Installing backcall (0.2.0)
  • Installing certifi (2023.7.22)
  • Installing charset-normalizer (3.3.0)
  • Installing decorator (5.1.1)
  • Installing jedi (0.19.1)
  • Installing jupyter-events (0.7.0)
  • Installing jupyter-server-terminals (0.4.4)
  • Installing matplotlib-inline (0.1.6)
  • Installing nbconvert (7.9.2)
  • Installing overrides (7.4.0)
  • Installing pexpect (4.8.0)
  • Installing pickleshare (0.7.5)
  • Installing prompt-toolkit (3.0.39)
  • Installing prometheus-client (0.17.1)
  • Installing send2trash (1.8.2)
  • Installing stack-data (0.6.3)
  • Installing urllib3 (2.0.6)
  • Installing websocket-client (1.6.4)
  • Installing babel (2.13.0)
  • Installing comm (0.1.4)
  • Installing debugpy (1.8.0)
  • Installing ipython (8.16.1)
  • Installing json5 (0.9.14)
  • Installing jupyter-server (2.7.3)
  • Installing mpmath (1.3.0)
  • Installing nest-asyncio (1.5.8)
  • Installing numpy (1.26.0)
  • Installing psutil (5.9.5)
  • Installing requests (2.31.0)
  • Updating setuptools (68.2.0 -> 68.2.2)
  • Installing tomli (2.0.1)
  • Installing typing-extensions (4.8.0)
  • Installing async-lru (2.0.4)
  • Installing contourpy (1.1.1)
  • Installing cycler (0.12.1)
  • Installing editorconfig (0.12.3)
  • Installing filelock (3.12.4)
  • Installing fonttools (4.43.1)
  • Installing fsspec (2023.9.2)
  • Installing h11 (0.14.0)
  • Installing ipykernel (6.25.2)
  • Installing jupyter-lsp (2.2.0)
  • Installing jupyterlab-server (2.25.0)
  • Installing kiwisolver (1.4.5)
  • Installing networkx (3.1)
  • Installing notebook-shim (0.2.3)
  • Installing outcome (1.2.0)
  • Installing pillow (10.0.1)
  • Installing pyparsing (3.1.1)
  • Installing pytz (2023.3.post1)
  • Installing setuptools-scm (8.0.4)
  • Installing sortedcontainers (2.4.0)
  • Installing sympy (1.12)
  • Installing tzdata (2023.3)
  • Installing cmake (3.27.6): Pending...
  • Installing ipython-genutils (0.2.0)
  • Installing jsbeautifier (1.14.9)
  • Installing jupyterlab (4.0.7): Pending...
  • Installing jupyterlab-widgets (3.0.9)
  • Installing lit (17.0.2)
  • Installing llvmlite (0.34.0): Failed

  TypeError

  Can't instantiate abstract class IsolatedEnv with abstract methods make_extra_environ, python_executable

  at /opt/homebrew/Cellar/poetry/1.6.1_1/libexec/lib/python3.11/site-packages/poetry/installation/chef.p  • Installing jupyterlab-widgets (3.0.9)
  • Installing lit (17.0.2)
  • Installing llvmlite (0.34.0): Failed

  TypeError

  Can't instantiate abstract class IsolatedEnv with abstract methods make_extra_environ, python_executable

  at /opt/homebrew/Cellar/poetry/1.6.1_1/libexec/lib/python3.11/site-packages/poetry/installation/chef.p  • Installing jupyterlab (4.0.7): Installing...
  • Installing jupyterlab-widgets (3.0.9)
  • Installing lit (17.0.2)
  • Installing llvmlite (0.34.0): Failed

  TypeError

  Can't instantiate abstract class IsolatedEnv with abstract methods make_extra_environ, python_executable

  at /opt/homebrew/Cellar/poetry/1.6.1_1/libexec/lib/python3.11/site-packages/poetry/installation/chef.p  • Installing ipython-genutils (0.2.0)
  • Installing jsbeautifier (1.14.9)
  • Installing jupyterlab (4.0.7): Installing...
  • Installing jupyterlab-widgets (3.0.9)
  • Installing lit (17.0.2)
  • Installing llvmlite (0.34.0): Failed

  TypeError

  Can't instantiate abstract class IsolatedEnv with abstract methods make_extra_environ, python_executable

  at /opt/homebrew/Cellar/poetry/1.6.1_1/libexec/lib/python3.11/site-packages/poetry/installation/chef.p  • Installing cmake (3.27.6): Installing...
  • Installing ipython-genutils (0.2.0)
  • Installing jsbeautifier (1.14.9)
  • Installing jupyterlab (4.0.7): Installing...
  • Installing jupyterlab-widgets (3.0.9)
  • Installing lit (17.0.2)
  • Installing llvmlite (0.34.0): Failed

  TypeError

  Can't instantiate abstract class IsolatedEnv with abstract methods make_extra_environ, python_executable

  at /opt/homebrew/Cellar/poetry/1.6.1_1/libexec/lib/python3.11/site-packages/poetry/installation/chef.p  • Installing jupyterlab-widgets (3.0.9)
  • Installing lit (17.0.2)
  • Installing llvmlite (0.34.0): Failed

  TypeError

  Can't instantiate abstract class IsolatedEnv with abstract methods make_extra_environ, python_executable

  at /opt/homebrew/Cellar/poetry/1.6.1_1/libexec/lib/python3.11/site-packages/poetry/installation/chef.p  • Installing jupyterlab (4.0.7)
  • Installing jupyterlab-widgets (3.0.9)
  • Installing lit (17.0.2)
  • Installing llvmlite (0.34.0): Failed

  TypeError

  Can't instantiate abstract class IsolatedEnv with abstract methods make_extra_environ, python_executable

  at /opt/homebrew/Cellar/poetry/1.6.1_1/libexec/lib/python3.11/site-packages/poetry/installation/chef.p  • Installing ipython-genutils (0.2.0)
  • Installing jsbeautifier (1.14.9)
  • Installing jupyterlab (4.0.7)
  • Installing jupyterlab-widgets (3.0.9)
  • Installing lit (17.0.2)
  • Installing llvmlite (0.34.0): Failed

  TypeError

  Can't instantiate abstract class IsolatedEnv with abstract methods make_extra_environ, python_executable

  at /opt/homebrew/Cellar/poetry/1.6.1_1/libexec/lib/python3.11/site-packages/poetry/installation/chef.p  • Installing cmake (3.27.6)
  • Installing ipython-genutils (0.2.0)
  • Installing jsbeautifier (1.14.9)
  • Installing jupyterlab (4.0.7)
  • Installing jupyterlab-widgets (3.0.9)
  • Installing lit (17.0.2)
  • Installing llvmlite (0.34.0): Failed

  TypeError

  Can't instantiate abstract class IsolatedEnv with abstract methods make_extra_environ, python_executable

  at /opt/homebrew/Cellar/poetry/1.6.1_1/libexec/lib/python3.11/site-packages/poetry/installation/chef.py:109 in _prepare
      105│     ) -> Path:
      106│         from subprocess import CalledProcessError
      107│ 
      108│         with ephemeral_environment(self._env.python) as venv:
    → 109│             env = IsolatedEnv(venv, self._pool)
      110│             builder = ProjectBuilder(
      111│                 directory,
      112│                 python_executable=env.executable,
      113│                 scripts_dir=env.scripts_dir,

  • Installing matplotlib (3.8.0)
  • Installing mypy-extensions (1.0.0)
  • Installing pandas (2.1.1)
  • Installing patsy (0.5.3)
  • Installing pysocks (1.7.1)
  • Installing qtpy (2.4.0)
  • Installing regex (2023.10.3)
  • Installing scipy (1.11.3)
  • Installing torch (2.1.0)
  • Installing trio (0.22.2)
  • Installing widgetsnbextension (4.0.9)
  • Installing wsproto (1.2.0)

What did you expect to happen?

Successful installation, or at least not an issue with Poetry itself. But this is an issue with Brew’s versions of Poetry and python-build not being compatible. See this thread for more info. The solution in python-poetry/poetry#8458 (comment) is to downgrade python-build from 1.0.3 (current at time of writing) to 0.10.0 by reinstalling it from an old formula.

Step-by-step reproduction instructions (by running brew commands)

1. `brew install poetry pyenv`
1. `pyenv install 3.10`
1. `mkdir Project && cd Project && pyenv local 3.10 && poetry env use 3.10 && poetry add openai-whisper`

`poetry add openai-whisper` will fail due to the version of `python-build` installed with Poetry being incompatible with it.
@rben01 rben01 added the bug Reproducible Homebrew/homebrew-core bug label Oct 13, 2023
@github-actions github-actions bot added the outdated PR was locked due to age label Nov 14, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Reproducible Homebrew/homebrew-core bug outdated PR was locked due to age
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant