{"action":"created","issue":{"url":"https://api.github.com/repos/stevengj/PyPlot.jl/issues/151","labels_url":"https://api.github.com/repos/stevengj/PyPlot.jl/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/stevengj/PyPlot.jl/issues/151/comments","events_url":"https://api.github.com/repos/stevengj/PyPlot.jl/issues/151/events","html_url":"https://github.com/stevengj/PyPlot.jl/issues/151","id":98397662,"number":151,"title":"yet another \"using PyPlot\" error","user":{"login":"bjarthur","id":1538268,"avatar_url":"https://avatars.githubusercontent.com/u/1538268?v=3","gravatar_id":"","url":"https://api.github.com/users/bjarthur","html_url":"https://github.com/bjarthur","followers_url":"https://api.github.com/users/bjarthur/followers","following_url":"https://api.github.com/users/bjarthur/following{/other_user}","gists_url":"https://api.github.com/users/bjarthur/gists{/gist_id}","starred_url":"https://api.github.com/users/bjarthur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjarthur/subscriptions","organizations_url":"https://api.github.com/users/bjarthur/orgs","repos_url":"https://api.github.com/users/bjarthur/repos","events_url":"https://api.github.com/users/bjarthur/events{/privacy}","received_events_url":"https://api.github.com/users/bjarthur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-31T14:03:22Z","updated_at":"2015-07-31T21:22:32Z","closed_at":null,"body":"there have been many reported before, i know it must be annoying, but with i'm having problems with the latest version of anaconda (python 2.7.10, matplotlib 1.4.3) and julia 0.3.11.  python works fine by itself, but within julia i get an error related to libz.   ideas?  thanks.\r\n\r\n```\r\njulia> using PyCall\r\n\r\njulia> @pyimport matplotlib.pyplot as plt\r\nERROR: PyError (:PyImport_ImportModule) <type 'exceptions.ImportError'>\r\nImportError(\"/lib64/libz.so.1: version `ZLIB_1.2.3.4' not found (required by /usr/local/anaconda/lib/python2.7/site-packages/matplotlib/../../.././libpng16.so.16)\",)\r\n  File \"/usr/local/anaconda/lib/python2.7/site-packages/matplotlib/pyplot.py\", line 27, in <module>\r\n    import matplotlib.colorbar\r\n  File \"/usr/local/anaconda/lib/python2.7/site-packages/matplotlib/colorbar.py\", line 34, in <module>\r\n    import matplotlib.collections as collections\r\n  File \"/usr/local/anaconda/lib/python2.7/site-packages/matplotlib/collections.py\", line 27, in <module>\r\n    import matplotlib.backend_bases as backend_bases\r\n  File \"/usr/local/anaconda/lib/python2.7/site-packages/matplotlib/backend_bases.py\", line 56, in <module>\r\n    import matplotlib.textpath as textpath\r\n  File \"/usr/local/anaconda/lib/python2.7/site-packages/matplotlib/textpath.py\", line 19, in <module>\r\n    import matplotlib.font_manager as font_manager\r\n  File \"/usr/local/anaconda/lib/python2.7/site-packages/matplotlib/font_manager.py\", line 58, in <module>\r\n    from matplotlib import ft2font\r\n\r\n in pyerr_check at /tier2/genie/BenArthur/julia-0.3.11/share/julia/site/v0.3/PyCall/src/exception.jl:58\r\n in pyimport at /tier2/genie/BenArthur/julia-0.3.11/share/julia/site/v0.3/PyCall/src/PyCall.jl:91\r\n\r\njulia> Pkg.installed()[\"PyCall\"]\r\nv\"0.8.2\"\r\n\r\njulia> VERSION\r\nv\"0.3.11\"\r\n\r\njulia> \r\n\r\n\r\n[arthurb@h09u16 BenArthur]$ which python\r\n/usr/local/anaconda/bin/python\r\n\r\n[arthurb@h09u16 BenArthur]$ python\r\nPython 2.7.10 |Anaconda 2.1.0 (64-bit)| (default, May 28 2015, 17:02:03) \r\n[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\nAnaconda is brought to you by Continuum Analytics.\r\nPlease check out: http://continuum.io/thanks and https://binstar.org\r\n>>> import matplotlib\r\n>>> matplotlib.__version__\r\n'1.4.3'\r\n>>> \r\n```"},"comment":{"url":"https://api.github.com/repos/stevengj/PyPlot.jl/issues/comments/126815150","html_url":"https://github.com/stevengj/PyPlot.jl/issues/151#issuecomment-126815150","issue_url":"https://api.github.com/repos/stevengj/PyPlot.jl/issues/151","id":126815150,"user":{"login":"stevengj","id":2913679,"avatar_url":"https://avatars.githubusercontent.com/u/2913679?v=3","gravatar_id":"","url":"https://api.github.com/users/stevengj","html_url":"https://github.com/stevengj","followers_url":"https://api.github.com/users/stevengj/followers","following_url":"https://api.github.com/users/stevengj/following{/other_user}","gists_url":"https://api.github.com/users/stevengj/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengj/subscriptions","organizations_url":"https://api.github.com/users/stevengj/orgs","repos_url":"https://api.github.com/users/stevengj/repos","events_url":"https://api.github.com/users/stevengj/events{/privacy}","received_events_url":"https://api.github.com/users/stevengj/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T21:22:32Z","updated_at":"2015-07-31T21:22:32Z","body":"You have multiple versions of `libz` installed, and `libpython` needs to find the right one...\r\n\r\nMaybe the `python` executable was forcibly linked to the `libz` in the anaconda directory, but since we are manually loading `libpython` we don't benefit from this? \r\n\r\nFrustrating.... I need to figure out a way to automate this, but setting the environment variable is dangerous because it can effect other child processes."}}