-
Notifications
You must be signed in to change notification settings - Fork 1.2k
pylint pkgwhitelist working #3562
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
Comments
Are you running |
Yes, both in vscode and in the terminal. I've tried the base conda environment and also a new fresh conda environment. No other python installations are installed on the system. |
Ah, you're using cygwin. We don't actually support cygwin so that's probably what's causing the issue. I take it your desktop isn't using cygwin when it worked there? Since we don't support cygwin I'm going to close this issue. If this comes up on a supported platform again then please let me know and I can re-open the issue. |
Actually, I do have cygwin running on my desktop as well. Also, removing cygwin from the path completely removes any effects it has. |
Are you using conda on both machines? And when you are testing from the command-line are you using the same Pylint you specified in |
As far as I can tell the configurations (conda, conda environments, cygwin, vscode, etc..) are identical between both machines. At least I try to keep them identical. Specifying the path explicitly as |
I'm going to assume it's an odd Pylint issue or a hard-to-diagnose environment issue then since we don't filter arguments to Pylint so this wouldn't be caused by us explicitly. One other option is to try using a |
Ok, I'll update the issue if a find a solution. |
Environment data
Expected behaviour
When calling
pylint test.py --extension-pkg-whitelist=cv2
with test.py looking like so:I obtain the output:
Actual behaviour
Trying the same in vscode with settings.json as:
yields in the Python Output:
Strangely, when changing settings.json to:
the output is
The developer console doesn't seem to give any helpful output.
To fix this I've tried completely a complete reinstall of vscode (including removing all extensions and clearing the cache), as well as using the base conda and a complete fresh conda environment. The last thing that would come to mind is an issue with Anaconda, but I'd like to refrain from a fresh Anaconda install if possible.
EDIT: Also holds for
torch
, so it is not just acv2
module specific problem but an issue for any dynamically loaded (is this the correct term?) module.EDIT 2: Didn't have access to my desktop the last couple of days, but now that I do have access, I am unable to reproduce the issue there. Linting works perfectly fine for both
cv2
andtorch
.The text was updated successfully, but these errors were encountered: