{"action":"created","issue":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1034","labels_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1034/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1034/comments","events_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1034/events","html_url":"https://github.com/sphinx-doc/testing2/issues/1034","id":53293035,"number":1034,"title":"[intersphinx] Cannot find reference targets for built-in exceptions","user":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/extensions","name":"extensions","color":"FFFFFF"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-03T03:46:35Z","updated_at":"2015-01-03T03:46:38Z","closed_at":"2015-01-03T03:46:36Z","body":"Intersphinx can’t find the reference targets for build-in exceptions (like ValueError). However, it works with normal functions or classes (like os.path.join).\n\nMinimum example to reproduce the error:\n\n* Sphinx 1.1.3\n* Python 3.3, Mac OS X; Python 2.7, Ubuntu\n* sphinx-quickstart, enable intersphinx\n* Add \"-n\" to SPHINXOPTS in Makefile\n* Contents of index.rst\n\n```\n#!rst\n:func:`os.path.join()`\n:exc:`ValueError`\n```\n* make html will output the warning: \n\n```\n/tmp/test/index.rst:1: WARNING: py:exc reference target not found: ValueError\n```\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/birkenfeld/sphinx/issue/1034\n- Originally reported by: Stefan Scherfke\n- Originally created at: 2012-11-02T23:52:46.134\n"},"comment":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/comments/68581973","html_url":"https://github.com/sphinx-doc/testing2/issues/1034#issuecomment-68581973","issue_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1034","id":68581973,"user":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"created_at":"2015-01-03T03:46:38Z","updated_at":"2015-01-03T03:46:38Z","body":"_From Jon Waltman on 2012-11-03 00:56:48+00:00_\n\n\nI think this is due to the python 2 `objects.inv` being used in instead\nof the one for python 3.  Explicitly giving the python 3 docs url\nseems to work:\n\n```\nintersphinx_mapping = {'http://docs.python.org/3': None}\n```\n\nIt seems that `http://docs.python.org/objects.inv` redirects to\nthe python 2 version even though `http://docs.python.org/`\nredirects to the version 3 docs.\n"}}