{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/1e19fe44192a51cec9ce1b6175edf9e6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1e19fe44192a51cec9ce1b6175edf9e6","url":"https://api.github.com/users/poldavezac","login":"poldavezac","id":1200250},"assignee":null,"updated_at":"2011-11-16T21:01:52Z","labels":[],"closed_at":null,"comments":2,"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/593","body":"I find the following recursive import :\r\nmatplotlib.__init__  --> matplotlib.rcsetup --> matplotlib.colors --> matplotlib.cbook --> matplotlib.__init__\r\nwith :\r\n    - matplotlib.rcsetup imported line 133\r\n    - matplotlib.rcParams defined much later\r\n    - and cbook asking for rcParams[\"axes.formatter.use_local\"]\r\n","html_url":"https://github.com/matplotlib/matplotlib/issues/593","title":"recursive import : bug in cbook.unicode_safe","number":593,"id":2260425,"created_at":"2011-11-16T19:19:21Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/1e19fe44192a51cec9ce1b6175edf9e6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1e19fe44192a51cec9ce1b6175edf9e6","url":"https://api.github.com/users/poldavezac","login":"poldavezac","id":1200250},"updated_at":"2011-11-16T21:01:52Z","url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/2767851","body":"I'm using 1.1, downloaded a few days ago\nthere is no traceback to speak of as the call to rcParams is encapsulated\nin a try/except clause.\n\nI've commented that clause to obtain as follows\n\nc:\\code\\trunk\\OPL\\opl\\test>plottemporal.py\nTraceback (most recent call last):\nFile \"C:\\code\\trunk\\OPL\\opl\\test\\plottemporal.py\", line 11, in <module>\nfrom opl.test.plot import iTestPlot, iTestShownDrawBase, testPlotFactory\nFile \"c:\\code\\trunk\\OPL\\opl\\test\\plot.py\", line 4, in <module>\nfrom opl.draw.canvas import SimpleCanvas\nFile \"c:\\code\\trunk\\OPL\\opl\\draw\\__init__.py\", line 139, in <module>\nimport matplotlib.cbook as cbook\nFile\n\"C:\\code\\environment\\python\\v27\\lib\\site-packages\\matplotlib\\__init__.py\",\nline 133, in <module>\nfrom matplotlib.rcsetup import (defaultParams,\nFile\n\"C:\\code\\environment\\python\\v27\\lib\\site-packages\\matplotlib\\rcsetup.py\",\nline 19, in <module>\nfrom matplotlib.colors import is_color_like\nFile\n\"C:\\code\\environment\\python\\v27\\lib\\site-packages\\matplotlib\\colors.py\",\nline 54, in <module>\nimport matplotlib.cbook as cbook\nFile\n\"C:\\code\\environment\\python\\v27\\lib\\site-packages\\matplotlib\\cbook.py\",\nline 34, in <module>\nmatplotlib.rcParams['axes.formatter.use_locale']).strip()\nAttributeError: 'module' object has no attribute 'rcParams'\n\n\n\nOn Wed, Nov 16, 2011 at 8:25 PM, Michael Droettboom <\nreply@reply.github.com\n> wrote:\n\n> What version of matplotlib are you referring to?  `master` has a similar\n> cycle, but it isn't problematic (and the line number you refer to doesn't\n> match).  Can you attach a traceback if you are getting one?\n>\n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/matplotlib/matplotlib/issues/593#issuecomment-2766454\n>","id":2767851,"created_at":"2011-11-16T21:01:52Z"}}