{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/2066","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2066/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2066/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2066/events","html_url":"https://github.com/spyder-ide/spyder/issues/2066","id":57990727,"number":2066,"title":"Problems with importing matplotlib from macports","user":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/1%20star","name":"1 star","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/invalid","name":"invalid","color":"e6e6e6"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/MacOS","name":"MacOS","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spyder-ide/spyder/milestones/13","labels_url":"https://api.github.com/repos/spyder-ide/spyder/milestones/13/labels","id":982156,"number":13,"title":"v2.3.3","description":null,"creator":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":25,"state":"open","created_at":"2015-02-17T00:37:48Z","updated_at":"2015-02-17T22:13:10Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-02-17T22:13:10Z","updated_at":"2015-02-17T22:13:12Z","closed_at":null,"body":"_From [tarahami...@gmail.com](https://code.google.com/u/113642637509869160878/) on 2014-11-26T01:51:07Z_\n\nSpyder Version:  2.3.0\r\nPython Version:  2.7.7\r\nQt Version    :  4.8.6, PyQt4 (API v2) 4.10.4 on Darwin\r\npyflakes >=0.5.0:  0.8.1 (OK)\r\npep8 >=0.6      :  1.5.7 (OK)\r\nIPython >=0.13  :  2.1.0 (OK)\r\npygments >=1.6  :  1.6 (OK)\r\nsphinx >=0.6.6  :  1.2.2 (OK)\r\npsutil >=0.3    :  2.1.1 (OK)\r\nrope >=0.9.2    :  0.10.2 (OK)\r\nmatplotlib >=1.0:  1.3.1 (OK)\r\nsympy >=0.7.0   :  0.7.5 (OK)\r\npylint >=0.25   :  1.2.1 (OK) \n\nWhat steps will reproduce the problem?\n\n 1. type in the console or in a file: import matplotlib.pyplot as plt 2. 3. \n\nWhat is the expected output? What do you see instead?\n\n Expected output: program runs and produces plots\r\n\r\nWhat I get:\r\n\\>>> import matplotlib.pyplot as plt\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in \\<module>\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py\", line 28, in \\<module>\r\n    from matplotlib import style\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/style/__init__.py\", line 3, in \\<module>\r\n    from .core import use, context, available, library, reload_library\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/style/core.py\", line 149, in \\<module>\r\n    _base_library = load_base_library()\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/style/core.py\", line 94, in load_base_library\r\n    library.update(read_style_directory(BASE_LIBRARY_PATH))\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/style/core.py\", line 126, in read_style_directory\r\n    for path, name in iter_style_files(style_dir):\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/style/core.py\", line 115, in iter_style_files\r\n    for path in os.listdir(style_dir):\r\nOSError: [Errno 2] No such file or directory: '/Applications/Spyder.app/Contents/Resources/mpl-data/stylelib' \n\nPlease provide any additional information below\n\n. It has only stopped working after I installed PyQt4 using macports.\n\n_Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2066_"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/74766146","html_url":"https://github.com/spyder-ide/spyder/issues/2066#issuecomment-74766146","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2066","id":74766146,"user":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T22:13:12Z","updated_at":"2015-02-17T22:13:12Z","body":"_From [ccordoba12](https://code.google.com/u/ccordoba12/) on 2014-11-27T07:11:38Z_\n\nIf you're using our dmg, how are you importing matplotlib from macports?\n\n**Summary:** Problems with importing matplotlib from macports  \\<span class=\"oldvalue\"> (was: Problems with matplotlib) \\</span>  \n  **Labels:** OpSys-OSX  \n"}}