{"action":"created","comment":{"url":"https://api.github.com/repos/saghul/pycares/pulls/comments/62304378","id":62304378,"diff_hunk":"@@ -0,0 +1,667 @@\n+#!/usr/bin/env python\n+\n+from _pycares_cffi import ffi as _ffi, lib as _lib\n+import _cffi_backend","path":"pycares/_cfficore/__init__.py","position":4,"original_position":4,"commit_id":"51da917305c6403d4f372d1f81c416a1cd02b87d","original_commit_id":"51da917305c6403d4f372d1f81c416a1cd02b87d","user":{"login":"boytm","id":5652342,"avatar_url":"https://avatars.githubusercontent.com/u/5652342?v=3","gravatar_id":"","url":"https://api.github.com/users/boytm","html_url":"https://github.com/boytm","followers_url":"https://api.github.com/users/boytm/followers","following_url":"https://api.github.com/users/boytm/following{/other_user}","gists_url":"https://api.github.com/users/boytm/gists{/gist_id}","starred_url":"https://api.github.com/users/boytm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boytm/subscriptions","organizations_url":"https://api.github.com/users/boytm/orgs","repos_url":"https://api.github.com/users/boytm/repos","events_url":"https://api.github.com/users/boytm/events{/privacy}","received_events_url":"https://api.github.com/users/boytm/received_events","type":"User","site_admin":false},"body":"Note that some bundler tools that try to find all modules used by a project, like PyInstaller, will miss _cffi_backend in the out-of-line mode because your program contains no explicit import cffi or import _cffi_backend. You need to add _cffi_backend explicitly (as a “hidden import” in PyInstaller, but it can also be done more generally by adding the line import _cffi_backend in your main program).\r\n\r\nhttps://cffi.readthedocs.io/en/latest/cdef.html","created_at":"2016-05-06T08:58:51Z","updated_at":"2016-05-06T08:58:51Z","html_url":"https://github.com/saghul/pycares/pull/29#discussion_r62304378","pull_request_url":"https://api.github.com/repos/saghul/pycares/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/saghul/pycares/pulls/comments/62304378"},"html":{"href":"https://github.com/saghul/pycares/pull/29#discussion_r62304378"},"pull_request":{"href":"https://api.github.com/repos/saghul/pycares/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/saghul/pycares/pulls/29","id":68806584,"html_url":"https://github.com/saghul/pycares/pull/29","diff_url":"https://github.com/saghul/pycares/pull/29.diff","patch_url":"https://github.com/saghul/pycares/pull/29.patch","issue_url":"https://api.github.com/repos/saghul/pycares/issues/29","number":29,"state":"open","locked":false,"title":"cffi port","user":{"login":"boytm","id":5652342,"avatar_url":"https://avatars.githubusercontent.com/u/5652342?v=3","gravatar_id":"","url":"https://api.github.com/users/boytm","html_url":"https://github.com/boytm","followers_url":"https://api.github.com/users/boytm/followers","following_url":"https://api.github.com/users/boytm/following{/other_user}","gists_url":"https://api.github.com/users/boytm/gists{/gist_id}","starred_url":"https://api.github.com/users/boytm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boytm/subscriptions","organizations_url":"https://api.github.com/users/boytm/orgs","repos_url":"https://api.github.com/users/boytm/repos","events_url":"https://api.github.com/users/boytm/events{/privacy}","received_events_url":"https://api.github.com/users/boytm/received_events","type":"User","site_admin":false},"body":"Is this directory structure is what you want?\r\nCurrently travis-ci pypy build fail on run \"tests.py\", show message: \r\n\r\n> ImportError: No module named _pycares_cffi .\r\n\r\nBut previous step \"python setup.py install \" show success. Any suggestion?\r\n","created_at":"2016-05-04T03:25:12Z","updated_at":"2016-05-06T08:58:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc8a9ec1b887fdaeb3393c64c65033fd10693376","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/saghul/pycares/pulls/29/commits","review_comments_url":"https://api.github.com/repos/saghul/pycares/pulls/29/comments","review_comment_url":"https://api.github.com/repos/saghul/pycares/pulls/comments{/number}","comments_url":"https://api.github.com/repos/saghul/pycares/issues/29/comments","statuses_url":"https://api.github.com/repos/saghul/pycares/statuses/51da917305c6403d4f372d1f81c416a1cd02b87d","head":{"label":"boytm:cffi","ref":"cffi","sha":"51da917305c6403d4f372d1f81c416a1cd02b87d","user":{"login":"boytm","id":5652342,"avatar_url":"https://avatars.githubusercontent.com/u/5652342?v=3","gravatar_id":"","url":"https://api.github.com/users/boytm","html_url":"https://github.com/boytm","followers_url":"https://api.github.com/users/boytm/followers","following_url":"https://api.github.com/users/boytm/following{/other_user}","gists_url":"https://api.github.com/users/boytm/gists{/gist_id}","starred_url":"https://api.github.com/users/boytm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boytm/subscriptions","organizations_url":"https://api.github.com/users/boytm/orgs","repos_url":"https://api.github.com/users/boytm/repos","events_url":"https://api.github.com/users/boytm/events{/privacy}","received_events_url":"https://api.github.com/users/boytm/received_events","type":"User","site_admin":false},"repo":{"id":47625159,"name":"pycares","full_name":"boytm/pycares","owner":{"login":"boytm","id":5652342,"avatar_url":"https://avatars.githubusercontent.com/u/5652342?v=3","gravatar_id":"","url":"https://api.github.com/users/boytm","html_url":"https://github.com/boytm","followers_url":"https://api.github.com/users/boytm/followers","following_url":"https://api.github.com/users/boytm/following{/other_user}","gists_url":"https://api.github.com/users/boytm/gists{/gist_id}","starred_url":"https://api.github.com/users/boytm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boytm/subscriptions","organizations_url":"https://api.github.com/users/boytm/orgs","repos_url":"https://api.github.com/users/boytm/repos","events_url":"https://api.github.com/users/boytm/events{/privacy}","received_events_url":"https://api.github.com/users/boytm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/boytm/pycares","description":"cffi port Python interface for c-ares","fork":true,"url":"https://api.github.com/repos/boytm/pycares","forks_url":"https://api.github.com/repos/boytm/pycares/forks","keys_url":"https://api.github.com/repos/boytm/pycares/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boytm/pycares/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boytm/pycares/teams","hooks_url":"https://api.github.com/repos/boytm/pycares/hooks","issue_events_url":"https://api.github.com/repos/boytm/pycares/issues/events{/number}","events_url":"https://api.github.com/repos/boytm/pycares/events","assignees_url":"https://api.github.com/repos/boytm/pycares/assignees{/user}","branches_url":"https://api.github.com/repos/boytm/pycares/branches{/branch}","tags_url":"https://api.github.com/repos/boytm/pycares/tags","blobs_url":"https://api.github.com/repos/boytm/pycares/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boytm/pycares/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boytm/pycares/git/refs{/sha}","trees_url":"https://api.github.com/repos/boytm/pycares/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boytm/pycares/statuses/{sha}","languages_url":"https://api.github.com/repos/boytm/pycares/languages","stargazers_url":"https://api.github.com/repos/boytm/pycares/stargazers","contributors_url":"https://api.github.com/repos/boytm/pycares/contributors","subscribers_url":"https://api.github.com/repos/boytm/pycares/subscribers","subscription_url":"https://api.github.com/repos/boytm/pycares/subscription","commits_url":"https://api.github.com/repos/boytm/pycares/commits{/sha}","git_commits_url":"https://api.github.com/repos/boytm/pycares/git/commits{/sha}","comments_url":"https://api.github.com/repos/boytm/pycares/comments{/number}","issue_comment_url":"https://api.github.com/repos/boytm/pycares/issues/comments{/number}","contents_url":"https://api.github.com/repos/boytm/pycares/contents/{+path}","compare_url":"https://api.github.com/repos/boytm/pycares/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boytm/pycares/merges","archive_url":"https://api.github.com/repos/boytm/pycares/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boytm/pycares/downloads","issues_url":"https://api.github.com/repos/boytm/pycares/issues{/number}","pulls_url":"https://api.github.com/repos/boytm/pycares/pulls{/number}","milestones_url":"https://api.github.com/repos/boytm/pycares/milestones{/number}","notifications_url":"https://api.github.com/repos/boytm/pycares/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boytm/pycares/labels{/name}","releases_url":"https://api.github.com/repos/boytm/pycares/releases{/id}","deployments_url":"https://api.github.com/repos/boytm/pycares/deployments","created_at":"2015-12-08T13:52:39Z","updated_at":"2016-04-29T21:06:20Z","pushed_at":"2016-05-04T10:15:23Z","git_url":"git://github.com/boytm/pycares.git","ssh_url":"git@github.com:boytm/pycares.git","clone_url":"https://github.com/boytm/pycares.git","svn_url":"https://github.com/boytm/pycares","homepage":"https://pypi.python.org/pypi/pycares","size":465,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"cffi"}},"base":{"label":"saghul:master","ref":"master","sha":"48fb58fac00079e0858987310ff8c0ad637b2c9f","user":{"login":"saghul","id":317464,"avatar_url":"https://avatars.githubusercontent.com/u/317464?v=3","gravatar_id":"","url":"https://api.github.com/users/saghul","html_url":"https://github.com/saghul","followers_url":"https://api.github.com/users/saghul/followers","following_url":"https://api.github.com/users/saghul/following{/other_user}","gists_url":"https://api.github.com/users/saghul/gists{/gist_id}","starred_url":"https://api.github.com/users/saghul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saghul/subscriptions","organizations_url":"https://api.github.com/users/saghul/orgs","repos_url":"https://api.github.com/users/saghul/repos","events_url":"https://api.github.com/users/saghul/events{/privacy}","received_events_url":"https://api.github.com/users/saghul/received_events","type":"User","site_admin":false},"repo":{"id":4949798,"name":"pycares","full_name":"saghul/pycares","owner":{"login":"saghul","id":317464,"avatar_url":"https://avatars.githubusercontent.com/u/317464?v=3","gravatar_id":"","url":"https://api.github.com/users/saghul","html_url":"https://github.com/saghul","followers_url":"https://api.github.com/users/saghul/followers","following_url":"https://api.github.com/users/saghul/following{/other_user}","gists_url":"https://api.github.com/users/saghul/gists{/gist_id}","starred_url":"https://api.github.com/users/saghul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saghul/subscriptions","organizations_url":"https://api.github.com/users/saghul/orgs","repos_url":"https://api.github.com/users/saghul/repos","events_url":"https://api.github.com/users/saghul/events{/privacy}","received_events_url":"https://api.github.com/users/saghul/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/saghul/pycares","description":"Python interface for c-ares","fork":false,"url":"https://api.github.com/repos/saghul/pycares","forks_url":"https://api.github.com/repos/saghul/pycares/forks","keys_url":"https://api.github.com/repos/saghul/pycares/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saghul/pycares/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saghul/pycares/teams","hooks_url":"https://api.github.com/repos/saghul/pycares/hooks","issue_events_url":"https://api.github.com/repos/saghul/pycares/issues/events{/number}","events_url":"https://api.github.com/repos/saghul/pycares/events","assignees_url":"https://api.github.com/repos/saghul/pycares/assignees{/user}","branches_url":"https://api.github.com/repos/saghul/pycares/branches{/branch}","tags_url":"https://api.github.com/repos/saghul/pycares/tags","blobs_url":"https://api.github.com/repos/saghul/pycares/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saghul/pycares/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saghul/pycares/git/refs{/sha}","trees_url":"https://api.github.com/repos/saghul/pycares/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saghul/pycares/statuses/{sha}","languages_url":"https://api.github.com/repos/saghul/pycares/languages","stargazers_url":"https://api.github.com/repos/saghul/pycares/stargazers","contributors_url":"https://api.github.com/repos/saghul/pycares/contributors","subscribers_url":"https://api.github.com/repos/saghul/pycares/subscribers","subscription_url":"https://api.github.com/repos/saghul/pycares/subscription","commits_url":"https://api.github.com/repos/saghul/pycares/commits{/sha}","git_commits_url":"https://api.github.com/repos/saghul/pycares/git/commits{/sha}","comments_url":"https://api.github.com/repos/saghul/pycares/comments{/number}","issue_comment_url":"https://api.github.com/repos/saghul/pycares/issues/comments{/number}","contents_url":"https://api.github.com/repos/saghul/pycares/contents/{+path}","compare_url":"https://api.github.com/repos/saghul/pycares/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saghul/pycares/merges","archive_url":"https://api.github.com/repos/saghul/pycares/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saghul/pycares/downloads","issues_url":"https://api.github.com/repos/saghul/pycares/issues{/number}","pulls_url":"https://api.github.com/repos/saghul/pycares/pulls{/number}","milestones_url":"https://api.github.com/repos/saghul/pycares/milestones{/number}","notifications_url":"https://api.github.com/repos/saghul/pycares/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saghul/pycares/labels{/name}","releases_url":"https://api.github.com/repos/saghul/pycares/releases{/id}","deployments_url":"https://api.github.com/repos/saghul/pycares/deployments","created_at":"2012-07-08T20:55:01Z","updated_at":"2016-04-29T21:06:26Z","pushed_at":"2016-05-04T10:15:23Z","git_url":"git://github.com/saghul/pycares.git","ssh_url":"git@github.com:saghul/pycares.git","clone_url":"https://github.com/saghul/pycares.git","svn_url":"https://github.com/saghul/pycares","homepage":"https://pypi.python.org/pypi/pycares","size":370,"stargazers_count":49,"watchers_count":49,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":6,"forks":19,"open_issues":6,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/saghul/pycares/pulls/29"},"html":{"href":"https://github.com/saghul/pycares/pull/29"},"issue":{"href":"https://api.github.com/repos/saghul/pycares/issues/29"},"comments":{"href":"https://api.github.com/repos/saghul/pycares/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/saghul/pycares/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/saghul/pycares/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/saghul/pycares/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/saghul/pycares/statuses/51da917305c6403d4f372d1f81c416a1cd02b87d"}}}}