{"action":"created","issue":{"url":"https://api.github.com/repos/richardotis/pycalphad/issues/26","labels_url":"https://api.github.com/repos/richardotis/pycalphad/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/richardotis/pycalphad/issues/26/comments","events_url":"https://api.github.com/repos/richardotis/pycalphad/issues/26/events","html_url":"https://github.com/richardotis/pycalphad/issues/26","id":115772571,"number":26,"title":"ReadTheDocs is failing to build","user":{"login":"richardotis","id":6405510,"avatar_url":"https://avatars.githubusercontent.com/u/6405510?v=3","gravatar_id":"","url":"https://api.github.com/users/richardotis","html_url":"https://github.com/richardotis","followers_url":"https://api.github.com/users/richardotis/followers","following_url":"https://api.github.com/users/richardotis/following{/other_user}","gists_url":"https://api.github.com/users/richardotis/gists{/gist_id}","starred_url":"https://api.github.com/users/richardotis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardotis/subscriptions","organizations_url":"https://api.github.com/users/richardotis/orgs","repos_url":"https://api.github.com/users/richardotis/repos","events_url":"https://api.github.com/users/richardotis/events{/privacy}","received_events_url":"https://api.github.com/users/richardotis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/richardotis/pycalphad/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-09T00:28:37Z","updated_at":"2015-11-09T03:37:11Z","closed_at":null,"body":"https://readthedocs.org/projects/pycalphad/builds/3465916/\r\n\r\n```\r\nInstalled /home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/lib/python2.7/site-packages/tinydb-2.4-py2.7.egg\r\nSearching for autograd\r\nReading https://pypi.python.org/simple/autograd/\r\nBest match: autograd 1.1.2\r\nDownloading https://pypi.python.org/packages/source/a/autograd/autograd-1.1.2.tar.gz#md5=db1cc306f37bb39f30d36c72a39ce1e9\r\nProcessing autograd-1.1.2.tar.gz\r\nWriting /tmp/easy_install-Wtdg_w/autograd-1.1.2/setup.cfg\r\nRunning autograd-1.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Wtdg_w/autograd-1.1.2/egg-dist-tmp-Sj6EJJ\r\nTraceback (most recent call last):\r\n  File \"setup.py\", line 47, in <module>\r\n    'Programming Language :: Python :: 3.4'\r\n  File \"/usr/lib/python2.7/distutils/core.py\", line 151, in setup\r\n    dist.run_commands()\r\n  File \"/usr/lib/python2.7/distutils/dist.py\", line 953, in run_commands\r\n    self.run_command(cmd)\r\n  File \"/usr/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n    cmd_obj.run()\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/command/install.py\", line 67, in run\r\n    self.do_egg_install()\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/command/install.py\", line 117, in do_egg_install\r\n    cmd.run()\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 380, in run\r\n    self.easy_install(spec, not self.no_deps)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 610, in easy_install\r\n    return self.install_item(None, spec, tmpdir, deps, True)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 661, in install_item\r\n    self.process_distribution(spec, dist, deps)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 709, in process_distribution\r\n    [requirement], self.local_index, self.easy_install\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/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/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 1081, in best_match\r\n    return self.obtain(req, installer)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 1093, in obtain\r\n    return installer(requirement)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/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/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/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/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/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/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/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/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/command/easy_install.py\", line 1056, in run_setup\r\n    run_setup(setup_script, args)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 240, in run_setup\r\n    raise\r\n  File \"/usr/lib/python2.7/contextlib.py\", line 35, in __exit__\r\n    self.gen.throw(type, value, traceback)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 193, in setup_context\r\n    yield\r\n  File \"/usr/lib/python2.7/contextlib.py\", line 35, in __exit__\r\n    self.gen.throw(type, value, traceback)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 164, in save_modules\r\n    saved_exc.resume()\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 139, in resume\r\n    compat.reraise(type, exc, self._tb)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 152, in save_modules\r\n    yield saved\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 193, in setup_context\r\n    yield\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 237, in run_setup\r\n    DirectorySandbox(setup_dir).run(runner)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 267, in run\r\n    return func()\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 236, in runner\r\n    _execfile(setup_script, ns)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/sandbox.py\", line 46, in _execfile\r\n    exec(code, globals, locals)\r\n  File \"/tmp/easy_install-Wtdg_w/autograd-1.1.2/setup.py\", line 79, in <module>\r\n    \r\n  File \"/usr/lib/python2.7/distutils/core.py\", line 151, in setup\r\n    dist.run_commands()\r\n  File \"/usr/lib/python2.7/distutils/dist.py\", line 953, in run_commands\r\n    self.run_command(cmd)\r\n  File \"/usr/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n    cmd_obj.run()\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/command/bdist_egg.py\", line 151, in run\r\n    self.run_command(\"egg_info\")\r\n  File \"/usr/lib/python2.7/distutils/cmd.py\", line 326, in run_command\r\n    self.distribution.run_command(command)\r\n  File \"/usr/lib/python2.7/distutils/dist.py\", line 972, in run_command\r\n    cmd_obj.run()\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/command/egg_info.py\", line 180, in run\r\n    self.find_sources()\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/command/egg_info.py\", line 207, in find_sources\r\n    mm.run()\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/command/egg_info.py\", line 291, in run\r\n    self.add_defaults()\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/command/egg_info.py\", line 320, in add_defaults\r\n    sdist.add_defaults(self)\r\n  File \"/home/docs/checkouts/readthedocs.org/user_builds/pycalphad/envs/develop/local/lib/python2.7/site-packages/setuptools/command/sdist.py\", line 130, in add_defaults\r\n    build_ext = self.get_finalized_command('build_ext')\r\n  File \"/usr/lib/python2.7/distutils/cmd.py\", line 312, in get_finalized_command\r\n    cmd_obj.ensure_finalized()\r\n  File \"/usr/lib/python2.7/distutils/cmd.py\", line 109, in ensure_finalized\r\n    self.finalize_options()\r\n  File \"/tmp/easy_install-Wtdg_w/autograd-1.1.2/setup.py\", line 22, in finalize_options\r\n    url='https://github.com/richardotis/pycalphad',\r\nAttributeError: 'dict' object has no attribute '__NUMPY_SETUP__'\r\n```"},"comment":{"url":"https://api.github.com/repos/richardotis/pycalphad/issues/comments/154910516","html_url":"https://github.com/richardotis/pycalphad/issues/26#issuecomment-154910516","issue_url":"https://api.github.com/repos/richardotis/pycalphad/issues/26","id":154910516,"user":{"login":"richardotis","id":6405510,"avatar_url":"https://avatars.githubusercontent.com/u/6405510?v=3","gravatar_id":"","url":"https://api.github.com/users/richardotis","html_url":"https://github.com/richardotis","followers_url":"https://api.github.com/users/richardotis/followers","following_url":"https://api.github.com/users/richardotis/following{/other_user}","gists_url":"https://api.github.com/users/richardotis/gists{/gist_id}","starred_url":"https://api.github.com/users/richardotis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardotis/subscriptions","organizations_url":"https://api.github.com/users/richardotis/orgs","repos_url":"https://api.github.com/users/richardotis/repos","events_url":"https://api.github.com/users/richardotis/events{/privacy}","received_events_url":"https://api.github.com/users/richardotis/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T03:37:11Z","updated_at":"2015-11-09T03:37:11Z","body":"I just installed that branch into a clean environment with all of pycalphad's other dependencies and `python setup.py install` worked. If I try to do the same thing against the autograd on PyPI, it fails. However, if I install autograd's master branch, it *also* works. I'm thinking it's more a function of being preinstalled (and thus hooking into something setuptools is doing). I'm not sure there's a way to figure out if your fix works without involving PyPI somehow.\r\n\r\nI'm going to play with the requirements.txt file on RTD and see if I can't bypass this issue by preinstalling autograd."}}