Sublime Forum

SublimeLinter/PyFlakes not finding module in extended path

#1

I use to keep a collection of python snippets in a certain location.

I have extended the Python path to allow the import to any python script I am coding.
In addition I have added that path to my user sublime-settings:

"extra_paths":
	[
		"/home/pyben/path/extramodules"
	]

Anaconda recognizes those extra modules flawlessly, as indicated by their appearance in the autocomplete. :heavy_check_mark:
Scripts run without error. :heavy_check_mark:

Yet, SublimeLinter states a “Cannot find module” message. :heavy_multiplication_x:

I assume this to be a configuration error on my behalf. Is there any place in the config files I should have added that particular path to as well? Any other sources of error possibly involved?

Note: SublimeLinter does not recognize Python 3.6 syntax either. So the path to the Python3.6 executable is not found either.

Tell me if you need any additional information.
Thanks!

From SublimeLinter.sublime-settings:

linters":{
“flake8”:{
@disable”:false,
“args”:[

    ],
    "builtins":"",
    "excludes":[
        "E501"
    ],
    "executable":"",
    "ignore":"",
    "jobs":"1",
    "max-complexity":-1,
    "max-line-length":null,
    "select":"",
    "show-code":false
},
"mypy":{
    "@disable":false,
    "args":[
    ],
    "excludes":[
    ]
}    "paths":{
    "linux":[
        "/usr/local/bin/"
    ],
    "osx":[
    ],
    "windows":[
    ]
},
"python_paths":{
    "linux":[
        "/usr/bin/python3.6",
        "/home/pyben/path/extramodules"
    ],
    "osx":[
    ],
    "windows":[
    ]
},
0 Likes