Bug 649211

Summary: [abrt] anjuta-1:2.31.90.0-1.fc14: evaluate.py:43:eval_str2:BadIdentifierError: Not a resolvable python identifier selected.
Product: [Fedora] Fedora Reporter: Sergey Raspopov <sergey.linux>
Component: anjutaAssignee: Debarshi Ray <debarshir>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: a.badger, debarshir, jhs, rpandit, vierzigundzwei
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b1f84a33
Fixed In Version: python-rope-0.9.3-2.20101213hg1585.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-10 21:27:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace none

Description Sergey Raspopov 2010-11-03 08:28:26 UTC
abrt version: 1.1.13
architecture: x86_64
cmdline: /usr/bin/python /usr/lib64/anjuta/anjuta-python-autocomplete.py -o calltip -p /home/sergey/router -r /home/sergey/router/src/router.py -s /tmp/.QOENLV -f 814
component: anjuta
executable: /usr/lib64/anjuta/anjuta-python-autocomplete.py
kernel: 2.6.35.6-48.fc14.x86_64
package: anjuta-1:2.31.90.0-1.fc14
reason: evaluate.py:43:eval_str2:BadIdentifierError: Not a resolvable python identifier selected.
release: Fedora release 14 (Laughlin)
time: 1288772959
uid: 500

backtrace
-----
evaluate.py:43:eval_str2:BadIdentifierError: Not a resolvable python identifier selected.

Traceback (most recent call last):
  File "/usr/lib64/anjuta/anjuta-python-autocomplete.py", line 66, in <module>
    proposals = codeassist.get_doc(proj, source_code, position, resource=res, maxfixes=10)
  File "/usr/lib/python2.7/site-packages/rope/contrib/codeassist.py", line 59, in get_doc
    pyname = fixer.pyname_at(offset)
  File "/usr/lib/python2.7/site-packages/rope/contrib/fixsyntax.py", line 64, in pyname_at
    result = old_pyname()
  File "/usr/lib/python2.7/site-packages/rope/contrib/fixsyntax.py", line 57, in old_pyname
    return rope.base.evaluate.eval_str(scope, expression)
  File "/usr/lib/python2.7/site-packages/rope/base/evaluate.py", line 35, in eval_str
    return eval_str2(holding_scope, name)[1]
  File "/usr/lib/python2.7/site-packages/rope/base/evaluate.py", line 43, in eval_str2
    raise BadIdentifierError('Not a resolvable python identifier selected.')
BadIdentifierError: Not a resolvable python identifier selected.

Local variables in innermost frame:
name: 'if'
holding_scope: <rope.base.pyscopes.FunctionScope object at 0x7fc14d052210>

Comment 1 Sergey Raspopov 2010-11-03 08:28:33 UTC
Created attachment 457379 [details]
File: backtrace

Comment 2 Johannes Schmid 2010-12-09 09:48:43 UTC
This is a bug in python.rope - not in anjuta

Comment 3 Johannes Schmid 2010-12-13 16:15:48 UTC

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 4 Toshio Ernie Kuratomi 2010-12-13 16:41:00 UTC
Are you able to give us the python files that cause this?  This may be a bug in python-rope but it's at least equally likely that this is an anjuta bug: anjuta-python-autocomplete.py may need to catch the BadIdentifierError exception and decide how to display (or not display) the fact that the selected identifier was not found.

Comment 5 Fedora Update System 2010-12-13 17:26:36 UTC
python-rope-0.9.3-2.20101213hg1585.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/python-rope-0.9.3-2.20101213hg1585.fc14

Comment 6 Toshio Ernie Kuratomi 2010-12-13 17:28:56 UTC
Please test this update.  It's a snapshot that seems to be nothing but bugfixes but I'd rather not push it to stable unless someone verifies that this fixes the issue and doesn't cause new ones.  Mailing list discussion and changelog entries indicate that this may fix the issue but looking at the code vs the traceback, I'm not as certain that it does.  Please test.

Comment 7 Fedora Update System 2010-12-15 09:06:05 UTC
python-rope-0.9.3-2.20101213hg1585.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update python-rope'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/python-rope-0.9.3-2.20101213hg1585.fc14

Comment 8 Toshio Ernie Kuratomi 2010-12-30 01:14:08 UTC
If someone could test that the update of python-rope fixes this bug I'd be most appreciative.  I'm not an anjuta user and I'm also not heavily using python-rope currently so I'm hesitant to push this update without verification that it solves the bug.

Comment 9 Rakesh Pandit 2011-01-05 06:41:22 UTC
Will test in some time.

Comment 10 Fedora Update System 2011-01-10 21:27:43 UTC
python-rope-0.9.3-2.20101213hg1585.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Florian Ludwig 2011-01-13 00:55:23 UTC
I've got 0.9.3-2.20101213hg1585.fc14 and this problem still occurs.

Comment 12 Johannes Schmid 2011-02-16 21:03:56 UTC
Actually this is a problem in anjuta (or well, it's just the python is a bit picky about reporting errors when not asked for it.)

Fixed in master:
http://git.gnome.org/browse/anjuta/commit/?id=ea6d34ce2b69c43a63d395983aa21a8e41b0ba5a