{"action":"created","issue":{"url":"https://api.github.com/repos/ankushshah89/python-docx2txt/issues/6","repository_url":"https://api.github.com/repos/ankushshah89/python-docx2txt","labels_url":"https://api.github.com/repos/ankushshah89/python-docx2txt/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/ankushshah89/python-docx2txt/issues/6/comments","events_url":"https://api.github.com/repos/ankushshah89/python-docx2txt/issues/6/events","html_url":"https://github.com/ankushshah89/python-docx2txt/issues/6","id":146699853,"number":6,"title":"text = docx2txt.process(\"file.docx\", \"/tmp/img_dir\")  Function not working","user":{"login":"GarrettHartley","id":7108567,"avatar_url":"https://avatars.githubusercontent.com/u/7108567?v=3","gravatar_id":"","url":"https://api.github.com/users/GarrettHartley","html_url":"https://github.com/GarrettHartley","followers_url":"https://api.github.com/users/GarrettHartley/followers","following_url":"https://api.github.com/users/GarrettHartley/following{/other_user}","gists_url":"https://api.github.com/users/GarrettHartley/gists{/gist_id}","starred_url":"https://api.github.com/users/GarrettHartley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GarrettHartley/subscriptions","organizations_url":"https://api.github.com/users/GarrettHartley/orgs","repos_url":"https://api.github.com/users/GarrettHartley/repos","events_url":"https://api.github.com/users/GarrettHartley/events{/privacy}","received_events_url":"https://api.github.com/users/GarrettHartley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-07T17:57:57Z","updated_at":"2016-04-08T23:39:10Z","closed_at":null,"body":"I have the following python script\r\n\r\nimport docx2txt\r\n\r\ntext = docx2txt.process(\"first-grade--consonants-and-digraphs--ng--king-who-swings--lesson-plan.docx\", \"/imgs\") \r\n\r\nFrom your description I would expect this function to assign the 'text' variable with the text of the document and then populate the folder '/imgs' with the images in the document. \r\n\r\nI get this error: \r\n\r\nTraceback (most recent call last):\r\n  File \"doc2html.py\", line 3, in <module>\r\n    text = docx2txt.process(\"first-grade--consonants-and-digraphs--ng--king-who-swings--lesson-plan.docx\", \"/imgs\") \r\n  File \"/Library/Python/2.7/site-packages/docx2txt/docx2txt.py\", line 103, in process\r\n    with open(dst_fname, \"w\") as dst_f:\r\nIOError: [Errno 2] No such file or directory: '/imgs/image3.png'\r\n\r\nIt appears the function is trying to read a file from where I would expect the file to be moved to. "},"comment":{"url":"https://api.github.com/repos/ankushshah89/python-docx2txt/issues/comments/207648469","html_url":"https://github.com/ankushshah89/python-docx2txt/issues/6#issuecomment-207648469","issue_url":"https://api.github.com/repos/ankushshah89/python-docx2txt/issues/6","id":207648469,"user":{"login":"ankushshah89","id":2726453,"avatar_url":"https://avatars.githubusercontent.com/u/2726453?v=3","gravatar_id":"","url":"https://api.github.com/users/ankushshah89","html_url":"https://github.com/ankushshah89","followers_url":"https://api.github.com/users/ankushshah89/followers","following_url":"https://api.github.com/users/ankushshah89/following{/other_user}","gists_url":"https://api.github.com/users/ankushshah89/gists{/gist_id}","starred_url":"https://api.github.com/users/ankushshah89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankushshah89/subscriptions","organizations_url":"https://api.github.com/users/ankushshah89/orgs","repos_url":"https://api.github.com/users/ankushshah89/repos","events_url":"https://api.github.com/users/ankushshah89/events{/privacy}","received_events_url":"https://api.github.com/users/ankushshah89/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T23:39:10Z","updated_at":"2016-04-08T23:39:10Z","body":"/test has permission issue. \"/\" means root directory. i think you want to write to \"test\" and not to \"/test\". "}}