Problem:
Pylint Error Message: “E1101: Module 'xxx' has no 'xxx' member'”
.
pylint no member issue but code still works in vscode
Python
–Python
syntax checker forvscode
Pylint is
static check
. When using a third-party library, some members will be created only when the code is running, and it can’t find members
Solution:
using pylint Django to enhance pylin int
steps
-
- install pylint Django
$ pip3 install pylint-django
Use pylint-django
in vscode
‘s setting.json
for pylint-django</code
"python.linting.pylintArgs": [
"--load-plugins",
"pylint_django"
]
-
-
- restart VSCode
-
Read More:
- When installing zookeeper, you can view the process start, but the status display error: Error contacting service. It is probably not running
- An error was reported when Maven package was running the packaged jar package: there is no main list attribute in xxx.jar, which can be solved by configuring Maven plugin
- [Solved] Error contacting service. It is probably not running.
- [Solved] Error contacting service. It is probably not running.
- Jenkins reported an error when running the docker permission in the shell script
- It can be opened with localhost, but not with IP address. The request host name is invalid
- There is no error when compiling and packaging the IDEA code, but the code displays an error
- [Solved] ZooKeeper Configurate Error: Error contacting service. It is probably not running.
- [Solved] Zookeeper3.6.0 Error: Error contacting service. It is probably not running
- VScode jsconfig.json files First Line error for no reasons
- [Solved] Vscode Connect SSH Error: Error Running the contributed command ‘_workbench.downloadResource
- [Solved] MySQL workbench Error: SSL connection error: SSL is required but the server doesn‘t support it.
- [Solved] Cmake compile opencv open-source project Error: but it set OpenCV_FOUND to FALSE so package “OpenCV” is considered to be…
- Zeppelin reported an error. The JDK version is low
- VSCode Unable to find custom header file directory: fatal error: no such file or directory
- Kubernetes reported an error: matchexpressions: [] v1. Labelselector requirement (NIL)}: field is immutable
- [Solved] VScode Error: PS D:\vscode> cd “d:\vscode\“ ; if ($?) { g++ tempCodeRunnerFile.cpp -o tempCodeRunn
- [Solved] Vscode error: Unable to resolve resource walkThrough://vscode_getting_started_page
- [Solved] VScode sftp Code synchronizate Error: Error: No such file
- Error 2 error c2491: XX: definition of dllimport static data member is not allowed