{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/6551","labels_url":"https://api.github.com/repos/numpy/numpy/issues/6551/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/6551/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/6551/events","html_url":"https://github.com/numpy/numpy/issues/6551","id":112845872,"number":6551,"title":"matplotlib does not build with numpy master","user":{"login":"mdboom","id":38294,"avatar_url":"https://avatars.githubusercontent.com/u/38294?v=3","gravatar_id":"","url":"https://api.github.com/users/mdboom","html_url":"https://github.com/mdboom","followers_url":"https://api.github.com/users/mdboom/followers","following_url":"https://api.github.com/users/mdboom/following{/other_user}","gists_url":"https://api.github.com/users/mdboom/gists{/gist_id}","starred_url":"https://api.github.com/users/mdboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdboom/subscriptions","organizations_url":"https://api.github.com/users/mdboom/orgs","repos_url":"https://api.github.com/users/mdboom/repos","events_url":"https://api.github.com/users/mdboom/events{/privacy}","received_events_url":"https://api.github.com/users/mdboom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-22T16:53:25Z","updated_at":"2015-10-22T17:30:30Z","closed_at":null,"body":"Something has changed in numpy.distutils that is causing matplotlib to not build.\r\n\r\nI've tried `git bisecting`, but the history seems a little convoluted and it isn't helping to find the issue.\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 152, in save_modules\r\n    yield saved\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 193, in setup_context\r\n    yield\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 237, in run_setup\r\n    DirectorySandbox(setup_dir).run(runner)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 267, in run\r\n    return func()\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 236, in runner\r\n    _execfile(setup_script, ns)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 46, in _execfile\r\n    exec(code, globals, locals)\r\n  File \"/tmp/easy_install-ywbtwurq/numpy-1.10.1/setup.py\", line 264, in <module>\r\n    if isinstance(package, str):\r\n  File \"/tmp/easy_install-ywbtwurq/numpy-1.10.1/setup.py\", line 256, in setup_package\r\n    # Go through all of the packages and figure out which ones we are\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/distutils/core.py\", line 135, in setup\r\n    config = configuration()\r\n  File \"/tmp/easy_install-ywbtwurq/numpy-1.10.1/setup.py\", line 156, in configuration\r\n    \r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/distutils/misc_util.py\", line 1001, in add_subpackage\r\n    caller_level = 2)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/distutils/misc_util.py\", line 970, in get_subpackage\r\n    caller_level = caller_level + 1)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/distutils/misc_util.py\", line 907, in _get_configuration_from_setup_py\r\n    config = setup_module.configuration(*args)\r\n  File \"numpy/setup.py\", line 11, in configuration\r\n    from setuptools.command.test import test as TestCommand\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/distutils/misc_util.py\", line 1001, in add_subpackage\r\n    caller_level = 2)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/distutils/misc_util.py\", line 970, in get_subpackage\r\n    caller_level = caller_level + 1)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/distutils/misc_util.py\", line 882, in _get_configuration_from_setup_py\r\n    ('.py', 'U', 1))\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/imp.py\", line 234, in load_module\r\n    return load_source(name, filename, file)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/imp.py\", line 172, in load_source\r\n    module = _load(spec)\r\n  File \"<frozen importlib._bootstrap>\", line 693, in _load\r\n  File \"<frozen importlib._bootstrap>\", line 673, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap_external>\", line 662, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 222, in _call_with_frames_removed\r\n  File \"numpy/core/setup.py\", line 13, in <module>\r\n    import sys\r\nImportError: No module named 'numpy._build_utils'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"setup.py\", line 381, in <module>\r\n    **extra_args\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/distutils/core.py\", line 108, in setup\r\n    _setup_distribution = dist = klass(attrs)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/dist.py\", line 268, in __init__\r\n    self.fetch_build_eggs(attrs['setup_requires'])\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/dist.py\", line 313, in fetch_build_eggs\r\n    replace_conflicting=True,\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/pkg_resources/__init__.py\", line 836, in resolve\r\n    dist = best[req.key] = env.best_match(req, ws, installer)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/pkg_resources/__init__.py\", line 1081, in best_match\r\n    return self.obtain(req, installer)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/pkg_resources/__init__.py\", line 1093, in obtain\r\n    return installer(requirement)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/dist.py\", line 380, in fetch_build_egg\r\n    return cmd.easy_install(req)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/command/easy_install.py\", line 629, in easy_install\r\n    return self.install_item(spec, dist.location, tmpdir, deps)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/command/easy_install.py\", line 659, in install_item\r\n    dists = self.install_eggs(spec, download, tmpdir)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/command/easy_install.py\", line 842, in install_eggs\r\n    return self.build_and_install(setup_script, setup_base)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/command/easy_install.py\", line 1070, in build_and_install\r\n    self.run_setup(setup_script, setup_base, args)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/command/easy_install.py\", line 1056, in run_setup\r\n    run_setup(setup_script, args)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 240, in run_setup\r\n    raise\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/contextlib.py\", line 77, in __exit__\r\n    self.gen.throw(type, value, traceback)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 193, in setup_context\r\n    yield\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/contextlib.py\", line 77, in __exit__\r\n    self.gen.throw(type, value, traceback)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 164, in save_modules\r\n    saved_exc.resume()\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 139, in resume\r\n    compat.reraise(type, exc, self._tb)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/compat.py\", line 65, in reraise\r\n    raise value.with_traceback(tb)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 152, in save_modules\r\n    yield saved\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 193, in setup_context\r\n    yield\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 237, in run_setup\r\n    DirectorySandbox(setup_dir).run(runner)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 267, in run\r\n    return func()\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 236, in runner\r\n    _execfile(setup_script, ns)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/setuptools/sandbox.py\", line 46, in _execfile\r\n    exec(code, globals, locals)\r\n  File \"/tmp/easy_install-ywbtwurq/numpy-1.10.1/setup.py\", line 264, in <module>\r\n    if isinstance(package, str):\r\n  File \"/tmp/easy_install-ywbtwurq/numpy-1.10.1/setup.py\", line 256, in setup_package\r\n    # Go through all of the packages and figure out which ones we are\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/distutils/core.py\", line 135, in setup\r\n    config = configuration()\r\n  File \"/tmp/easy_install-ywbtwurq/numpy-1.10.1/setup.py\", line 156, in configuration\r\n    \r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/distutils/misc_util.py\", line 1001, in add_subpackage\r\n    caller_level = 2)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/distutils/misc_util.py\", line 970, in get_subpackage\r\n    caller_level = caller_level + 1)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/distutils/misc_util.py\", line 907, in _get_configuration_from_setup_py\r\n    config = setup_module.configuration(*args)\r\n  File \"numpy/setup.py\", line 11, in configuration\r\n    from setuptools.command.test import test as TestCommand\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/distutils/misc_util.py\", line 1001, in add_subpackage\r\n    caller_level = 2)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/distutils/misc_util.py\", line 970, in get_subpackage\r\n    caller_level = caller_level + 1)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/site-packages/numpy/distutils/misc_util.py\", line 882, in _get_configuration_from_setup_py\r\n    ('.py', 'U', 1))\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/imp.py\", line 234, in load_module\r\n    return load_source(name, filename, file)\r\n  File \"/home/mdboom/.pyenv/versions/3.5.0/lib/python3.5/imp.py\", line 172, in load_source\r\n    module = _load(spec)\r\n  File \"<frozen importlib._bootstrap>\", line 693, in _load\r\n  File \"<frozen importlib._bootstrap>\", line 673, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap_external>\", line 662, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 222, in _call_with_frames_removed\r\n  File \"numpy/core/setup.py\", line 13, in <module>\r\n    import sys\r\nImportError: No module named 'numpy._build_utils'\r\n```"},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/150298231","html_url":"https://github.com/numpy/numpy/issues/6551#issuecomment-150298231","issue_url":"https://api.github.com/repos/numpy/numpy/issues/6551","id":150298231,"user":{"login":"mdboom","id":38294,"avatar_url":"https://avatars.githubusercontent.com/u/38294?v=3","gravatar_id":"","url":"https://api.github.com/users/mdboom","html_url":"https://github.com/mdboom","followers_url":"https://api.github.com/users/mdboom/followers","following_url":"https://api.github.com/users/mdboom/following{/other_user}","gists_url":"https://api.github.com/users/mdboom/gists{/gist_id}","starred_url":"https://api.github.com/users/mdboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdboom/subscriptions","organizations_url":"https://api.github.com/users/mdboom/orgs","repos_url":"https://api.github.com/users/mdboom/repos","events_url":"https://api.github.com/users/mdboom/events{/privacy}","received_events_url":"https://api.github.com/users/mdboom/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T17:30:30Z","updated_at":"2015-10-22T17:30:30Z","body":"Note that you have to clean the installation and build directories first to reproduce the bug."}}