Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 98994

Pylint does not recognise PYTHONPATH in VScode

$
0
0

I'm sure I'm doing something wrong(i.e. stupid), but running

from stuff.modules import maths

Pylint just keeps giving

No name 'modules' in module 'stuff' pylint(no-name-in-module)
Unable to import 'stuff.modules' pylint(import-error)

My stuff-module is located at /home/abb, so I tried to add both PYTHONPATH="/home/abb" and PYTHONPATH="/home/abb/stuff" to an .env-file, but since it still gives the errors, I think the problem is that I'm also using the stuff-folder as my workspace.

I don't think it's a problem with the .env-file, since I'm also importing from my lib-module located in the same folder as stuff, and this doesn't raise any errors.

(Oh, and if it is important, I'm running this on an SSH-connection)


Viewing all articles
Browse latest Browse all 98994

Latest Images

Trending Articles



Latest Images