Re: Failed: phase compiling: matplotlib-py37-1.5.3-1 failed

Stephen Kawalko <[email protected]>
Newsgroups gmane.os.apple.fink.beginners
Message-ID <[email protected]>
> On Oct 4, 2020, at 7:35 PM, Hanspeter Niederstrasser <[email protected]> wrote:
> 
> On 10/4/20 5:58 PM, Hanspeter Niederstrasser wrote:
>> On 10/4/20 5:18 PM, Stephen Kawalko wrote:
>>> I encountered a 2nd problem trying to install matplotlib-py37. This time it’s with matplotlib itself instead of a dependancy. I have the current version of fink and Xcode installed. FWIW, matplotlib-py27 installs without a hitch.
>>> 
>>> [user@computer]$ fink install matplotlib-py37
>>> Information about 10342 packages read in 1 seconds.
>>> The following package will be installed or updated:
>>>   matplotlib-py37
>>> Setting runtime build-lock...
>>> dpkg-deb -b /opt/sw/src/fink.build/root-fink-buildlock-matplotlib-py37-1.5.3-1 /opt/sw/src/fink.build
>>> dpkg-deb: building package `fink-buildlock-matplotlib-py37-1.5.3-1' in `/opt/sw/src/fink.build/fink-buildlock-matplotlib-py37-1.5.3-1_2020.10.04-14.45.22_darwin-x86_64.deb'. 
>>> Installing build-lock package...
>>> /opt/sw/bin/dpkg-lockwait -i /opt/sw/src/fink.build/fink-buildlock-matplotlib-py37-1.5.3-1_2020.10.04-14.45.22_darwin-x86_64.deb 
>>> Selecting previously deselected package fink-buildlock-matplotlib-py37-1.5.3-1.
>>> (Reading database ... 290970 files and directories currently installed.)
>>> Unpacking fink-buildlock-matplotlib-py37-1.5.3-1 (from .../fink-buildlock-matplotlib-py37-1.5.3-1_2020.10.04-14.45.22_darwin-x86_64.deb) ...
>>> Setting up fink-buildlock-matplotlib-py37-1.5.3-1 (2020.10.04-14.45.22) ...
>>> 
>>> sudo -u fink-bld [ENV] sh -c /tmp/fink.HmuD0
>>> env LANG=C LC_ALL=C /opt/sw/bin/tar  --no-same-owner --no-same-permissions -xf /opt/sw/src/matplotlib-1.5.3.tar.gz
>>> sudo -u fink-bld [ENV] sh -c /tmp/fink.z8CT_
>>> [ -r /opt/sw/fink/dists/stable/main/finkinfo/sci/matplotlib-py.patch ]
>>> sudo -u fink-bld [ENV] sh -c /tmp/fink.mnb8D
>>> sed 's|@PREFIX@|/opt/sw|g' < /opt/sw/fink/dists/stable/main/finkinfo/sci/matplotlib-py.patch | patch -p1
>>> patching file lib/matplotlib/font_manager.py
>>> patching file setup.cfg.template
>>> patching file setup.py
>>> patching file setupext.py
>>> Hunk #1 succeeded at 154 (offset 4 lines).
>>> Hunk #2 succeeded at 1011 (offset 8 lines).
>>> patching file src/qhull_wrap.c
>>> sudo -u fink-bld [ENV] sh -c /tmp/fink.TUqwn
>>> /tmp/fink.uLeqR
>>> #!/bin/sh -ev
>>>   if [ 37 -ge 30 ]; then
>>>     egrep -v '^gtk|^wxagg|^cairo' setup.cfg.template > setup.cfg
>>>   else
>>>     cp -a setup.cfg{.template,}
>>>   fi
>>>   export PKG_CONFIG_PATH="/opt/sw/lib/glib-2.0/pkgconfig-strict:$PKG_CONFIG_PATH"
>>>   /opt/sw/bin/python3.7 setup.py build
>>> ============================================================================ 
>>> Edit setup.cfg to change the build options
>>> 
>>> BUILDING MATPLOTLIB
>>>              matplotlib: yes [1.5.3]
>>>                  python: yes [3.7.8 (default, Jul 31 2020, 19:28:16)  [Clang
>>>                          11.0.3 (clang-1103.0.32.62)]]
>>>                platform: yes [darwin]
>>> 
>>> REQUIRED DEPENDENCIES AND EXTENSIONS
>>>                   numpy: yes [version 1.14.5]
>>>                dateutil: yes [using dateutil version 2.7.3]
>>>                    pytz: yes [using pytz version 2020.1]
>>>                  cycler: yes [using cycler version 0.10.0]
>>>                 tornado: yes [using tornado version 5.1]
>>>               pyparsing: yes [using pyparsing version 2.4.5]
>>>                  libagg: yes [pkg-config information for 'libagg' could not
>>>                          be found. Using local copy.]
>>>                freetype: yes [version 2.6.3]
>>>                     png: yes [version 1.6.37]
>>>                   qhull: yes [Using system Qhull (version unknown, no pkg-
>>>                          config info)]
>>> 
>>> OPTIONAL SUBPACKAGES
>>>             sample_data: yes [installing]
>>>                toolkits: yes [installing]
>>>                   tests: yes [nose 0.11.1 or later is required to run the
>>>                          matplotlib test suite. Please install it with pip or
>>>                          your preferred tool to run the test suite / using
>>>                          unittest.mock]
>>>          toolkits_tests: yes [nose 0.11.1 or later is required to run the
>>>                          matplotlib test suite. Please install it with pip or
>>>                          your preferred tool to run the test suite / using
>>>                          unittest.mock]
>>> 
>>> OPTIONAL BACKEND EXTENSIONS
>>>                  macosx: yes [installing, darwin]
>>> objc[84572]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
>>> objc[84572]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
>>>                  qt5agg: no  [Check timed out]
>>> objc[84590]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
>>> objc[84590]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.
>>>                  qt4agg: no  [Check timed out]
>>>                 gtk3agg: no  [Requires pygobject to be installed.]
>>>               gtk3cairo: no  [Requires cairocffi or pycairo to be installed.]
>>>                  gtkagg: no  [Requires pygtk]
>>>                   tkagg: yes [installing; run-time loading from Python Tcl /
>>>                          Tk]
>>>                   wxagg: no  [requires wxPython]
>>>                     gtk: no  [Requires pygtk]
>>>                     agg: yes [installing]
>>>                   cairo: no  [cairocffi or pycairo not found]
>>>               windowing: no  [Microsoft Windows only]
>>> 
>>> OPTIONAL LATEX DEPENDENCIES
>>>                  dvipng: yes [version 1.14]
>>>             ghostscript: yes [version 9.14]
>>>                   latex: yes [version 3.14159265]
>>>                 pdftops: yes [version 0.26.2]
>>> 
>>> OPTIONAL PACKAGE DATA
>>>                    dlls: no  [skipping due to configuration]
>>> 
>>> ============================================================================ 
>>>                          * The following required packages can not be built:
>>>                          * qt5agg
>> On 10.13, I'm getting the same failure for py27, py36, and py37. Both built for me last year, suggesting that this is a missing declared dependency that got uninstalled at some point.
>> Since you have a working matplotlib-py27, an option is to run the command `fink list -i py37 py27` to show which pythonmods you have installed for py27 but are missing for py37, and see if installing those fixes the py37 build.
>> How does the above diagnostic output look for matplotlib-py27? Do any of the agg sections look different?
> 
> The quick solution is to disable the qt5agg backend while this is sorted out, since it seems to be currently unbuildable.


There are several pythonmods that are installed for py27 that do not seem to have versions for py37.

I’m a novice when it comes to fink. How does one go about disabling gt5agg when building matplotlib-py37.

Here’s the agg section from the build of matplotlib-py27

============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
            matplotlib: yes [1.5.3]
                python: yes [2.7.18 (default, Jul 31 2020, 19:24:10)  [GCC
                        4.2.1 Compatible Apple LLVM 11.0.3
                        (clang-1103.0.32.62)]]
              platform: yes [darwin]

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [version 1.14.5]
              dateutil: yes [using dateutil version 2.7.3]
                  pytz: yes [using pytz version 2020.1]
                cycler: yes [using cycler version 0.10.0]
               tornado: yes [using tornado version 5.1]
             pyparsing: yes [using pyparsing version 2.4.5]
                libagg: yes [pkg-config information for 'libagg' could not
                        be found. Using local copy.]
              freetype: yes [version 2.6.3]
                   png: yes [version 1.6.37]
                 qhull: yes [Using system Qhull (version unknown, no pkg-
                        config info)]

OPTIONAL SUBPACKAGES
           sample_data: yes [installing]
              toolkits: yes [installing]
                 tests: yes [using nose version 1.3.7 / mock is required to
                        run the matplotlib test suite. Please install it
                        with pip or your preferred tool to run the test
                        suite]
        toolkits_tests: yes [using nose version 1.3.7 / mock is required to
                        run the matplotlib test suite. Please install it
                        with pip or your preferred tool to run the test
                        suite]

OPTIONAL BACKEND EXTENSIONS
                macosx: yes [installing, darwin]
                qt5agg: yes [installing, Qt: 5.7.1, PyQt: 5.7.1]
                qt4agg: no  [Check timed out]
               gtk3agg: no  [Requires pygobject to be installed.]
             gtk3cairo: no  [Requires pygobject to be installed.]
                gtkagg: yes [installing, Gtk: 2.18.9 pygtk: 2.17.0]
                 tkagg: yes [installing; run-time loading from Python Tcl /
                        Tk]
                 wxagg: yes [installing, version 2.8.12.1]
                   gtk: yes [installing, Gtk: 2.18.9 pygtk: 2.17.0]
                   agg: yes [installing]
                 cairo: yes [installing, pycairo version 1.10.0]
             windowing: no  [Microsoft Windows only]

OPTIONAL LATEX DEPENDENCIES
                dvipng: yes [version 1.14]
           ghostscript: yes [version 9.14]
                 latex: yes [version 3.14159265]
               pdftops: yes [version 0.26.2]

OPTIONAL PACKAGE DATA
                  dlls: no  [skipping due to configuration]

Stephen Kawalko

_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.