Homebrew-core: Error upgrading Python from to 3.7.4 on MacOS 10.15 Beta (19A512f)

Created on 23 Jul 2019  ·  2Comments  ·  Source: Homebrew/homebrew-core

  • [x] are reporting a bug others will be able to reproduce and not asking a question or requesting software. If you're not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh. To get software added or changed in Homebrew please file a Pull Request
  • [x] have a problem with brew install (or upgrade, reinstall) a single, Homebrew/homebrew-core formula (not cask) on macOS? If it's a general brew problem please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new/choose. If it's a Linux problem please file this issue at https://github.com/Homebrew/linuxbrew-core/issues/new/choose. If it's a brew cask problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.
  • [x] ran brew update and can still reproduce the problem?
  • [x] ran brew doctor, fixed all issues and can still reproduce the problem?
  • [x] ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?
  • [x] if brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?

To help us debug your issue please explain:

  • What you were trying to do (and why)
    brew upgrade

  • What happened (include command output)
    The upgrading process failed to build Python:
    ```❯ brew upgrade
    Warning: You are using macOS 10.15.
    We do not provide support for this pre-release version.
    You will encounter build failures with some formulae.
    Please create pull requests instead of asking for help on Homebrew's GitHub,
    Discourse, Twitter or IRC. You are responsible for resolving any issues you
    experience, as you are running this pre-release version.

==> Upgrading 5 outdated packages:
libheif 1.4.0 -> 1.4.0_1, python 3.7.3 -> 3.7.4, glib 2.60.4_1 -> 2.60.5, imagemagick 7.0.8-50 -> 7.0.8-53, glances 3.1.0 -> 3.1.1
==> Upgrading libheif
==> Installing dependencies for libheif: python and glib
==> Installing libheif dependency: python
Warning: Building python from source:
The bottle needs the Apple Command Line Tools to be installed.
You can install them, if desired, with:
xcode-select --install

==> Downloading https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tar.xz
Already downloaded: /Users/tildo/Library/Caches/Homebrew/downloads/b8fecb7c903832c1ad2499469b56fb1b77b6e8d29ba3966a904d9942cb602e8c--Python-3.7.4.tar.xz
==> ./configure --prefix=/usr/local/Cellar/python/3.7.4 --enable-ipv6 --datarootdir=/usr/local/Cellar/python/3.7.4/
==> make
Last 15 lines from /Users/tildo/Library/Logs/Homebrew/python/02.make:
Python.framework/Versions/3.7/Resources/Info.plist
ln -fsn 3.7 Python.framework/Versions/Current
ln -fsn Versions/Current/Python Python.framework/Python
ln -fsn Versions/Current/Resources Python.framework/Resources
clang -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-stack_size,1000000 -framework CoreFoundation Python.framework/Versions/3.7/Python -o python.exe Programs/python.o -ldl -framework CoreFoundation
clang -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -Wl,-stack_size,1000000 -framework CoreFoundation Python.framework/Versions/3.7/Python -o Programs/_testembed Programs/_testembed.o -ldl -framework CoreFoundation
DYLD_FRAMEWORK_PATH=/private/tmp/python-20190723-30500-1qx24t9/Python-3.7.4 ./python.exe -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
/bin/sh: line 1: 38383 Segmentation fault: 11 DYLD_FRAMEWORK_PATH=/private/tmp/python-20190723-30500-1qx24t9/Python-3.7.4 ./python.exe -E -S -m sysconfig --generate-posix-vars
generate-posix-vars failed
make: * [pybuilddir.txt] Error 1

Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help:
Python formula does not include TK - python uses default Apple TK 8.5 which causes bugs/crashes https://github.com/Homebrew/homebrew-core/issues/41338

Error: You are using macOS 10.15.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience, as you are running this pre-release version.

==> Upgrading 4 dependents:
glances 3.1.0 -> 3.1.1, glib 2.60.4_1 -> 2.60.5, imagemagick 7.0.8-50 -> 7.0.8-53, libheif 1.4.0 -> 1.4.0_1
==> Upgrading glances
==> Installing dependencies for glances: python
==> Upgrading glib
==> Installing dependencies for glib: python
==> Upgrading imagemagick
==> Installing dependencies for imagemagick: python, glib and libheif
==> Upgrading libheif
==> Installing dependencies for libheif: python and glib
Error: Not reinstalling 1 broken and outdated, but pinned dependent:
libheif 1.4.0_1

- What you expected to happen
  I expected to have all formula updated, including **Python**.

- Step-by-step reproduction instructions (by running `brew install` commands)
  `brew upgrade python`

### brew config

❯ brew config
HOMEBREW_VERSION: 2.1.8
ORIGIN: https://github.com/Homebrew/brew
HEAD: 549a40bedb32171912a449d8d0e7bcae02d5b432
Last commit: 17 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: afd1f699d17314a985ac50121b26df519cf1e4a5
Core tap last commit: 18 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_GITHUB_API_TOKEN: set
CPU: octa-core 64-bit skylake
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
Clang: 11.0 build 1100
Git: 2.22.0 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 10.15-x86_64
CLT: N/A
Xcode: 11.0 => /Applications/Xcode-beta.app/Contents/Developer

### brew gist logs

❯ brew gist-logs python
Error: You are using macOS 10.15.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience, as you are running this pre-release version.

### brew doctor

❯ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You are using macOS 10.15.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience, as you are running this pre-release version.

Warning: Ruby version 2.6.3 is unsupported on 10.15. Homebrew
is developed and tested on Ruby 2.3.7, and may not work correctly
on other Rubies. Patches are accepted as long as they don't cause breakage
on supported Rubies.
```

outdated

Most helpful comment

I've noticed that more people are interested in a solution for this issue, so I'm sharing a solution that worked for me.

Credit: Dmitry Chupahin

  • delete CommandLineTools:
    rm -rf /Library/Developer/CommandLineTools
  • reinstall it:
    $ xcode-select --install

You should be able to upgrade Python after it.

All 2 comments

Do not report this issue to Homebrew/brew or Homebrew/core!

Warning: You are using macOS 10.15.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience, as you are running this pre-release version.

Thanks for the report. We do not provide support for pre-release versions, including opening issues. If you can open a pull request that fixes this issue you are experiencing (as you were requested), we would definitely be willing to review it.

I've noticed that more people are interested in a solution for this issue, so I'm sharing a solution that worked for me.

Credit: Dmitry Chupahin

  • delete CommandLineTools:
    rm -rf /Library/Developer/CommandLineTools
  • reinstall it:
    $ xcode-select --install

You should be able to upgrade Python after it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dredmorbius picture dredmorbius  ·  3Comments

Thirudhas picture Thirudhas  ·  4Comments

jakepetroules picture jakepetroules  ·  3Comments

xeoneux picture xeoneux  ·  3Comments

bantl23 picture bantl23  ·  3Comments