{"action":"created","issue":{"url":"https://api.github.com/repos/chaotic-kingdoms/OUXMLConverter/issues/22","repository_url":"https://api.github.com/repos/chaotic-kingdoms/OUXMLConverter","labels_url":"https://api.github.com/repos/chaotic-kingdoms/OUXMLConverter/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/chaotic-kingdoms/OUXMLConverter/issues/22/comments","events_url":"https://api.github.com/repos/chaotic-kingdoms/OUXMLConverter/issues/22/events","html_url":"https://github.com/chaotic-kingdoms/OUXMLConverter/issues/22","id":167291009,"number":22,"title":"OSError: [Errno 2] No such file or directory: '/home/alex/temp/temp/images'","user":{"login":"alexlittle","id":344917,"avatar_url":"https://avatars.githubusercontent.com/u/344917?v=3","gravatar_id":"","url":"https://api.github.com/users/alexlittle","html_url":"https://github.com/alexlittle","followers_url":"https://api.github.com/users/alexlittle/followers","following_url":"https://api.github.com/users/alexlittle/following{/other_user}","gists_url":"https://api.github.com/users/alexlittle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexlittle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexlittle/subscriptions","organizations_url":"https://api.github.com/users/alexlittle/orgs","repos_url":"https://api.github.com/users/alexlittle/repos","events_url":"https://api.github.com/users/alexlittle/events{/privacy}","received_events_url":"https://api.github.com/users/alexlittle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-25T06:27:37Z","updated_at":"2016-07-26T07:56:08Z","closed_at":null,"body":"I tried running the script, but am getting an error about the images directory:\r\n\r\n > Applying XSLT to the course (100%). Done.\r\nTraceback (most recent call last):\r\n  File \"ouxml/ouxml.py\", line 53, in <module>\r\n    main(sys.argv)\r\n  File \"ouxml/ouxml.py\", line 34, in main\r\n    course = parser.retrieve_course()\r\n  File \"/home/alex/data/Digital-Campus/development/openwash/OUXMLConverter/ouxml/CourseParser.py\", line 45, in retrieve_course\r\n    cp.preprocess_course()\r\n  File \"/home/alex/data/Digital-Campus/development/openwash/OUXMLConverter/ouxml/ContentPreprocessor.py\", line 24, in preprocess_course\r\n    self.optimize_images()\r\n  File \"/home/alex/data/Digital-Campus/development/openwash/OUXMLConverter/ouxml/ContentPreprocessor.py\", line 57, in optimize_images\r\n    images = listdir(images_dir)\r\nOSError: [Errno 2] No such file or directory: '/home/alex/temp/temp/images'\r\n\r\n\r\nFirst I'd tried running with a specified output path:\r\n> python ouxml/ouxml.py -o /home/alex/temp/ /home/alex/temp/openwash.txt\r\n\r\nand then without:\r\n> python ouxml/ouxml.py /home/alex/temp/openwash.txt\r\n\r\nI also tried creating the dir '/home/alex/temp/temp/images' - but I get the same error message each time."},"comment":{"url":"https://api.github.com/repos/chaotic-kingdoms/OUXMLConverter/issues/comments/235190039","html_url":"https://github.com/chaotic-kingdoms/OUXMLConverter/issues/22#issuecomment-235190039","issue_url":"https://api.github.com/repos/chaotic-kingdoms/OUXMLConverter/issues/22","id":235190039,"user":{"login":"jjoseba","id":6810415,"avatar_url":"https://avatars.githubusercontent.com/u/6810415?v=3","gravatar_id":"","url":"https://api.github.com/users/jjoseba","html_url":"https://github.com/jjoseba","followers_url":"https://api.github.com/users/jjoseba/followers","following_url":"https://api.github.com/users/jjoseba/following{/other_user}","gists_url":"https://api.github.com/users/jjoseba/gists{/gist_id}","starred_url":"https://api.github.com/users/jjoseba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjoseba/subscriptions","organizations_url":"https://api.github.com/users/jjoseba/orgs","repos_url":"https://api.github.com/users/jjoseba/repos","events_url":"https://api.github.com/users/jjoseba/events{/privacy}","received_events_url":"https://api.github.com/users/jjoseba/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T07:56:08Z","updated_at":"2016-07-26T07:56:08Z","body":"I can't manage to reproduce it...\r\nMy first impression was that it could be caused by a course that contains no images, but it works well too. What are the contents of your `openwash.txt`? Is the script run by a user that could not have permissions to execute in that directory?\r\n\r\nI'll add a try/catch anyway, and we'll see what happens"}}
{"actor":{"display_login":"jjoseba"}}