-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pylint 1.6 chokes and dies on files which 1.5.6 was happy #998
Comments
Thank you. Adding this for the next patch release, which should be due by next week (probably the fix will land faster!). |
@AWhetter can you cherry-pick this fix into 1.6, so we could have a release
|
@tseaver This fix should now be available in Pylint 1.6.2, freshly released. |
@PCManticore The fix for The $ git clone --depth=1 https://GoogleCloudPlatform/gcloud-python
$ cd gcloud-python
$ sed -ie "s/os\.path\.join('gcloud.*connection/# &/" scripts/run_pylint.py
$ tox -e lint Note that the failure does not occur when running |
Oh, my mistake, I thought they are the same. Looking into it. |
@tseaver I think I've identified the issue. While I'll try to make a fix in the following days, I am trying to figure out one thing you folks have set up in your project. This can be reproduced without tox by calling The fix on our side should be filter out InferenceErrors from the call sites of unpack_infer, since it can raise this exception whenever it can't infer something, but this still leaves you open in the face of other potential issues with having this PYTHONPATH set up. |
Of course, paths may vary with my example. |
I just released 1.6.3, this should be fixed there. Let me know how it works for you. |
@PCManticore Thanks, that does fix it for gcloud-python. |
Steps to reproduce
gcloud/bigtable/happybase/connection.py
gcloud/streaming/http_wrapper.py
Current behavior
The 'happybase/connection.py' raises:
The
streaming/http_wrapper.py
check raises:Expected behavior
Report errors without raising exceptions.
pylint --version output
$ .tox/lint/bin/pylint --rcfile="scripts/pylintrc_default" --version pylint 1.6.1, astroid 1.4.7 Python 2.7.11 (default, Feb 22 2016, 07:44:44) [GCC 4.8.4]
The text was updated successfully, but these errors were encountered: