{"action":"created","issue":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1411","labels_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1411/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1411/comments","events_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1411/events","html_url":"https://github.com/sphinx-doc/testing2/issues/1411","id":53299063,"number":1411,"title":"Sphinx 1.2.2 project build error using python 3.1","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/cmdline","name":"cmdline","color":"FFFFFF"},{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/prio%3Alow","name":"prio:low","color":"FFFFFF"},{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/sphinx-doc/testing2/milestones/8","labels_url":"https://api.github.com/repos/sphinx-doc/testing2/milestones/8/labels","id":920282,"number":8,"title":"1.2.x","description":null,"creator":{"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},"open_issues":5,"closed_issues":11,"state":"open","created_at":"2015-01-03T06:03:52Z","updated_at":"2015-01-03T09:12:26Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-01-03T09:12:26Z","updated_at":"2015-01-03T09:12:29Z","closed_at":"2015-01-03T09:12:26Z","body":"Right after installing Sphinx 1.2.2 and creating a new project using sphinx-quickstart, I get this :\n\n```\n$ make doc\nsphinx-build -b html -d build/doctrees   . build/html\nRunning Sphinx v1.2.2\n\nException occurred:\n  File \"/usr/local/lib/python3.1/dist-packages/Sphinx-1.2.2-py3.1.egg/sphinx/util/pycompat.py\", line 94, in execfile_\n    filepath_enc = filepath.encode(fs_encoding, encoding='UTF-8')\nTypeError: encode() takes no keyword arguments\nThe full traceback has been saved in /tmp/sphinx-err-Hl8y31.log, if you want to report the issue to the developers.\n\nWell this is the trace :\n\n# Sphinx version: 1.2.2\n# Python version: 3.1.2\n# Docutils version: 0.11 release\n# Jinja2 version: 2.6\n# Loaded extensions:\nTraceback (most recent call last):\n  File \"/usr/local/lib/python3.1/dist-packages/Sphinx-1.2.2-py3.1.egg/sphinx/cmdline.py\", line 253, in main\n    warningiserror, tags, verbosity, parallel)\n  File \"/usr/local/lib/python3.1/dist-packages/Sphinx-1.2.2-py3.1.egg/sphinx/application.py\", line 107, in __init__\n    confoverrides or {}, self.tags)\n  File \"/usr/local/lib/python3.1/dist-packages/Sphinx-1.2.2-py3.1.egg/sphinx/config.py\", line 229, in __init__\n    execfile_(filename, config)\n  File \"/usr/local/lib/python3.1/dist-packages/Sphinx-1.2.2-py3.1.egg/sphinx/util/pycompat.py\", line 96, in execfile_\n    code = compile(source, filepath_enc, 'exec')\nTypeError: compile() argument 2 must be string, not bytes\n```\n\nI have found a working solution :\n\n```\n$ gksu gedit /usr/local/lib/python3.1/dist-packages/Sphinx-1.2.2-py3.1.egg/sphinx/util/pycompat.py\nthen add line 95, just before 'try:'\n        filepath_enc = str(filepath_enc, encoding='UTF-8')\n```\n\nThe bug does not happen on other machines using python 3.2 or 3.3.\nSo why using python 3.1 ? Because I have Ubuntu 10.04 LTS on it and cannot upgrade right now.\n\nI have not checked if my solution works for other python versions, sorry.\n\nThanks for all the good job, sphinx is great!\nI'm just wondering why the \"intelligent toolbar\" js code is not given in the options, but must be tweaked from the sphinx-doc page ? \n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/birkenfeld/sphinx/issue/1411\n- Originally reported by: Anonymous\n- Originally created at: 2014-03-04T17:01:50.672\n"},"comment":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/comments/68588364","html_url":"https://github.com/sphinx-doc/testing2/issues/1411#issuecomment-68588364","issue_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1411","id":68588364,"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-03T09:12:29Z","updated_at":"2015-01-03T09:12:29Z","body":"_From Georg Brandl on 2014-03-04 17:44:29+00:00_\n\nI don't understand the first traceback. The code does not appear in the source, did that appear after a change of yours?\n\nIn general, I'm not too keen on supporting Python 3.1 -- it is quite dead upstream and has many such small incompatibilities."}}