{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/991","repository_url":"https://api.github.com/repos/Microsoft/BashOnWindows","labels_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/991/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/991/comments","events_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/991/events","html_url":"https://github.com/Microsoft/BashOnWindows/issues/991","id":173362315,"number":991,"title":"Python 3.4 text file write failure","user":{"login":"kclulow","id":7812817,"avatar_url":"https://avatars.githubusercontent.com/u/7812817?v=3","gravatar_id":"","url":"https://api.github.com/users/kclulow","html_url":"https://github.com/kclulow","followers_url":"https://api.github.com/users/kclulow/followers","following_url":"https://api.github.com/users/kclulow/following{/other_user}","gists_url":"https://api.github.com/users/kclulow/gists{/gist_id}","starred_url":"https://api.github.com/users/kclulow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kclulow/subscriptions","organizations_url":"https://api.github.com/users/kclulow/orgs","repos_url":"https://api.github.com/users/kclulow/repos","events_url":"https://api.github.com/users/kclulow/events{/privacy}","received_events_url":"https://api.github.com/users/kclulow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-26T03:30:25Z","updated_at":"2016-08-28T18:05:56Z","closed_at":null,"body":"Please use the following bug reporting template to help produce actionable and reproducible issues. Please try to ensure that the reproduction is minimal so that the team can go through more bugs!\r\n\r\n* A brief description\r\nWhen writing a large CSV file (greater than 50000 lines) by reading from a pymssql cursor and using the standard csv writer, the application hangs within the csvwriter.writelines method and fails to return after writing all lines.\r\n\r\nSame code runs successfully on Centos7, Ubuntu, Red hat distros\r\n\r\n* Expected results\r\nMethod returns successfully\r\n\r\n* Actual results (with terminal output if applicable)\r\nMethod hangs\r\n\r\n\r\n\r\n* Required packages and commands to install\r\npython3\r\npip3\r\npymssql\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/comments/242989513","html_url":"https://github.com/Microsoft/BashOnWindows/issues/991#issuecomment-242989513","issue_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/991","id":242989513,"user":{"login":"aseering","id":363982,"avatar_url":"https://avatars.githubusercontent.com/u/363982?v=3","gravatar_id":"","url":"https://api.github.com/users/aseering","html_url":"https://github.com/aseering","followers_url":"https://api.github.com/users/aseering/followers","following_url":"https://api.github.com/users/aseering/following{/other_user}","gists_url":"https://api.github.com/users/aseering/gists{/gist_id}","starred_url":"https://api.github.com/users/aseering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aseering/subscriptions","organizations_url":"https://api.github.com/users/aseering/orgs","repos_url":"https://api.github.com/users/aseering/repos","events_url":"https://api.github.com/users/aseering/events{/privacy}","received_events_url":"https://api.github.com/users/aseering/received_events","type":"User","site_admin":false},"created_at":"2016-08-28T18:05:56Z","updated_at":"2016-08-28T18:05:56Z","body":"@kclulow -- interesting; could you share some example Python code that shows how you are calling `writelines()`?  Preferably a minimal snippet of code that reproduces this issue.\r\n\r\nI don't know offhand of any known issues with writing to files.  But there are some known issues with socket I/O ( #575 #610 #616 ).  If you're passing `writelines()` a generator s.t. it's streaming data over the network socket from pymssql as it's writing data to the file, then one of those issues might be the root cause."}}
{"actor":{"display_login":"aseering"}}