{"action":"created","issue":{"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/357","repository_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues","labels_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/357/comments","events_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/357/events","html_url":"https://github.com/ContinuumIO/anaconda-issues/issues/357","id":88897634,"number":357,"title":"mpl 1.1.1 does not have right libpng out of the box","user":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars3.githubusercontent.com/u/199813?v=4","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"labels":[{"id":119725414,"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/labels/os:linux","name":"os:linux","color":"fef2c0","default":false},{"id":49358738,"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/labels/type:bug","name":"type:bug","color":"fc2929","default":false},{"id":608829880,"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/labels/type:packaging","name":"type:packaging","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-06-17T03:12:11Z","updated_at":"2017-09-20T03:46:38Z","closed_at":null,"author_association":"NONE","body":"Installing matplotlib 1.1.1 pulling is libpng 1.5.13, but is built against libpng 1.2.50.  Forcibly down-grading libpng fixes the problem.\n\nI assume this is a low priority, but felt compelled to report it anyway.\n\n```\n23:08 $ conda create -p /tmp/mpl_stock matplotlib=1.1.1\nFetching package metadata: ......\nSolving package specifications: ...................\nPackage plan for installation in environment /tmp/mpl_stock:\n\nThe following NEW packages will be INSTALLED:\n\n    cairo:      1.12.18-0        (soft-link)\n    dateutil:   2.4.1-py27_0     (soft-link)\n    freetype:   2.4.10-0         (soft-link)\n    libpng:     1.5.13-1         (soft-link)\n    matplotlib: 1.1.1-np17py27_1 (soft-link)\n    ncurses:    5.9-5            (soft-link)\n    numpy:      1.7.1-py27_2     (soft-link)\n    openssl:    1.0.1k-1         (soft-link)\n    pixman:     0.26.2-0         (soft-link)\n    py2cairo:   1.10.0-py27_2    (soft-link)\n    python:     2.7.10-0         (soft-link)\n    pytz:       2015.4-py27_0    (soft-link)\n    readline:   6.2.5-1          (soft-link)\n    six:        1.9.0-py27_0     (soft-link)\n    sqlite:     3.8.4.1-1        (soft-link)\n    system:     5.8-2            (soft-link)\n    tk:         8.5.18-0         (soft-link)\n    zlib:       1.2.8-0          (soft-link)\n\nProceed ([y]/n)? y\n\nLinking packages ...\n[      COMPLETE      ]|##################################################################################################################################################################################################################################################| 100%\n#\n# To activate this environment, use:\n# $ source activate /tmp/mpl_stock\n#\n# To deactivate this environment, use:\n# $ source deactivate\n#\n✔ ~/source \n23:08 $ source activate /tmp/mpl_stock\ndiscarding /home/tcaswell/mc/bin from PATH\nprepending /tmp/mpl_stock/bin to PATH\n(mpl_stock) ✔ ~/source \n23:08 $ python\nPython 2.7.10 |Continuum Analytics, Inc.| (default, May 28 2015, 17:02:03) \n[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\nAnaconda is brought to you by Continuum Analytics.\nPlease check out: http://continuum.io/thanks and https://binstar.org\n>>> import matplotlib.pyplot as plt\nTraceback (most recent call last):\n  File \"<stdin>\", line 1, in <module>\n  File \"/tmp/mpl_stock/lib/python2.7/site-packages/matplotlib/pyplot.py\", line 23, in <module>\n    from matplotlib.figure import Figure, figaspect\n  File \"/tmp/mpl_stock/lib/python2.7/site-packages/matplotlib/figure.py\", line 18, in <module>\n    from axes import Axes, SubplotBase, subplot_class_factory\n  File \"/tmp/mpl_stock/lib/python2.7/site-packages/matplotlib/axes.py\", line 14, in <module>\n    import matplotlib.axis as maxis\n  File \"/tmp/mpl_stock/lib/python2.7/site-packages/matplotlib/axis.py\", line 14, in <module>\n    import matplotlib.text as mtext\n  File \"/tmp/mpl_stock/lib/python2.7/site-packages/matplotlib/text.py\", line 31, in <module>\n    from matplotlib.backend_bases import RendererBase\n  File \"/tmp/mpl_stock/lib/python2.7/site-packages/matplotlib/backend_bases.py\", line 48, in <module>\n    import matplotlib.textpath as textpath\n  File \"/tmp/mpl_stock/lib/python2.7/site-packages/matplotlib/textpath.py\", line 9, in <module>\n    from matplotlib.mathtext import MathTextParser\n  File \"/tmp/mpl_stock/lib/python2.7/site-packages/matplotlib/mathtext.py\", line 52, in <module>\n    import matplotlib._png as _png\nImportError: libpng12.so.0: cannot open shared object file: No such file or directory\n>>> \n(mpl_stock) ✔ ~/source \n23:08 $ conda install libpng=1.2.50\nFetching package metadata: ......\nSolving package specifications: .\nPackage plan for installation in environment /tmp/mpl_stock:\n\nThe following packages will be DOWNGRADED:\n\n    libpng: 1.5.13-1 --> 1.2.50-0 (soft-link)\n\nProceed ([y]/n)? y\n\nUnlinking packages ...\n[      COMPLETE      ]|##################################################################################################################################################################################################################################################| 100%\nLinking packages ...\n[      COMPLETE      ]|##################################################################################################################################################################################################################################################| 100%\n(mpl_stock) ✔ ~/source \n23:08 $ python\nPython 2.7.10 |Continuum Analytics, Inc.| (default, May 28 2015, 17:02:03) \n[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\nAnaconda is brought to you by Continuum Analytics.\nPlease check out: http://continuum.io/thanks and https://binstar.org\n>>> import matplotlib.pyplot\n>>> \n```\n"},"comment":{"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/comments/330737242","html_url":"https://github.com/ContinuumIO/anaconda-issues/issues/357#issuecomment-330737242","issue_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/357","id":330737242,"user":{"login":"jnothman","id":78827,"avatar_url":"https://avatars2.githubusercontent.com/u/78827?v=4","gravatar_id":"","url":"https://api.github.com/users/jnothman","html_url":"https://github.com/jnothman","followers_url":"https://api.github.com/users/jnothman/followers","following_url":"https://api.github.com/users/jnothman/following{/other_user}","gists_url":"https://api.github.com/users/jnothman/gists{/gist_id}","starred_url":"https://api.github.com/users/jnothman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnothman/subscriptions","organizations_url":"https://api.github.com/users/jnothman/orgs","repos_url":"https://api.github.com/users/jnothman/repos","events_url":"https://api.github.com/users/jnothman/events{/privacy}","received_events_url":"https://api.github.com/users/jnothman/received_events","type":"User","site_admin":false},"created_at":"2017-09-20T03:46:38Z","updated_at":"2017-09-20T03:46:38Z","author_association":"NONE","body":"I haven't yet understood whether this is related to an issue I'm having trying to use a conda env with matplotlib within a Django/mod_wsgi setup. I'm getting an error identical to that reported at [SO](https://stackoverflow.com/questions/33497639/why-is-wsgi-looking-for-a-library-in-lib64-when-the-correct-version-is-in-the-p).\r\n\r\nSomehow libpng is unlinked from libz when accessed through Apache/mod_wsgi.\r\n\r\nWhen I run:\r\n`ldd /path/to/miniconda3/lib/python3.6/site-packages/matplotlib/../../.././libpng16.so.16` in a shell, I get:\r\n```\r\nldd /path/to/miniconda3/lib/python3.6/site-packages/matplotlib/../../.././libpng16.so.16\r\n        linux-vdso.so.1 =>  (0x00007ffd02f8a000)\r\n        libz.so.1 => /path/to/miniconda3/lib/python3.6/site-packages/matplotlib/../../../././libz.so.1 (0x00007f2882574000)\r\n        libm.so.6 => /lib64/libm.so.6 (0x00007f28822e5000)\r\n        libc.so.6 => /lib64/libc.so.6 (0x00007f2881f51000)\r\n        /lib64/ld-linux-x86-64.so.2 (0x0000003965200000)\r\n```\r\nWhen I run it within my `wsgi.py` the lines for libz and libm disappear. I have little idea what this means, but it somehow causes libpng to try to link to the incorrect `/lib64/libz.so.1`.\r\n\r\nAs I said, I'm not sure if this is related to the above issue (probably not). I have failed to downgrade libpng (due to conflict with freetype) using conda install, but maybe there's another way. If it's not related, should I open a new anaconda issue?"}}
{"actor":{"display_login":"jnothman"}}