{"action":"closed","issue":{"url":"https://api.github.com/repos/mesnilgr/is13/issues/4","labels_url":"https://api.github.com/repos/mesnilgr/is13/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/mesnilgr/is13/issues/4/comments","events_url":"https://api.github.com/repos/mesnilgr/is13/issues/4/events","html_url":"https://github.com/mesnilgr/is13/issues/4","id":94303120,"number":4,"title":"ImportError: No module named is13.data","user":{"login":"perellonieto","id":2480334,"avatar_url":"https://avatars.githubusercontent.com/u/2480334?v=3","gravatar_id":"","url":"https://api.github.com/users/perellonieto","html_url":"https://github.com/perellonieto","followers_url":"https://api.github.com/users/perellonieto/followers","following_url":"https://api.github.com/users/perellonieto/following{/other_user}","gists_url":"https://api.github.com/users/perellonieto/gists{/gist_id}","starred_url":"https://api.github.com/users/perellonieto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perellonieto/subscriptions","organizations_url":"https://api.github.com/users/perellonieto/orgs","repos_url":"https://api.github.com/users/perellonieto/repos","events_url":"https://api.github.com/users/perellonieto/events{/privacy}","received_events_url":"https://api.github.com/users/perellonieto/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-10T13:04:08Z","updated_at":"2015-07-10T13:23:53Z","closed_at":"2015-07-10T13:23:53Z","body":"README.md - \r\nThe two lines of code to run the examples do not work if you do not add your actual path into the PYTHONPATH variable.\r\n\r\n```\r\ngit clone git@github.com:mesnilgr/is13.git\r\npython is13/examples/elman-forward.py\r\n```\r\n\r\nWill throw the error:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"./is13/examples/elman-forward.py\", line 8, in <module>\r\n    from is13.data import load\r\nImportError: No module named is13.data\r\n```\r\n\r\nBy default Python do not add your actual path in sys.path and you need to add it explicitly.\r\nIn case of Bash I solved the problem by running:\r\n\r\n```\r\ngit clone git@github.com:mesnilgr/is13.git\r\nexport PYTHONPATH=${PYTHONPATH}:`pwd -P`\r\npython is13/examples/elman-forward.py\r\n```\r\n\r\nThis line adds your current path without following symbolic links.\r\n\r\nI know that in every Shell and Operating System the solution can be a different procedure, for that reason, I think you could just indicate that it is necessary to add your actual path in the variable PYTHONPATH."}}