|
logilab-astng #109562 Jython AttributeError with Fix [validation pending]Running pylint on a jython source that contains an imported Java package crashes due to an AttributeError. One way to fix this issue is to put the offending line within a try/except block. The following has been tested to work on my system which is described below. Change line 217 in raw_building.py from this:
node = build_module(modname, module.__doc__)
to this:
try:
node = build_module(modname, module.__doc__)
except AttributeError:
node = build_module(modname)
Additional Info: I encountered this using Jython 2.7a2 in Debian Wheezy amd64. After making this one fix, pylint was able to finish running. I installed pylint using pip within a virtualenv. | | priority | important |
|---|
| type | bug |
|---|
| appeared in | <not specified> |
|---|
| done in | 0.24.2 |
|---|
| load left | 0.000 |
|---|
| closed by | #989:ec02884a688e |
|---|
Workflow history| from state (3) | to state | comment | date | User |
| done | validation pending | | 2013/04/17 21:22 | sthenault |
| in-progress | done | | 2012/11/16 13:43 | |
| open | in-progress | | 2012/10/23 18:06 | |
|