[MacPorts] #62345: Not prompted to agree to xcode license when installing py39-matplotlib (was: Error installing py39-matplotlib or one of its dependencies (possibly qhull) on new machine)

MacPorts noreply at macports.org
Mon Feb 22 05:10:24 UTC 2021


#62345: Not prompted to agree to xcode license when installing py39-matplotlib
-----------------------------+----------------------
  Reporter:  nathanielvirgo  |      Owner:  (none)
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.6.4
Resolution:                  |   Keywords:  catalina
      Port:                  |
-----------------------------+----------------------
Changes (by nathanielvirgo):

 * port:  qhull, maybe - it's not clear =>


Old description:

> I have installed macports on a new* machine running macos 10.15.7
> Catalina. I am trying to install py39-matplotlib and its dependencies
> (which of course include Python and numpy). I am getting the error
> message below.
>
> The error message does not give a lot of information. I assume there is a
> log file somewhere that contains the real error, but this is not noted in
> the error message itself and I don't know where to find it. I am happy to
> update this if someone can tell me where to look.
>
> After installing the macos command line tools, XCode and macports, I did
>
> {{{
>  % sudo port selfupdate
> }}}
>
> which told me macports was already at the latest version, and then I
> entered
>
> {{{
>  % sudo port install py39-matplotlib
> }}}
>
> I will attach the full output of this command as a file. The last few
> lines were
>
> {{{
> --->  Fetching archive for qhull
> --->  Attempting to fetch qhull-2020.2_0.darwin_19.x86_64.tbz2 from
> https://ywg.ca.packages.macports.org/mirror/macports/packages/qhull
> --->  Attempting to fetch qhull-2020.2_0.darwin_19.x86_64.tbz2.rmd160
> from https://ywg.ca.packages.macports.org/mirror/macports/packages/qhull
> --->  Installing qhull @2020.2_0
> --->  Activating qhull @2020.2_0
> --->  Cleaning qhull
> Error: Follow https://guide.macports.org/#project.tickets to report a
> bug.
> Error: Processing of port py39-matplotlib failed
> --->  Some of the ports you installed have notes:
>   OpenBLAS has the following notes:
>     This version is built based on a base architecture for convenience,
>     which may not be optimized for your system. To build a version
>     customized for your machine, use the +native variant
>   tcl has the following notes:
>     The Sqlite3 Tcl package is now being provided by the sqlite3-tcl
> port:
>     sudo port install sqlite3-tcl
> }}}
>
> so I guess the problem might be with the qhull port. Running the command
> a second time only gives this output
>
> {{{
> % sudo port install py39-matplotlib
> --->  Computing dependencies for py39-matplotlibWarning: All compilers
> are either blacklisted or unavailable; defaulting to first fallback
> option
> Warning: All compilers are either blacklisted or unavailable; defaulting
> to first fallback option
> Warning: All compilers are either blacklisted or unavailable; defaulting
> to first fallback option
> Warning: All compilers are either blacklisted or unavailable; defaulting
> to first fallback option
> Warning: All compilers are either blacklisted or unavailable; defaulting
> to first fallback option
> Warning: All compilers are either blacklisted or unavailable; defaulting
> to first fallback option
> Warning: All compilers are either blacklisted or unavailable; defaulting
> to first fallback option
> Warning: All compilers are either blacklisted or unavailable; defaulting
> to first fallback option
> Warning: All compilers are either blacklisted or unavailable; defaulting
> to first fallback option
> Warning: All compilers are either blacklisted or unavailable; defaulting
> to first fallback option
> Warning: All compilers are either blacklisted or unavailable; defaulting
> to first fallback option
> Warning: All compilers are either blacklisted or unavailable; defaulting
> to first fallback option
> Warning: All compilers are either blacklisted or unavailable; defaulting
> to first fallback option
>
> The following dependencies will be installed:
>  Xft2
>  brotli
>  cairo
>  clang-9.0
>  cmake
>  curl
>  fftw-3
>  fontconfig
>  freetype
>  gdbm
>  lcms2
>  libomp
>  libpsl
>  libuv
>  llvm-9.0
>  openjpeg
>  openssl
>  ossp-uuid
>  perl5
>  perl5.28
>  py39-Pillow
>  py39-cairo
>  py39-cycler
>  py39-cython
>  py39-dateutil
>  py39-kiwisolver
>  py39-nose
>  py39-numpy
>  py39-olefile
>  py39-parsing
>  py39-setuptools
>  py39-six
>  py39-tkinter
>  py39-tornado
>  py39-tz
>  python39
>  tk
>  webp
>  xar
>  xorg-libX11
>  xorg-libXScrnSaver
>  xorg-libXext
>  xorg-libxcb
>  xorg-xcb-util
>  xrender
> Continue? [Y/n]: y
> Error: Follow https://guide.macports.org/#project.tickets to report a
> bug.
> Error: Processing of port py39-matplotlib failed
> }}}
>
> This output is the same regardless of running `sudo port clean qhull` or
> `sudo port clean py39-matplotlib`.
>
> I am submitting this ticket because the error message tells me to.
>

> [*] the machine is a 2019 Intel Mac but has only been used for a few
> weeks and does't have much installed.

New description:

 I had a confusing issue when trying to install `py39-matplotlib` and its
 dependencies on a fresh macports install on a new machine. You can see my
 report below, which was written when I didn't understand the reason for
 the issue.

 The issue was revealed when running `sudo port install python39` - in that
 case I was prompted to agree to the xcode user license, and everything
 worked. However, I had originally tried to run `sudo port install
 py39-matplotlib` instead, since I knew I would want to use matplotlib and
 numpy as well as Python. In that case I wasn't prompted to agree to the
 license, and instead got a mysterious error message that told me to submit
 a report without revealing what the problem was.

 So the issue is about error reporting - the xcode license error should be
 displayed when trying to install Python as a dependency, rather than just
 when trying to install the Python port directly.

 ---

 Here is my original report. For the resolution see my comment below.

 I have installed macports on a new* machine running macos 10.15.7
 Catalina. I am trying to install py39-matplotlib and its dependencies
 (which of course include Python and numpy). I am getting the error message
 below.

 The error message does not give a lot of information. I assume there is a
 log file somewhere that contains the real error, but this is not noted in
 the error message itself and I don't know where to find it. I am happy to
 update this if someone can tell me where to look.

 After installing the macos command line tools, XCode and macports, I did

 {{{
  % sudo port selfupdate
 }}}

 which told me macports was already at the latest version, and then I
 entered

 {{{
  % sudo port install py39-matplotlib
 }}}

 I will attach the full output of this command as a file. The last few
 lines were

 {{{
 --->  Fetching archive for qhull
 --->  Attempting to fetch qhull-2020.2_0.darwin_19.x86_64.tbz2 from
 https://ywg.ca.packages.macports.org/mirror/macports/packages/qhull
 --->  Attempting to fetch qhull-2020.2_0.darwin_19.x86_64.tbz2.rmd160 from
 https://ywg.ca.packages.macports.org/mirror/macports/packages/qhull
 --->  Installing qhull @2020.2_0
 --->  Activating qhull @2020.2_0
 --->  Cleaning qhull
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port py39-matplotlib failed
 --->  Some of the ports you installed have notes:
   OpenBLAS has the following notes:
     This version is built based on a base architecture for convenience,
     which may not be optimized for your system. To build a version
     customized for your machine, use the +native variant
   tcl has the following notes:
     The Sqlite3 Tcl package is now being provided by the sqlite3-tcl port:
     sudo port install sqlite3-tcl
 }}}

 so I guess the problem might be with the qhull port. Running the command a
 second time only gives this output

 {{{
 % sudo port install py39-matplotlib
 --->  Computing dependencies for py39-matplotlibWarning: All compilers are
 either blacklisted or unavailable; defaulting to first fallback option
 Warning: All compilers are either blacklisted or unavailable; defaulting
 to first fallback option
 Warning: All compilers are either blacklisted or unavailable; defaulting
 to first fallback option
 Warning: All compilers are either blacklisted or unavailable; defaulting
 to first fallback option
 Warning: All compilers are either blacklisted or unavailable; defaulting
 to first fallback option
 Warning: All compilers are either blacklisted or unavailable; defaulting
 to first fallback option
 Warning: All compilers are either blacklisted or unavailable; defaulting
 to first fallback option
 Warning: All compilers are either blacklisted or unavailable; defaulting
 to first fallback option
 Warning: All compilers are either blacklisted or unavailable; defaulting
 to first fallback option
 Warning: All compilers are either blacklisted or unavailable; defaulting
 to first fallback option
 Warning: All compilers are either blacklisted or unavailable; defaulting
 to first fallback option
 Warning: All compilers are either blacklisted or unavailable; defaulting
 to first fallback option
 Warning: All compilers are either blacklisted or unavailable; defaulting
 to first fallback option

 The following dependencies will be installed:
  Xft2
  brotli
  cairo
  clang-9.0
  cmake
  curl
  fftw-3
  fontconfig
  freetype
  gdbm
  lcms2
  libomp
  libpsl
  libuv
  llvm-9.0
  openjpeg
  openssl
  ossp-uuid
  perl5
  perl5.28
  py39-Pillow
  py39-cairo
  py39-cycler
  py39-cython
  py39-dateutil
  py39-kiwisolver
  py39-nose
  py39-numpy
  py39-olefile
  py39-parsing
  py39-setuptools
  py39-six
  py39-tkinter
  py39-tornado
  py39-tz
  python39
  tk
  webp
  xar
  xorg-libX11
  xorg-libXScrnSaver
  xorg-libXext
  xorg-libxcb
  xorg-xcb-util
  xrender
 Continue? [Y/n]: y
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port py39-matplotlib failed
 }}}

 This output is the same regardless of running `sudo port clean qhull` or
 `sudo port clean py39-matplotlib`.

 I am submitting this ticket because the error message tells me to.


 [*] the machine is a 2019 Intel Mac but has only been used for a few weeks
 and does't have much installed.

--

-- 
Ticket URL: <https://trac.macports.org/ticket/62345#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list