Docker dev environment, pylint unable to import error
Docker dev environment, pylint unable to import error
I have a problem, I have been using a docker environment for my django 2.0 project and pylint was working fine but now it's showing the unable to import module error. I'm aware that the import error question has been asked many times but it was always for a venv setup rather than docker environment setup.
I'm not sure what triggered the error, but possibly because I deleted my old containers, volumes, images and started from scratch.
I'm using Python 3 and VSCode on Manjaro Linux.
Thanks in advance if anyone can help.
To add "python.linting.pylintArgs": ["--load-plugins", "pylint_django"] in settings results in real errors not being reported too.
unfortunately that didn't work
– kbsol
5 mins ago
log-into your container, open Django shell, then try to import pylint
– Jerin Peter George
40 secs ago
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
try to re-build the container/image
– Jerin Peter George
22 mins ago