{"action":"created","issue":{"url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/2028","repository_url":"https://api.github.com/repos/rtfd/readthedocs.org","labels_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/2028/labels{/name}","comments_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/2028/comments","events_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/2028/events","html_url":"https://github.com/rtfd/readthedocs.org/issues/2028","id":137276948,"number":2028,"title":"local running readthedocs throws import error on lxml","user":{"login":"AvdN","id":1210650,"avatar_url":"https://avatars.githubusercontent.com/u/1210650?v=3","gravatar_id":"","url":"https://api.github.com/users/AvdN","html_url":"https://github.com/AvdN","followers_url":"https://api.github.com/users/AvdN/followers","following_url":"https://api.github.com/users/AvdN/following{/other_user}","gists_url":"https://api.github.com/users/AvdN/gists{/gist_id}","starred_url":"https://api.github.com/users/AvdN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AvdN/subscriptions","organizations_url":"https://api.github.com/users/AvdN/orgs","repos_url":"https://api.github.com/users/AvdN/repos","events_url":"https://api.github.com/users/AvdN/events{/privacy}","received_events_url":"https://api.github.com/users/AvdN/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rtfd/readthedocs.org/labels/Triage:%20Community%20Effort","name":"Triage: Community Effort","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-29T14:52:30Z","updated_at":"2016-02-29T18:42:17Z","closed_at":null,"body":"## Details\r\nI tried installing read the docs locally in a virtualenv based on 2.7.10. This virtualenv was build\r\nusing pyenv.\r\nThe server could be started, but on every access an ImportError would be thrown:\r\n```\r\n\t\tfrom pyquery import PyQuery\r\n\tFile \"/home/venv/rtd/lib/python2.7/site-packages/pyquery/__init__.py\", line 12, in <module>\r\n\t\tfrom .pyquery import PyQuery\r\n\tFile \"/home/venv/rtd/lib/python2.7/site-packages/pyquery/pyquery.py\", line 8, in <module>\r\n\t\tfrom lxml import etree\r\nImportError: /home/venv/rtd/lib/python2.7/site-packages/lxml/etree.so: undefined symbol: PyUnicodeUCS2_DecodeLatin1\r\n```\r\nAfter recreating the virtualenv with the system python (2.7.6 on Linux Mint 17.3) this error\r\ngoes away. It seems that the python you use for read-the-docs requires building with `--enable-unicode=ucs4` (not tested, assumption based on comparing the output of `sysconfig.get_config_vars('CONFIG_ARGS')`)\r\n\r\n\r\nIf this issue is for a specific project or build, include the following:\r\n\r\n* Project: \r\n* Build #: \r\n"},"comment":{"url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/comments/190326101","html_url":"https://github.com/rtfd/readthedocs.org/issues/2028#issuecomment-190326101","issue_url":"https://api.github.com/repos/rtfd/readthedocs.org/issues/2028","id":190326101,"user":{"login":"agjohnson","id":1140183,"avatar_url":"https://avatars.githubusercontent.com/u/1140183?v=3","gravatar_id":"","url":"https://api.github.com/users/agjohnson","html_url":"https://github.com/agjohnson","followers_url":"https://api.github.com/users/agjohnson/followers","following_url":"https://api.github.com/users/agjohnson/following{/other_user}","gists_url":"https://api.github.com/users/agjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/agjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agjohnson/subscriptions","organizations_url":"https://api.github.com/users/agjohnson/orgs","repos_url":"https://api.github.com/users/agjohnson/repos","events_url":"https://api.github.com/users/agjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/agjohnson/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T18:42:17Z","updated_at":"2016-02-29T18:42:17Z","body":"We don't support Linux Mint, so you're bound to run into issues. Not sure there is anything actionable by the core team."}}