{"action":"closed","issue":{"url":"https://api.github.com/repos/frej/fast-export/issues/60","repository_url":"https://api.github.com/repos/frej/fast-export","labels_url":"https://api.github.com/repos/frej/fast-export/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/frej/fast-export/issues/60/comments","events_url":"https://api.github.com/repos/frej/fast-export/issues/60/events","html_url":"https://github.com/frej/fast-export/issues/60","id":131179071,"number":60,"title":"ImportError: No module named mercurial","user":{"login":"dritter","id":1544760,"avatar_url":"https://avatars.githubusercontent.com/u/1544760?v=3","gravatar_id":"","url":"https://api.github.com/users/dritter","html_url":"https://github.com/dritter","followers_url":"https://api.github.com/users/dritter/followers","following_url":"https://api.github.com/users/dritter/following{/other_user}","gists_url":"https://api.github.com/users/dritter/gists{/gist_id}","starred_url":"https://api.github.com/users/dritter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dritter/subscriptions","organizations_url":"https://api.github.com/users/dritter/orgs","repos_url":"https://api.github.com/users/dritter/repos","events_url":"https://api.github.com/users/dritter/events{/privacy}","received_events_url":"https://api.github.com/users/dritter/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-03T22:47:37Z","updated_at":"2016-02-05T17:27:11Z","closed_at":"2016-02-05T17:27:11Z","body":"I had to set the the `PYTHONPATH` explicitly: `export PYTHONPATH=\"/usr/local/lib/python2.7/site-packages:$PYTHONPATH\"`.\r\n\r\nI see two options for this problem:\r\nEither documenting this in the `README`, or having the script figuring out the correct path. Mercurial itself does it like this:\r\n```python\r\nlibdir = '../lib/python2.7/site-packages/'\r\n\r\nif libdir != '@' 'LIBDIR' '@':\r\n    if not os.path.isabs(libdir):\r\n        libdir = os.path.join(os.path.dirname(os.path.realpath(__file__)),\r\n                              libdir)\r\n        libdir = os.path.abspath(libdir)\r\n    sys.path.insert(0, libdir)\r\n```\r\nIt detects the path to the executable, and tries to find the according libpath."}}