Comments (10)
Original comment by BitBucket: Abgan, GitHub: @abgan?:
Forgot to login before creating issue - anyway, it was me who created this issue so you can contact me for more details if required.
from pylint.
Original comment by Christophe Simonis (BitBucket: KangOl, GitHub: @KangOl?):
Duplicate of #38 ?
from pylint.
Original comment by BitBucket: Abgan, GitHub: @abgan?:
Tested it with latest sources (commit: 434aad4b9b24f993a73a9ccf0e21866458e9a4be) and still receiving the same error, so I don't think it's been fixed back on 24th of July.
from pylint.
Original comment by BitBucket: bradley_rhodes:
I'm getting the same error with the latest commit (434aad4b9b24) with the following snippet:
#!python
import inspect
def dummy_func():
pass
argspec = inspect.getargspec(dummy_func)
print argspec.args
from pylint.
Original comment by BitBucket: bradley_rhodes:
Update: Tested on both OSX Python 2.7.2 and Ubuntu 2.7.3; both fail.
from pylint.
Original comment by Chris Rebert (BitBucket: cvrebert, GitHub: @cvrebert?):
Same issue in astroid tracker: https://bitbucket.org/logilab/astroid/issue/3/error-after-upgrade-to-pylint-10
from pylint.
Original comment by Russell MacKenzie (BitBucket: discoguy77):
Here's a minimal test case:
Make the file namedtuple.py:
#!python
import collections
Point = collections.namedtuple('Point', ['x', 'y'])
p = Point(x=1.0, y=2.0)
print "Area: %.1f" % (p.x * p.y,)
Then, run:
#!bash
bash$> pylint namedtuple.py
The output:
#!bash
Traceback (most recent call last):
File "/g8/software/config/python/pylint/lint.py", line 1065, in <module>
Run(sys.argv[1:])
File "/g8/software/config/python/pylint/lint.py", line 1010, in __init__
linter.check(args)
File "/g8/software/config/python/pylint/lint.py", line 599, in check
self.check_astroid_module(astroid, walker, rawcheckers, tokencheckers)
File "/g8/software/config/python/pylint/lint.py", line 685, in check_astroid_module
walker.walk(astroid)
File "/g8/software/config/python/pylint/utils.py", line 662, in walk
self.walk(child)
File "/g8/software/config/python/pylint/utils.py", line 662, in walk
self.walk(child)
File "/g8/software/config/python/pylint/utils.py", line 662, in walk
self.walk(child)
File "/g8/software/config/python/pylint/utils.py", line 662, in walk
self.walk(child)
File "/g8/software/config/python/pylint/utils.py", line 662, in walk
self.walk(child)
File "/g8/software/config/python/pylint/utils.py", line 659, in walk
cb(astroid)
File "/g8/software/config/python/pylint/checkers/typecheck.py", line 174, in visit_getattr
if is_super(owner) or getattr(owner, 'type', None) == 'metaclass':
File "/g8/software/tools/python/2.6.6/osx106_x64/lib/python2.6/site-packages/astroid/bases.py", line 51, in __getattr__
return getattr(self._proxied, name)
File "/g8/software/tools/python/2.6.6/osx106_x64/lib/python2.6/site-packages/astroid/scoped_nodes.py", line 680, in _class_type
for base in klass.ancestors(recurs=False):
File "/g8/software/tools/python/2.6.6/osx106_x64/lib/python2.6/site-packages/astroid/scoped_nodes.py", line 801, in ancestors
for baseobj in stmt.infer(context):
TypeError: unbound method infer() must be called with Tuple instance as first argument (got InferenceContext instance instead)
from pylint.
Original comment by Sylvain Thénault (BitBucket: sthenault, GitHub: @sthenault?):
should be fixed on astroid tip: https://bitbucket.org/logilab/astroid/commits/5ed6266cab789bc89d882444c938f03953491496
from pylint.
Original comment by Sylvain Thénault (BitBucket: sthenault, GitHub: @sthenault?):
fix to be released in astroid 1.0.1
from pylint.
Original comment by Sylvain Thénault (BitBucket: sthenault, GitHub: @sthenault?):
Issue #84 was marked as a duplicate of this issue.
from pylint.
Related Issues (20)
- "colorized" ignored when called without shell?d
- Crash - `ParentMissingError` and strange instance of `wrong-import-position` warning HOT 2
- Nonsensical returns are not reported as `useless-return` if they are indented HOT 2
- RecursionError: maximum recursion depth exceeded while calling a Python object HOT 1
- `used-before-assignment` FP in finally
- allow-any-import-level seems to have no effect
- False positive for E0601 when variable first assigned in assignment expression in `if` clause of a comprehension
- False positive with return guard
- Example of using pylint as a pre-commit hook does not mention use of spelling extra HOT 1
- Crash AstroidError - AttributeError: 'TreeRebuilder' object has no attribute 'visit_typealias' HOT 4
- Crash 💥 `RecursionError` when upgrading from 3.0.3 to 3.1.0 HOT 2
- False positive on E1101: no-member when using "random.choices"
- Suggest flattening nested idempotent function applications HOT 3
- False positive singleton-comparison with sqlalchemy's filter
- Pylint crash: RecursionError: maximum recursion depth exceeded HOT 2
- Incorrect "Value '<val>' is unsubscriptable" with class method type overloading HOT 2
- sdist is missing requirements files
- 3.1.0: Nine test_functional and one test_package fails HOT 4
- Crashed while using pylint as a static test for a docker
- False positive assignment-from-no-return on generator with nested yield expression
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylint.