Bug 205294

Summary: [PATCH] x11-toolkits/py-wxPython30: Fail embedding_in_wx5.py - gcc48/libgfortran.so.3 not found
Product: Ports & Packages Reporter: Andrey Fesenko <andrey>
Component: Individual Port(s)Assignee: freebsd-python mailing list <python>
Status: New ---    
Severity: Affects Only Me CC: andrey, w.schwarzenfeld
Priority: --- Keywords: patch
Version: LatestFlags: bugzilla: maintainer-feedback? (python)
Hardware: Any   
OS: Any   
Bug Depends on: 208120    
Bug Blocks:    
Attachments:
Description Flags
patch-Makefile
none
poudriere bulk -t log none

Description Andrey Fesenko 2015-12-13 17:37:46 UTC
Created attachment 164197 [details]
patch-Makefile

environment for reproduction:

% python -c "import matplotlib as m; print(m.__version__);print(m.__path__[0]);"
1.4.3
/usr/local/lib/python2.7/site-packages/matplotlib
% python -c "import numpy as m; print(m.__version__); print(m.__path__[0]);"
1.10.1
/usr/local/lib/python2.7/site-packages/numpy
% python -c "import wx as m; print(m.__version__); print(m.__path__[0]);"
3.0.2.0
/usr/local/lib/python2.7/site-packages/wx-3.0-gtk2/wx


% python /usr/local/share/examples/py27-matplotlib/user_interfaces/embedding_in_wx5.py
Traceback (most recent call last):
  File "/usr/local/share/examples/py27-matplotlib/user_interfaces/embedding_in_wx5.py", line 7, in <module>
    import matplotlib as mpl
  File "/usr/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 180, in <module>
    from matplotlib.cbook import is_string_like
  File "/usr/local/lib/python2.7/site-packages/matplotlib/cbook.py", line 33, in <module>
    import numpy as np
  File "/usr/local/lib/python2.7/site-packages/numpy/__init__.py", line 180, in <module>
    from . import add_newdocs
  File "/usr/local/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/__init__.py", line 8, in <module>
    from .type_check import *
  File "/usr/local/lib/python2.7/site-packages/numpy/lib/type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "/usr/local/lib/python2.7/site-packages/numpy/core/__init__.py", line 14, in <module>
    from . import multiarray
ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc48/libgfortran.so.3 not found


user_interfaces/embedding_in_wx2-4.py - work fine

This fixed add
/etc/libmap.conf
[/usr/local/lib/python2.7/site-packages/wx-3.0-gtk2/]
libgcc_s.so.1   gcc48/libgcc_s.so.1

or this patch (add fortran build dependency)
Comment 1 Andrey Fesenko 2015-12-13 17:40:46 UTC
Created attachment 164198 [details]
poudriere bulk -t log
Comment 2 Walter Schwarzenfeld freebsd_triage 2019-02-25 14:24:07 UTC
ping!