{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1532","repository_url":"https://api.github.com/repos/Microsoft/BashOnWindows","labels_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1532/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1532/comments","events_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1532/events","html_url":"https://github.com/Microsoft/BashOnWindows/issues/1532","id":197104460,"number":1532,"title":"matplotlib 1.5.3 from Anaconda doesnt work","user":{"login":"joshpeng","id":22549127,"avatar_url":"https://avatars.githubusercontent.com/u/22549127?v=3","gravatar_id":"","url":"https://api.github.com/users/joshpeng","html_url":"https://github.com/joshpeng","followers_url":"https://api.github.com/users/joshpeng/followers","following_url":"https://api.github.com/users/joshpeng/following{/other_user}","gists_url":"https://api.github.com/users/joshpeng/gists{/gist_id}","starred_url":"https://api.github.com/users/joshpeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshpeng/subscriptions","organizations_url":"https://api.github.com/users/joshpeng/orgs","repos_url":"https://api.github.com/users/joshpeng/repos","events_url":"https://api.github.com/users/joshpeng/events{/privacy}","received_events_url":"https://api.github.com/users/joshpeng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-22T06:32:14Z","updated_at":"2016-12-22T17:51:16Z","closed_at":null,"body":"I am on Insider Build 14986, but this was also tested on Anniversary Update. Issue looks related to PyQt5.\r\n\r\n1. Brand new WSL install\r\n2. Install Anaconda2 4.2.0\r\n    ```\r\n    wget https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh\r\n    bash Anaconda2-4.2.0-Linux-x86_64.sh\r\n    ```\r\n3. Create a matplot.py file with only one import line\r\n    ```python\r\n   import matplotlib.pyplot as plt\r\n   ```\r\n4. Run the file\r\n    ```\r\n    python matplot.py\r\n    ```\r\n    Receive this as the output error:\r\n```\r\nTraceback (most recent call last):\r\n  File \"mat.py\", line 1, in <module>\r\n    import matplotlib.pyplot as plt\r\n  File \"/home/josh/anaconda2/lib/python2.7/site-packages/matplotlib/pyplot.py\", line 114, in <module>\r\n    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()\r\n  File \"/home/josh/anaconda2/lib/python2.7/site-packages/matplotlib/backends/__init__.py\", line 32, in pylab_setup\r\n    globals(),locals(),[backend_name],0)\r\n  File \"/home/josh/anaconda2/lib/python2.7/site-packages/matplotlib/backends/backend_qt5agg.py\", line 16, in <module>\r\n    from .backend_qt5 import QtCore\r\n  File \"/home/josh/anaconda2/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py\", line 31, in <module>\r\n    from .qt_compat import QtCore, QtGui, QtWidgets, _getSaveFileName, __version__\r\n  File \"/home/josh/anaconda2/lib/python2.7/site-packages/matplotlib/backends/qt_compat.py\", line 137, in <module>\r\n    from PyQt4 import QtCore, QtGui\r\nImportError: No module named PyQt4\r\n```\r\nWhen I run a ```conda list``` command I can see that it has PyQt 5.6 installed. Maybe that is why it can't find PyQt 4. Why is it still looking for 4 though?\r\n\r\nWhen I run these same steps off Anaconda on Windows or real Linux, the Matplotlib v1.5.3 with PyQt 5.6 work. When I run it off WSL, I get the above error and have to downgrade my PyQt to 4 via ```conda install pyqt=4```. This also causes a downgrade of Matplotlib to v1.5.1.\r\n\r\nOnly after this downgrade, can I get Matplotlib to work with my X server on the old version."},"comment":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/comments/268853386","html_url":"https://github.com/Microsoft/BashOnWindows/issues/1532#issuecomment-268853386","issue_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/1532","id":268853386,"user":{"login":"joshpeng","id":22549127,"avatar_url":"https://avatars.githubusercontent.com/u/22549127?v=3","gravatar_id":"","url":"https://api.github.com/users/joshpeng","html_url":"https://github.com/joshpeng","followers_url":"https://api.github.com/users/joshpeng/followers","following_url":"https://api.github.com/users/joshpeng/following{/other_user}","gists_url":"https://api.github.com/users/joshpeng/gists{/gist_id}","starred_url":"https://api.github.com/users/joshpeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshpeng/subscriptions","organizations_url":"https://api.github.com/users/joshpeng/orgs","repos_url":"https://api.github.com/users/joshpeng/repos","events_url":"https://api.github.com/users/joshpeng/events{/privacy}","received_events_url":"https://api.github.com/users/joshpeng/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T17:51:16Z","updated_at":"2016-12-22T17:51:16Z","body":"@aseering Thanks for the quick response. The results of the expressions are the same. They are as follows on both Bash on Windows and Linux VM.\r\n\r\n```\r\nPython 2.7.12 |Anaconda 4.2.0 (64-bit)| (default, Jul  2 2016, 17:42:40) \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://anaconda.org\r\n>>> import sys\r\n>>> 'PyQt4' in sys.modules\r\nFalse\r\n>>> 'PyQt5' in sys.modules\r\nFalse\r\n>>> import matplotlib\r\n>>> matplotlib.rcParams\r\nRcParams({u'agg.path.chunksize': 0,\r\n          u'animation.avconv_args': [],\r\n          u'animation.avconv_path': u'avconv',\r\n          u'animation.bitrate': -1,\r\n          u'animation.codec': u'mpeg4',\r\n          u'animation.convert_args': [],\r\n          u'animation.convert_path': u'convert',\r\n          u'animation.ffmpeg_args': [],\r\n          u'animation.ffmpeg_path': u'ffmpeg',\r\n          u'animation.frame_format': u'png',\r\n          u'animation.html': u'none',\r\n          u'animation.mencoder_args': [],\r\n          u'animation.mencoder_path': u'mencoder',\r\n          u'animation.writer': u'ffmpeg',\r\n          u'axes.axisbelow': False,\r\n          u'axes.edgecolor': u'k',\r\n          u'axes.facecolor': u'w',\r\n          u'axes.formatter.limits': [-7, 7],\r\n          u'axes.formatter.use_locale': False,\r\n          u'axes.formatter.use_mathtext': False,\r\n          u'axes.formatter.useoffset': True,\r\n          u'axes.grid': False,\r\n          u'axes.grid.axis': u'both',\r\n          u'axes.grid.which': u'major',\r\n          u'axes.hold': True,\r\n          u'axes.labelcolor': u'k',\r\n          u'axes.labelpad': 5.0,\r\n          u'axes.labelsize': u'medium',\r\n          u'axes.labelweight': u'normal',\r\n          u'axes.linewidth': 1.0,\r\n          u'axes.prop_cycle': cycler(u'color', [u'b', u'g', u'r', u'c', u'm', u'y', u'k']),\r\n          u'axes.spines.bottom': True,\r\n          u'axes.spines.left': True,\r\n          u'axes.spines.right': True,\r\n          u'axes.spines.top': True,\r\n          u'axes.titlesize': u'large',\r\n          u'axes.titleweight': u'normal',\r\n          u'axes.unicode_minus': True,\r\n          u'axes.xmargin': 0.0,\r\n          u'axes.ymargin': 0.0,\r\n          u'axes3d.grid': True,\r\n          u'backend': u'Qt5Agg',\r\n          u'backend.qt4': u'PyQt4',\r\n          u'backend.qt5': u'PyQt5',\r\n          u'backend_fallback': True,\r\n          u'boxplot.bootstrap': None,\r\n          u'boxplot.boxprops.color': u'b',\r\n          u'boxplot.boxprops.linestyle': u'-',\r\n          u'boxplot.boxprops.linewidth': 1.0,\r\n          u'boxplot.capprops.color': u'k',\r\n          u'boxplot.capprops.linestyle': u'-',\r\n          u'boxplot.capprops.linewidth': 1.0,\r\n          u'boxplot.flierprops.color': u'b',\r\n          u'boxplot.flierprops.linestyle': u'none',\r\n          u'boxplot.flierprops.linewidth': 1.0,\r\n          u'boxplot.flierprops.marker': u'+',\r\n          u'boxplot.flierprops.markeredgecolor': u'k',\r\n          u'boxplot.flierprops.markerfacecolor': u'b',\r\n          u'boxplot.flierprops.markersize': 6.0,\r\n          u'boxplot.meanline': False,\r\n          u'boxplot.meanprops.color': u'r',\r\n          u'boxplot.meanprops.linestyle': u'-',\r\n          u'boxplot.meanprops.linewidth': 1.0,\r\n          u'boxplot.medianprops.color': u'r',\r\n          u'boxplot.medianprops.linestyle': u'-',\r\n          u'boxplot.medianprops.linewidth': 1.0,\r\n          u'boxplot.notch': False,\r\n          u'boxplot.patchartist': False,\r\n          u'boxplot.showbox': True,\r\n          u'boxplot.showcaps': True,\r\n          u'boxplot.showfliers': True,\r\n          u'boxplot.showmeans': False,\r\n          u'boxplot.vertical': True,\r\n          u'boxplot.whiskerprops.color': u'b',\r\n          u'boxplot.whiskerprops.linestyle': u'--',\r\n          u'boxplot.whiskerprops.linewidth': 1.0,\r\n          u'boxplot.whiskers': 1.5,\r\n          u'contour.corner_mask': True,\r\n          u'contour.negative_linestyle': u'dashed',\r\n          u'datapath': u'/home/josh/anaconda2/lib/python2.7/site-packages/matplotlib/mpl-data',\r\n          u'docstring.hardcopy': False,\r\n          u'errorbar.capsize': 3.0,\r\n          u'examples.directory': u'',\r\n          u'figure.autolayout': False,\r\n          u'figure.dpi': 80.0,\r\n          u'figure.edgecolor': u'w',\r\n          u'figure.facecolor': u'0.75',\r\n          u'figure.figsize': [8.0, 6.0],\r\n          u'figure.frameon': True,\r\n          u'figure.max_open_warning': 20,\r\n          u'figure.subplot.bottom': 0.1,\r\n          u'figure.subplot.hspace': 0.2,\r\n          u'figure.subplot.left': 0.125,\r\n          u'figure.subplot.right': 0.9,\r\n          u'figure.subplot.top': 0.9,\r\n          u'figure.subplot.wspace': 0.2,\r\n          u'figure.titlesize': u'medium',\r\n          u'figure.titleweight': u'normal',\r\n          u'font.cursive': [u'Apple Chancery',\r\n                            u'Textile',\r\n                            u'Zapf Chancery',\r\n                            u'Sand',\r\n                            u'Script MT',\r\n                            u'Felipa',\r\n                            u'cursive'],\r\n          u'font.family': [u'sans-serif'],\r\n          u'font.fantasy': [u'Comic Sans MS',\r\n                            u'Chicago',\r\n                            u'Charcoal',\r\n                            u'ImpactWestern',\r\n                            u'Humor Sans',\r\n                            u'fantasy'],\r\n          u'font.monospace': [u'Bitstream Vera Sans Mono',\r\n                              u'DejaVu Sans Mono',\r\n                              u'Andale Mono',\r\n                              u'Nimbus Mono L',\r\n                              u'Courier New',\r\n                              u'Courier',\r\n                              u'Fixed',\r\n                              u'Terminal',\r\n                              u'monospace'],\r\n          u'font.sans-serif': [u'Bitstream Vera Sans',\r\n                               u'DejaVu Sans',\r\n                               u'Lucida Grande',\r\n                               u'Verdana',\r\n                               u'Geneva',\r\n                               u'Lucid',\r\n                               u'Arial',\r\n                               u'Helvetica',\r\n                               u'Avant Garde',\r\n                               u'sans-serif'],\r\n          u'font.serif': [u'Bitstream Vera Serif',\r\n                          u'DejaVu Serif',\r\n                          u'New Century Schoolbook',\r\n                          u'Century Schoolbook L',\r\n                          u'Utopia',\r\n                          u'ITC Bookman',\r\n                          u'Bookman',\r\n                          u'Nimbus Roman No9 L',\r\n                          u'Times New Roman',\r\n                          u'Times',\r\n                          u'Palatino',\r\n                          u'Charter',\r\n                          u'serif'],\r\n          u'font.size': 12.0,\r\n          u'font.stretch': u'normal',\r\n          u'font.style': u'normal',\r\n          u'font.variant': u'normal',\r\n          u'font.weight': u'normal',\r\n          u'grid.alpha': 1.0,\r\n          u'grid.color': u'k',\r\n          u'grid.linestyle': u':',\r\n          u'grid.linewidth': 0.5,\r\n          u'image.aspect': u'equal',\r\n          u'image.cmap': u'jet',\r\n          u'image.composite_image': True,\r\n          u'image.interpolation': u'bilinear',\r\n          u'image.lut': 256,\r\n          u'image.origin': u'upper',\r\n          u'image.resample': False,\r\n          u'interactive': False,\r\n          u'keymap.all_axes': [u'a'],\r\n          u'keymap.back': [u'left', u'c', u'backspace'],\r\n          u'keymap.forward': [u'right', u'v'],\r\n          u'keymap.fullscreen': [u'f', u'ctrl+f'],\r\n          u'keymap.grid': [u'g'],\r\n          u'keymap.home': [u'h', u'r', u'home'],\r\n          u'keymap.pan': [u'p'],\r\n          u'keymap.quit': [u'ctrl+w', u'cmd+w'],\r\n          u'keymap.save': [u's', u'ctrl+s'],\r\n          u'keymap.xscale': [u'k', u'L'],\r\n          u'keymap.yscale': [u'l'],\r\n          u'keymap.zoom': [u'o'],\r\n          u'legend.borderaxespad': 0.5,\r\n          u'legend.borderpad': 0.4,\r\n          u'legend.columnspacing': 2.0,\r\n          u'legend.edgecolor': u'inherit',\r\n          u'legend.facecolor': u'inherit',\r\n          u'legend.fancybox': False,\r\n          u'legend.fontsize': u'large',\r\n          u'legend.framealpha': None,\r\n          u'legend.frameon': True,\r\n          u'legend.handleheight': 0.7,\r\n          u'legend.handlelength': 2.0,\r\n          u'legend.handletextpad': 0.8,\r\n          u'legend.isaxes': True,\r\n          u'legend.labelspacing': 0.5,\r\n          u'legend.loc': u'upper right',\r\n          u'legend.markerscale': 1.0,\r\n          u'legend.numpoints': 2,\r\n          u'legend.scatterpoints': 3,\r\n          u'legend.shadow': False,\r\n          u'lines.antialiased': True,\r\n          u'lines.color': u'b',\r\n          u'lines.dash_capstyle': u'butt',\r\n          u'lines.dash_joinstyle': u'round',\r\n          u'lines.linestyle': u'-',\r\n          u'lines.linewidth': 1.0,\r\n          u'lines.marker': u'None',\r\n          u'lines.markeredgewidth': 0.5,\r\n          u'lines.markersize': 6.0,\r\n          u'lines.solid_capstyle': u'projecting',\r\n          u'lines.solid_joinstyle': u'round',\r\n          u'markers.fillstyle': u'full',\r\n          u'mathtext.bf': u'serif:bold',\r\n          u'mathtext.cal': u'cursive',\r\n          u'mathtext.default': u'it',\r\n          u'mathtext.fallback_to_cm': True,\r\n          u'mathtext.fontset': u'cm',\r\n          u'mathtext.it': u'serif:italic',\r\n          u'mathtext.rm': u'serif',\r\n          u'mathtext.sf': u'sans\\\\-serif',\r\n          u'mathtext.tt': u'monospace',\r\n          u'nbagg.transparent': True,\r\n          u'patch.antialiased': True,\r\n          u'patch.edgecolor': u'k',\r\n          u'patch.facecolor': u'b',\r\n          u'patch.linewidth': 1.0,\r\n          u'path.effects': [],\r\n          u'path.simplify': True,\r\n          u'path.simplify_threshold': 0.1111111111111111,\r\n          u'path.sketch': None,\r\n          u'path.snap': True,\r\n          u'pdf.compression': 6,\r\n          u'pdf.fonttype': 3,\r\n          u'pdf.inheritcolor': False,\r\n          u'pdf.use14corefonts': False,\r\n          u'pgf.debug': False,\r\n          u'pgf.preamble': [],\r\n          u'pgf.rcfonts': True,\r\n          u'pgf.texsystem': u'xelatex',\r\n          u'plugins.directory': u'.matplotlib_plugins',\r\n          u'polaraxes.grid': True,\r\n          u'ps.distiller.res': 6000,\r\n          u'ps.fonttype': 3,\r\n          u'ps.papersize': u'letter',\r\n          u'ps.useafm': False,\r\n          u'ps.usedistiller': False,\r\n          u'savefig.bbox': None,\r\n          u'savefig.directory': u'~',\r\n          u'savefig.dpi': 100.0,\r\n          u'savefig.edgecolor': u'w',\r\n          u'savefig.facecolor': u'w',\r\n          u'savefig.format': u'png',\r\n          u'savefig.frameon': True,\r\n          u'savefig.jpeg_quality': 95,\r\n          u'savefig.orientation': u'portrait',\r\n          u'savefig.pad_inches': 0.1,\r\n          u'savefig.transparent': False,\r\n          u'svg.fonttype': u'path',\r\n          u'svg.image_inline': True,\r\n          u'svg.image_noscale': False,\r\n          u'text.antialiased': True,\r\n          u'text.color': u'k',\r\n          u'text.dvipnghack': None,\r\n          u'text.hinting': u'auto',\r\n          u'text.hinting_factor': 8,\r\n          u'text.latex.preamble': [],\r\n          u'text.latex.preview': False,\r\n          u'text.latex.unicode': False,\r\n          u'text.usetex': False,\r\n          u'timezone': u'UTC',\r\n          u'tk.window_focus': False,\r\n          u'toolbar': u'toolbar2',\r\n          u'verbose.fileo': u'sys.stdout',\r\n          u'verbose.level': u'silent',\r\n          u'webagg.open_in_browser': True,\r\n          u'webagg.port': 8988,\r\n          u'webagg.port_retries': 50,\r\n          u'xtick.color': u'k',\r\n          u'xtick.direction': u'in',\r\n          u'xtick.labelsize': u'medium',\r\n          u'xtick.major.pad': 4.0,\r\n          u'xtick.major.size': 4.0,\r\n          u'xtick.major.width': 0.5,\r\n          u'xtick.minor.pad': 4.0,\r\n          u'xtick.minor.size': 2.0,\r\n          u'xtick.minor.visible': False,\r\n          u'xtick.minor.width': 0.5,\r\n          u'ytick.color': u'k',\r\n          u'ytick.direction': u'in',\r\n          u'ytick.labelsize': u'medium',\r\n          u'ytick.major.pad': 4.0,\r\n          u'ytick.major.width': 0.5,\r\n          u'ytick.major.size': 4.0,\r\n          u'ytick.minor.pad': 4.0,\r\n          u'ytick.minor.size': 2.0,\r\n          u'ytick.minor.visible': False,\r\n          u'ytick.minor.width': 0.5})\r\n```"}}
{"actor":{"display_login":"joshpeng"}}