{"action":"created","issue":{"url":"https://api.github.com/repos/PiotrDabkowski/Js2Py/issues/182","repository_url":"https://api.github.com/repos/PiotrDabkowski/Js2Py","labels_url":"https://api.github.com/repos/PiotrDabkowski/Js2Py/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/PiotrDabkowski/Js2Py/issues/182/comments","events_url":"https://api.github.com/repos/PiotrDabkowski/Js2Py/issues/182/events","html_url":"https://github.com/PiotrDabkowski/Js2Py/issues/182","id":486860408,"node_id":"MDU6SXNzdWU0ODY4NjA0MDg=","number":182,"title":"Even cannot execute example at ReadME.md","user":{"login":"chaseSpace","id":34116031,"node_id":"MDQ6VXNlcjM0MTE2MDMx","avatar_url":"https://avatars2.githubusercontent.com/u/34116031?v=4","gravatar_id":"","url":"https://api.github.com/users/chaseSpace","html_url":"https://github.com/chaseSpace","followers_url":"https://api.github.com/users/chaseSpace/followers","following_url":"https://api.github.com/users/chaseSpace/following{/other_user}","gists_url":"https://api.github.com/users/chaseSpace/gists{/gist_id}","starred_url":"https://api.github.com/users/chaseSpace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaseSpace/subscriptions","organizations_url":"https://api.github.com/users/chaseSpace/orgs","repos_url":"https://api.github.com/users/chaseSpace/repos","events_url":"https://api.github.com/users/chaseSpace/events{/privacy}","received_events_url":"https://api.github.com/users/chaseSpace/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-29T10:00:03Z","updated_at":"2019-08-29T13:01:31Z","closed_at":"2019-08-29T13:01:31Z","author_association":"NONE","body":"The last example:  \r\n```\r\n>>> x = \"\"\"pyimport urllib;\r\n           var result = urllib.urlopen('https://www.google.com/').read();\r\n           console.log(result.length)\r\n        \"\"\"\r\n>>> js2py.eval_js(x)\r\n18211\r\nundefined\r\n```\r\nException:\r\n```\r\n  File \"C:\\py36\\lib\\site-packages\\js2py\\base.py\", line 1317, in callprop\r\n    return self.get(prop)(*py_args)\r\n  File \"C:\\py36\\lib\\site-packages\\js2py\\base.py\", line 948, in __call__\r\n    '%s is not a function' % self.typeof())\r\njs2py.internals.simplex.JsException: TypeError: 'undefined' is not a function\r\n```\r\nI hope the author can do a lot of testing on various OS and Python version."},"comment":{"url":"https://api.github.com/repos/PiotrDabkowski/Js2Py/issues/comments/526174330","html_url":"https://github.com/PiotrDabkowski/Js2Py/issues/182#issuecomment-526174330","issue_url":"https://api.github.com/repos/PiotrDabkowski/Js2Py/issues/182","id":526174330,"node_id":"MDEyOklzc3VlQ29tbWVudDUyNjE3NDMzMA==","user":{"login":"PiotrDabkowski","id":4052440,"node_id":"MDQ6VXNlcjQwNTI0NDA=","avatar_url":"https://avatars2.githubusercontent.com/u/4052440?v=4","gravatar_id":"","url":"https://api.github.com/users/PiotrDabkowski","html_url":"https://github.com/PiotrDabkowski","followers_url":"https://api.github.com/users/PiotrDabkowski/followers","following_url":"https://api.github.com/users/PiotrDabkowski/following{/other_user}","gists_url":"https://api.github.com/users/PiotrDabkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/PiotrDabkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PiotrDabkowski/subscriptions","organizations_url":"https://api.github.com/users/PiotrDabkowski/orgs","repos_url":"https://api.github.com/users/PiotrDabkowski/repos","events_url":"https://api.github.com/users/PiotrDabkowski/events{/privacy}","received_events_url":"https://api.github.com/users/PiotrDabkowski/received_events","type":"User","site_admin":false},"created_at":"2019-08-29T13:01:31Z","updated_at":"2019-08-29T13:01:31Z","author_association":"OWNER","body":"Well, does python3 have the function urllib.urlopen? No, it does not and thats the error you get with js2py. The example works in python2. PRs always welcome if this bothers you."}}
{"actor":{"display_login":"PiotrDabkowski"}}