{"action":"opened","issue":{"url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/710","labels_url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/710/labels{/name}","comments_url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/710/comments","events_url":"https://api.github.com/repos/jorgenschaefer/elpy/issues/710/events","html_url":"https://github.com/jorgenschaefer/elpy/issues/710","id":115834714,"number":710,"title":"Attribute int not found","user":{"login":"mxi1","id":146681,"avatar_url":"https://avatars.githubusercontent.com/u/146681?v=3","gravatar_id":"","url":"https://api.github.com/users/mxi1","html_url":"https://github.com/mxi1","followers_url":"https://api.github.com/users/mxi1/followers","following_url":"https://api.github.com/users/mxi1/following{/other_user}","gists_url":"https://api.github.com/users/mxi1/gists{/gist_id}","starred_url":"https://api.github.com/users/mxi1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxi1/subscriptions","organizations_url":"https://api.github.com/users/mxi1/orgs","repos_url":"https://api.github.com/users/mxi1/repos","events_url":"https://api.github.com/users/mxi1/events{/privacy}","received_events_url":"https://api.github.com/users/mxi1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-09T09:06:49Z","updated_at":"2015-11-09T09:06:49Z","closed_at":null,"body":"```\r\nError Message\r\n\r\nAttribute int not found\r\n\r\nConfiguration\r\n\r\nVirtualenv........: py3_venv (/Users/minjun/py3_venv)\r\nRPC Python........: 3.5.0 (/Users/minjun/py3_venv/bin/python)\r\nInteractive Python: python (/Users/minjun/py3_venv/bin/python)\r\nEmacs.............: 24.5.1\r\nElpy..............: 1.9.0\r\nJedi..............: 0.9.0\r\nRope..............: 0.10.3\r\nImportmagic.......: 0.1.3\r\nAutopep8..........: 0.1.3\r\nSyntax checker....: flake8 (/Users/minjun/py3_venv/bin/flake8)\r\n\r\nTraceback\r\n\r\nTraceback (most recent call last):\r\n  File \"/Users/minjun/.emacs.d/elpa/elpy-20150830.510/elpy/ropebackend.py\", line 99, in call_rope\r\n    **kwargs)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/contrib/codeassist.py\", line 100, in get_calltip\r\n    pyobject = pyname.get_object()\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/pynamesdef.py\", line 22, in get_object\r\n    return self.pyobject.get()\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/utils.py\", line 28, in newfunc\r\n    return func(self, *args, **kwds)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/pynames.py\", line 188, in get\r\n    self.set(self.get_inferred(*args, **kwds))\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/utils.py\", line 28, in newfunc\r\n    return func(self, *args, **kwds)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/pynamesdef.py\", line 19, in _get_inferred\r\n    return rope.base.oi.soi.infer_assigned_object(self)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/utils.py\", line 40, in newfunc\r\n    return func(*args, **kwds)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/oi/soi.py\", line 64, in infer_assigned_object\r\n    result = _infer_assignment(assignment, pyname.module)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/utils.py\", line 40, in newfunc\r\n    return func(*args, **kwds)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/oi/soi.py\", line 117, in _infer_assignment\r\n    result = _follow_pyname(assignment, pymodule)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/utils.py\", line 40, in newfunc\r\n    return func(*args, **kwds)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/oi/soi.py\", line 150, in _follow_pyname\r\n    pyname = evaluate.eval_node(holding_scope, assign_node)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/evaluate.py\", line 26, in eval_node\r\n    return eval_node2(scope, node)[1]\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/evaluate.py\", line 31, in eval_node2\r\n    ast.walk(node, evaluator)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/ast.py\", line 39, in walk\r\n    return method(node)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/evaluate.py\", line 234, in _List\r\n    holding = self._get_object_for_node(node.elts[0])\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/evaluate.py\", line 275, in _get_object_for_node\r\n    pyname = eval_node(self.scope, stmt)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/evaluate.py\", line 26, in eval_node\r\n    return eval_node2(scope, node)[1]\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/evaluate.py\", line 31, in eval_node2\r\n    ast.walk(node, evaluator)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/ast.py\", line 39, in walk\r\n    return method(node)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/evaluate.py\", line 187, in _Call\r\n    pyobject=_get_returned(pyfunction))\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/evaluate.py\", line 168, in _get_returned\r\n    return pyobject.get_returned_object(args)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/pyobjectsdef.py\", line 72, in get_returned_object\r\n    return self.returned.get(args)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/utils.py\", line 28, in newfunc\r\n    return func(self, *args, **kwds)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/pynames.py\", line 188, in get\r\n    self.set(self.get_inferred(*args, **kwds))\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/pyobjectsdef.py\", line 44, in _infer_returned\r\n    return rope.base.oi.soi.infer_returned_object(self, args)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/utils.py\", line 40, in newfunc\r\n    return func(*args, **kwds)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/oi/soi.py\", line 21, in infer_returned_object\r\n    result = object_info.get_exact_returned(pyfunction, args)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/oi/objectinfo.py\", line 90, in get_exact_returned\r\n    path, key, self._args_to_textual(pyobject, args))\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/oi/objectinfo.py\", line 96, in _args_to_textual\r\n    arguments = args.get_arguments(parameters)[:len(parameters)]\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/arguments.py\", line 20, in get_arguments\r\n    for pyname in self.get_pynames(parameters):\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/arguments.py\", line 33, in get_pynames\r\n    result[index] = self._evaluate(arg)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/arguments.py\", line 41, in _evaluate\r\n    return rope.base.evaluate.eval_node(self.scope, ast_node)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/evaluate.py\", line 26, in eval_node\r\n    return eval_node2(scope, node)[1]\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/evaluate.py\", line 31, in eval_node2\r\n    ast.walk(node, evaluator)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/ast.py\", line 39, in walk\r\n    return method(node)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/evaluate.py\", line 195, in _Num\r\n    self.result = self._get_builtin_name(type_name)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/evaluate.py\", line 198, in _get_builtin_name\r\n    pytype = rope.base.builtins.builtins[type_name].get_object()\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/pyobjects.py\", line 28, in __getitem__\r\n    return self.get_attribute(key)\r\n  File \"/Users/minjun/py3_venv/lib/python3.5/site-packages/rope/base/pyobjects.py\", line 20, in get_attribute\r\n    'Attribute %s not found' % name)\r\nrope.base.exceptions.AttributeNotFoundError: Attribute int not found\r\n\r\nRope Debug Information\r\n\r\n```\r\n\r\nReproduction:\r\n\r\n```Python\r\n\r\nsource = '''\r\nimport asyncio\r\nimport aiohttp\r\n\r\n\r\n@asyncio.coroutine\r\ndef fetch_page(url, pause=False):\r\n    if pause:\r\n        yield from asyncio.sleep(2)\r\n\r\n    response = yield from aiohttp.request('GET', url)\r\n    assert response.status == 200\r\n    content = yield from response.read()\r\n    print('URL: {0}: Content: {1}'.format(url, content))\r\n\r\n\r\n@asyncio.coroutine\r\ndef my_coroutine(future, task_name, seconds_to_sleep=3):\r\n    print('{0} sleeping for: {1} seconds'.format(task_name, seconds_to_sleep))\r\n    yield from asyncio.sleep(seconds_to_sleep)\r\n    print('{0} is finished'.format(task_name))\r\n\r\n\r\ndef got_result(future):\r\n    print(future.result())\r\n\r\n\r\nloop = asyncio.get_event_loop()\r\nfuture1 = asyncio.Future()\r\nfuture2 = asyncio.Future()\r\n\r\n\r\ntasks = [\r\n    my_coroutine(future1, 'task1', 4),\r\n    my_coroutine(future2, 'task2', 3)]\r\n\r\nfuture1.add_done_callback(got_result)\r\nfuture2.add_done_callback(got_result)\r\n\r\nloop.run_until_complete(asyncio.wait(tasks))\r\nloop.close()\r\n'''\r\n\r\nproject = rope.base.project.Project(\r\n    \"/Users/minjun/Code/lang/python/asyncio/\",\r\n    ropefolder=None\r\n)\r\nresource = rope.base.libutils.path_to_resource(\r\n    project,\r\n    \"/Users/minjun/Code/lang/python/asyncio/tutorial0.py\",\r\n    'file'\r\n)\r\nrope.contrib.codeassist.get_calltip(\r\n    project, source, 716, resource, maxfixes=5, remove_self=True\r\n)\r\n```\r\n"}}