travis: macos runs on python2.7 #17848

issue MarcoFalke openend this issue on January 2, 2020
  1. MarcoFalke commented at 2:33 pm on January 2, 2020: member

    Bitcoin Core requires python 3.5 at least. However, due to travis upsteam changes in the image, the installation of python3 no longer succeeds with brew. See e.g. https://travis-ci.org/bitcoin/bitcoin/jobs/631373413#L252

    This should be fixed somehow.

    Relevant copy of the log:

     0==> Upgrading python3 
     1
     2==> Downloading https://homebrew.bintray.com/bottles/python-3.7.6_1.mojave.bottl
     3
     4==> Downloading from https://akamai.bintray.com/64/643d627c2b4fc03a3286c397d2992
     5
     6######################################################################## 100.0%
     7
     8==> Pouring python-3.7.6_1.mojave.bottle.tar.gz
     9
    10Error: The `brew link` step did not complete successfully
    11
    12The formula built, but is not symlinked into /usr/local
    13
    14Could not symlink Frameworks/Python.framework/Headers
    15
    16Target /usr/local/Frameworks/Python.framework/Headers
    17
    18is a symlink belonging to python@2. You can unlink it:
    19
    20  brew unlink python@2
    21
    22To force the link and overwrite all conflicting files:
    23
    24  brew link --overwrite python
    25
    26To list all files that would be deleted:
    27
    28  brew link --overwrite --dry-run python
    29
    30Possible conflicting files are:
    31
    32/usr/local/Frameworks/Python.framework/Headers -> /usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Headers
    33
    34/usr/local/Frameworks/Python.framework/Python -> /usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Python
    35
    36/usr/local/Frameworks/Python.framework/Resources -> /usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Resources
    37
    38/usr/local/Frameworks/Python.framework/Versions/Current -> /usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/Current
    39
    40==> /usr/local/Cellar/python/3.7.6_1/bin/python3 -s setup.py --no-user-cfg insta
    41
    42==> /usr/local/Cellar/python/3.7.6_1/bin/python3 -s setup.py --no-user-cfg insta
    43
    44==> /usr/local/Cellar/python/3.7.6_1/bin/python3 -s setup.py --no-user-cfg insta
    45
    46==> Caveats
    47
    48Python has been installed as
    49
    50  /usr/local/bin/python3
    51
    52Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
    53
    54`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
    55
    56  /usr/local/opt/python/libexec/bin
    57
    58If you need Homebrew's Python 2.7 run
    59
    60  brew install python@2
    61
    62You can install Python packages with
    63
    64  pip3 install <package>
    65
    66They will install into the site-package directory
    67
    68  /usr/local/lib/python3.7/site-packages
    69
    70See: https://docs.brew.sh/Homebrew-and-Python
    71
    72==> Summary
    73
    74🍺  /usr/local/Cellar/python/3.7.6_1: 3,977 files, 60.8MB
    75
    76Removing: /usr/local/Cellar/python/3.7.5... (4,049 files, 61.9MB)
    77
    78Removing: /Users/travis/Library/Caches/Homebrew/python--3.7.5.mojave.bottle.tar.gz... (14.8MB)
    
  2. MarcoFalke added the label Bug on Jan 2, 2020
  3. MarcoFalke added the label Tests on Jan 2, 2020
  4. MarcoFalke added the label macOS on Jan 2, 2020
  5. hebasto commented at 4:01 pm on January 2, 2020: member

    However, due to travis upsteam changes in the image, the installation of python3 no longer succeeds with brew.

    It happened on appr. Dec. 23-24. Cannot find the exact “travis upsteam changes” though.

  6. MarcoFalke closed this on Jan 2, 2020

  7. sidhujag referenced this in commit ba29a3ac4e on Jan 4, 2020
  8. MarcoFalke referenced this in commit f3a91ab0ed on Mar 26, 2020
  9. sidhujag referenced this in commit 4f203555d1 on Nov 10, 2020
  10. DrahtBot locked this on Feb 15, 2022
  11. PastaPastaPasta referenced this in commit a9f013eee5 on Jul 17, 2022
  12. PastaPastaPasta referenced this in commit c550648bd0 on Aug 30, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me