Bug 226441 - [new port] math/py-seaborn: create informative statistical data visualisation graphs
Summary: [new port] math/py-seaborn: create informative statistical data visualisation...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-08 02:50 UTC by Shane
Modified: 2018-03-09 07:05 UTC (History)
1 user (show)

See Also:
FreeBSD: maintainer-feedback+


Attachments
new port math/py-seaborn (1.96 KB, text/plain)
2018-03-08 02:50 UTC, Shane
FreeBSD: maintainer-approval+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shane 2018-03-08 02:50:17 UTC
Created attachment 191296 [details]
new port math/py-seaborn

New port for the seaborn project to create informative statistical data visualisation graphs.
Comment 1 Yuri Victorovich freebsd_committer freebsd_triage 2018-03-08 04:34:38 UTC
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
Comment 2 Shane 2018-03-09 03:50:56 UTC
(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.
Comment 3 Yuri Victorovich freebsd_committer freebsd_triage 2018-03-09 06:31:17 UTC
Dependency devel/py-backports.functools_lru_cache was added to matplotlib in r463931.
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2018-03-09 07:05:08 UTC
Committed.
Thank you for your contribution!
Comment 5 commit-hook freebsd_committer freebsd_triage 2018-03-09 07:05:38 UTC
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