{"action":"created","issue":{"url":"https://api.github.com/repos/d11wtq/dockerpty-restored-2/issues/7","labels_url":"https://api.github.com/repos/d11wtq/dockerpty-restored-2/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/d11wtq/dockerpty-restored-2/issues/7/comments","events_url":"https://api.github.com/repos/d11wtq/dockerpty-restored-2/issues/7/events","html_url":"https://github.com/d11wtq/dockerpty-restored-2/issues/7","id":107831675,"number":7,"title":"dockerpty\\io.py   fcntl <- linux specific. Not cross-platform. ","user":{"login":"d11wtq","id":37948,"avatar_url":"https://avatars.githubusercontent.com/u/37948?v=3","gravatar_id":"","url":"https://api.github.com/users/d11wtq","html_url":"https://github.com/d11wtq","followers_url":"https://api.github.com/users/d11wtq/followers","following_url":"https://api.github.com/users/d11wtq/following{/other_user}","gists_url":"https://api.github.com/users/d11wtq/gists{/gist_id}","starred_url":"https://api.github.com/users/d11wtq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d11wtq/subscriptions","organizations_url":"https://api.github.com/users/d11wtq/orgs","repos_url":"https://api.github.com/users/d11wtq/repos","events_url":"https://api.github.com/users/d11wtq/events{/privacy}","received_events_url":"https://api.github.com/users/d11wtq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-23T00:50:22Z","updated_at":"2015-09-23T00:50:39Z","closed_at":null,"body":"#7 Issue by __ZeerDonker__, created on: 2014-08-18T12:08:01Z\n\n\"\"\"\r\nlib\\site-packages\\dockerpty\\io.py\", line 18, in <module>\r\n    import fcntl\r\nImportError: No module named fcntl\r\n\"\"\"\r\n\r\nSome googling turned up that fcntl is a linux specific module to lock files.\r\n\r\nhttp://sourceforge.net/p/roundup/code/ci/default/tree/roundup/backends/portalocker.py\r\n\r\nApparently Django for instance also wraps fcntl and the win32api equivalent. \r\n\"It turns out that Django provides some abstractions around fcntl and the win32api equivalent. This is lock() and unlock() in django.core.files.locks.\"\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/d11wtq/dockerpty-restored-2/issues/comments/142464047","html_url":"https://github.com/d11wtq/dockerpty-restored-2/issues/7#issuecomment-142464047","issue_url":"https://api.github.com/repos/d11wtq/dockerpty-restored-2/issues/7","id":142464047,"user":{"login":"d11wtq","id":37948,"avatar_url":"https://avatars.githubusercontent.com/u/37948?v=3","gravatar_id":"","url":"https://api.github.com/users/d11wtq","html_url":"https://github.com/d11wtq","followers_url":"https://api.github.com/users/d11wtq/followers","following_url":"https://api.github.com/users/d11wtq/following{/other_user}","gists_url":"https://api.github.com/users/d11wtq/gists{/gist_id}","starred_url":"https://api.github.com/users/d11wtq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d11wtq/subscriptions","organizations_url":"https://api.github.com/users/d11wtq/orgs","repos_url":"https://api.github.com/users/d11wtq/repos","events_url":"https://api.github.com/users/d11wtq/events{/privacy}","received_events_url":"https://api.github.com/users/d11wtq/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T00:50:39Z","updated_at":"2015-09-23T00:50:39Z","body":"Comment by __Nicofuma__, created on: 2015-04-30T09:16:45Z\n\n Hi, I use docker for my dev environment and because it makes my life a lot easier. But I also have a Windows env and it will be awesome if dockerpty could support it too :) I'll try to see if I can do something but... if someone else has more knowledge than me in python it could be easier :)"}}