Created attachment 191296 [details] new port math/py-seaborn New port for the seaborn project to create informative statistical data visualisation graphs.
Hi Shane, Thank you for your submission. This example https://seaborn.pydata.org/examples/multiple_regression.html fails: Traceback (most recent call last): File "x.py", line 1, in <module> import seaborn as sns File "/usr/local/lib/python2.7/site-packages/seaborn/__init__.py", line 2, in <module> import matplotlib as mpl File "/usr/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 128, in <module> from matplotlib.rcsetup import defaultParams, validate_backend, cycler File "/usr/local/lib/python2.7/site-packages/matplotlib/rcsetup.py", line 29, in <module> from matplotlib.fontconfig_pattern import parse_fontconfig_pattern File "/usr/local/lib/python2.7/site-packages/matplotlib/fontconfig_pattern.py", line 32, in <module> from backports.functools_lru_cache import lru_cache ImportError: No module named functools_lru_cache Please also note that patsy isn't used in the project. Yuri
(In reply to Yuri Victorovich from comment #1) That error is coming from matplotlib not seaborn, mpl is importing lru_cache which is in devel/py-backports.functools_lru_cache - which should be a dependency of py27-matplotlib. As I already had that installed I didn't get that error. I put patsy in as it is listed in seaborn's requirements.txt. It doesn't call it directly but it does pass a patsy formula to statsmodel. See regression.py line 1043. Which has now been removed from master so won't be in the next release. From the 36 gallery graphs I get six fail in py27 and 10 fail in py36, three use violinplot which seg faults for me. So there is room for improvement but most of it appears to work.
Dependency devel/py-backports.functools_lru_cache was added to matplotlib in r463931.
Committed. Thank you for your contribution!
A commit references this bug: Author: yuri Date: Fri Mar 9 07:05:03 UTC 2018 New revision: 463934 URL: https://svnweb.freebsd.org/changeset/ports/463934 Log: New port: math/py-seaborn: Statistical data visualization PR: 226441 Submitted by: Shane <FreeBSD@ShaneWare.Biz> Approved by: tcberner (mentor, implicit) Changes: head/math/Makefile head/math/py-seaborn/ head/math/py-seaborn/Makefile head/math/py-seaborn/distinfo head/math/py-seaborn/pkg-descr