Title: Python extension unable to find packages installed in sub directory · Issue #1118 · microsoft/python-language-server · GitHub
Open Graph Title: Python extension unable to find packages installed in sub directory · Issue #1118 · microsoft/python-language-server
X Title: Python extension unable to find packages installed in sub directory · Issue #1118 · microsoft/python-language-server
Description: potens1 commented on Tue May 21 2019 Environment data VS Code version: 1.34.0 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Linux Arch Python version (& distribution if applicable, e.g. Anaconda...
Open Graph Description: potens1 commented on Tue May 21 2019 Environment data VS Code version: 1.34.0 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Linux Arch Python version (& d...
X Description: potens1 commented on Tue May 21 2019 Environment data VS Code version: 1.34.0 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Linux Arch Python version (&am...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/1118
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python extension unable to find packages installed in sub directory","articleBody":"@potens1 commented on [Tue May 21 2019](https://github.com/microsoft/vscode-python/issues/5703)\n\n\u003c!-- \r\nDo you have a question instead of a bug report or enhancement request? Please ask it on https://stackoverflow.com/questions/tagged/visual-studio-code+python. \r\n\r\nUnable to install a linter or formatter? 'No installers available'? \r\nWindows - https://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows\r\nLinux - https://www.cyberciti.biz/faq/debian-ubuntu-centos-rhel-linux-install-pipclient/ , https://www.tecmint.com/install-pip-in-linux/\r\n\r\nPython configuration issues? Please check https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites\r\n\r\nOtherwise **please** fill in the requested details below. \"XXX\" markers should not be present in the final bug report.\r\n\r\nIf you think a GIF of what is happening would be helpful, consider tools like https://www.cockos.com/licecap/, https://github.com/phw/peek or https://www.screentogif.com/ .\r\n-->\r\n\r\n## Environment data\r\n\r\n- VS Code version: 1.34.0\r\n- Extension version (available under the Extensions sidebar): 2019.4.12954\r\n- OS and version: Linux Arch\r\n- Python version (& distribution if applicable, e.g. Anaconda): 3.7.3\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pipenv \r\n- Relevant/affected Python packages and their versions: Any own package\r\n\r\n## Expected behaviour\r\n\r\nThe python extension should be able to use the virtualenv, including packages installed in dev mode\r\n\r\n## Actual behaviour\r\n\r\nErrors about import of packages and errors about undefined variables\r\n\r\n\r\n\r\n\r\n\r\n\r\nsystemd package is not system wide installed, only in the virtualenv and it is found by the extension\r\n\r\n\r\n## Steps to reproduce:\r\n1. Create a package\r\n2. Define a function in the __ init__.py of the package\r\n3. Install the package in the virtualenv with `pip install -e` (or `pipenv install -e .`)\r\n4. In another file, try to import the package\r\n\r\n## Logs\r\nOutput for `Python` in the `Output` panel (`View`→`Output`, change the drop-down the upper-right of the `Output` panel to `Python`)\r\n\r\n```\r\n##########Linting Output - mypy##########\r\nStarting Microsoft Python language server.\r\n[Info - 9:32:46 AM] GetCurrentSearchPaths /home/ndp/.virtualenvs/sandbox-XSv3_Pyv/bin/python \r\n[Info - 9:32:46 AM] Python search paths:\r\n[Info - 9:32:46 AM] /home/ndp/.virtualenvs/sandbox-XSv3_Pyv/lib/python3.7\r\n[Info - 9:32:46 AM] /home/ndp/.virtualenvs/sandbox-XSv3_Pyv/lib/python3.7/lib-dynload\r\n[Info - 9:32:46 AM] /usr/lib64/python3.7\r\n[Info - 9:32:46 AM] /usr/lib/python3.7\r\n[Info - 9:32:46 AM] /home/ndp/.virtualenvs/sandbox-XSv3_Pyv/lib/python3.7/site-packages\r\n[Info - 9:32:46 AM] /home/ndp/sandbox/sandbox/src\r\n[Info - 9:32:46 AM] Configuration search paths:\r\n[Info - 9:32:46 AM] Microsoft Python Language Server version 0.2.82.0\r\n[Info - 9:32:46 AM] Initializing for /home/ndp/.virtualenvs/sandbox-XSv3_Pyv/bin/pytho\r\n``` \r\n\r\nOutput from `Console` under the `Developer Tools` panel (toggle Developer Tools on under `Help`; turn on source maps to make any tracebacks be useful by running `Enable source map support for extension debugging`)\r\n\r\n\u003cdetails>\u003csummary>Nothing relevant to me but...\u003c/summary>\r\n\r\n```\r\n\r\n[Violation] Added non-passive event listener to a scroll-blocking \u003csome> event. Consider marking event handler as 'passive' to make the page more responsive. See \u003cURL>[V\r\nworkbench.main.js:3272 [Extension Host] debugger listening on port 49928\r\nworkbench.main.js:4342 Overwriting grammar scope name to file mapping for scope source.yaml.\r\nOld grammar file: file:///home/ndp/.local/share/vscode/VSCode-linux-x64/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json.\r\nNew grammar file: file:///home/ndp/.vscode/extensions/redhat.vscode-yaml-0.4.0/syntaxes/yaml.tmLanguage.json\r\nworkbench.main.js:4342 Overwriting grammar scope name to file mapping for scope source.jinja.\r\nOld grammar file: file:///home/ndp/.vscode/extensions/korekontrol.saltstack-0.0.5/syntaxes/jinja.json.\r\nNew grammar file: file:///home/ndp/.vscode/extensions/wholroyd.jinja-0.0.8/syntaxes/jinja.json\r\nworkbench.main.js:4342 Overwriting grammar scope name to file mapping for scope text.yaml.jinja.\r\nOld grammar file: file:///home/ndp/.vscode/extensions/korekontrol.saltstack-0.0.5/syntaxes/sls.json.\r\nNew grammar file: file:///home/ndp/.vscode/extensions/wholroyd.jinja-0.0.8/syntaxes/jinja-yaml.json\r\nworkbench.main.js:238 [Extension Host] (node:28399) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.\r\nworkbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false\r\nworkbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false\r\nworkbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false\r\nworkbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false\r\nworkbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Create file systemwatcher with pattern */python\r\nworkbench.main.js:238 [Extension Host] Python Extension: Create file systemwatcher with pattern */*/python\r\nworkbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false\r\nworkbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false\r\nworkbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false\r\nworkbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Register Intepreter Watcher, Class name = p, Arg 1: \u003cUri:/home/ndp/sandbox/sandbox/src/sandbox/__init__.py>, Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: \u003cUri:/home/ndp/sandbox/sandbox/src/sandbox/__init__.py>, Return Value: \u003cReturn value cannot be serialized for logging>\r\nworkbench.main.js:1469 [Violation] 'setTimeout' handler took 64ms\r\n[Violation] Forced reflow while executing JavaScript took 60ms\r\nworkbench.main.js:3270 Extension Host\r\nworkbench.main.js:3270 Debugger attached.\r\nworkbench.main.js:238 [Extension Host] Python Extension: Rule = settings, result = runNextRule\r\nworkbench.main.js:238 [Extension Host] Python Extension: Executing next rule from settings\r\nworkbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, \u003cNo Resource>\r\nworkbench.main.js:1401 WARN UNRESPONSIVE extension host, 'ms-python.python' took 95% of 234.641ms, saved PROFILE here: '/tmp/ndp/exthost-84f48e.cpuprofile' \r\n(3) [{…}, {…}, {…}]\r\nworkbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false\r\nworkbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false\r\nworkbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Failed to execute fetch Error: Command failed: git remote\r\nfatal: not a git repository (or any parent up to mount point /)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n\r\n\r\n\tat makeError (/home/ndp/.vscode/extensions/fatihacet.gitlab-workflow-2.1.0/node_modules/execa/index.js:174:9)\r\n\tat module.exports.Promise.all.then.arr (/home/ndp/.vscode/extensions/fatihacet.gitlab-workflow-2.1.0/node_modules/execa/index.js:278:16)\r\n\tat process._tickCallback (internal/process/next_tick.js:68:7)\r\nworkbench.main.js:238 [Extension Host] Failed to execute fetch Error: Command failed: git remote\r\nfatal: not a git repository (or any parent up to mount point /)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n\r\n\r\n\tat makeError (/home/ndp/.vscode/extensions/fatihacet.gitlab-workflow-2.1.0/node_modules/execa/index.js:174:9)\r\n\tat module.exports.Promise.all.then.arr (/home/ndp/.vscode/extensions/fatihacet.gitlab-workflow-2.1.0/node_modules/execa/index.js:278:16)\r\nworkbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by CondaEnvFileService are of count 0\r\nworkbench.main.js:238w [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/ndp/sandbox/sandbox\r\nworkbench.main.js:238 [Extension Host] Failed to execute fetch Error: Command failed: git remote\r\nfatal: not a git repository (or any parent up to mount point /)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n\r\n\r\n\tat makeError (/home/ndp/.vscode/extensions/fatihacet.gitlab-workflow-2.1.0/node_modules/execa/index.js:174:9)\r\n\tat module.exports.Promise.all.then.arr (/home/ndp/.vscode/extensions/fatihacet.gitlab-workflow-2.1.0/node_modules/execa/index.js:278:16)\r\n\tat process._tickCallback (internal/process/next_tick.js:68:7)\r\n3\r\nworkbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/ndp/sandbox/sandbox\r\n2\r\nworkbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/ndp/sandbox/sandbox/src/sandbox/__init__.py\r\n2\r\nworkbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/ndp/sandbox/sandbox/src/sandbox/other.py\r\nworkbench.main.js:238 [Extension Host] Failed to execute fetch Error: Command failed: git remote\r\nfatal: not a git repository (or any parent up to mount point /)\r\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).\r\n\r\n\r\n\tat makeError (/home/ndp/.vscode/extensions/fatihacet.gitlab-workflow-2.1.0/node_modules/execa/index.js:174:9)\r\n\tat module.exports.Promise.all.then.arr (/home/ndp/.vscode/extensions/fatihacet.gitlab-workflow-2.1.0/node_modules/execa/index.js:278:16)\r\n\tat process._tickCallback (internal/process/next_tick.js:68:7)\r\n3\r\nworkbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/ndp/sandbox/sandbox\r\nworkbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by CondaEnvService are of count 0\r\nworkbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by KnownPathsService are of count 51\r\n2\r\nworkbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false\r\nworkbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by CurrentPathService are of count 6\r\nworkbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by VirtualEnvService are of count 3\r\n2\r\nworkbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by WorkspaceVirtualEnvService are of count 223\r\n2\r\nworkbench.main.js:238 [Extension Host] Python Extension: Interpreters returned by PipEnvService are of count 1\r\nworkbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: true\r\nworkbench.main.js:238 [Extension Host] Python Extension: Hide locator refreshing progress, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: All locators have completed locating, Class name = p, , Return Value: undefined\r\n2\r\nworkbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, \u003cNo Resource>\r\nworkbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from workspaceEnvs, {\"architecture\":3,\"path\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv/bin/python\",\"version\":{\"raw\":\"3.7.3-final\",\"major\":3,\"minor\":7,\"patch\":3,\"prerelease\":[\"final\"],\"build\":[],\"version\":\"3.7.3-final\"},\"sysPrefix\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv\",\"fileHash\":\"cdd6e951c90483aa07c107b1a00e2c82167810ca7523f2449138a070e934da62e55e746da4947eacaff5692a71c39cff43e27c41ee41bbe79b4459ca4720db21\",\"type\":\"PipEnv\",\"pipEnvWorkspaceFolder\":\"/home/ndp/sandbox/sandbox\"}\r\nworkbench.main.js:238 [Extension Host] Python Extension: Rule = workspaceEnvs, result = runNextRule\r\nworkbench.main.js:238 [Extension Host] Python Extension: Executing next rule from workspaceEnvs\r\nworkbench.main.js:238 [Extension Host] Python Extension: Current value for rule system is {\"architecture\":3,\"path\":\"/usr/bin/python\",\"version\":{\"raw\":\"3.7.3-final\",\"major\":3,\"minor\":7,\"patch\":3,\"prerelease\":[\"final\"],\"build\":[],\"version\":\"3.7.3-final\"},\"sysPrefix\":\"/usr\",\"fileHash\":\"4399b1f9f46fd0eb65553c9cdc3826517b80fa4937cd32d858a5c09438b79f3a04f4998e30768e875c25e97c47c364920e12093a55590edfe900d750f469af23\",\"type\":\"Unknown\",\"displayName\":\"Python 3.7.3 64-bit\"}\r\nworkbench.main.js:238 [Extension Host] Python Extension: Current value for rule currentPath is {\"architecture\":3,\"path\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv/bin/python\",\"version\":{\"raw\":\"3.7.3-final\",\"major\":3,\"minor\":7,\"patch\":3,\"prerelease\":[\"final\"],\"build\":[],\"version\":\"3.7.3-final\"},\"sysPrefix\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv\",\"fileHash\":\"cdd6e951c90483aa07c107b1a00e2c82167810ca7523f2449138a070e934da62e55e746da4947eacaff5692a71c39cff43e27c41ee41bbe79b4459ca4720db21\",\"type\":\"Unknown\"}\r\nworkbench.main.js:238 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing\r\nworkbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {\"architecture\":3,\"path\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv/bin/python\",\"version\":{\"raw\":\"3.7.3-final\",\"major\":3,\"minor\":7,\"patch\":3,\"prerelease\":[\"final\"],\"build\":[],\"version\":\"3.7.3-final\"},\"sysPrefix\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv\",\"fileHash\":\"cdd6e951c90483aa07c107b1a00e2c82167810ca7523f2449138a070e934da62e55e746da4947eacaff5692a71c39cff43e27c41ee41bbe79b4459ca4720db21\",\"type\":\"Unknown\"}\r\nworkbench.main.js:238 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {\"architecture\":3,\"path\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv/bin/python\",\"version\":{\"raw\":\"3.7.3-final\",\"major\":3,\"minor\":7,\"patch\":3,\"prerelease\":[\"final\"],\"build\":[],\"version\":\"3.7.3-final\"},\"sysPrefix\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv\",\"fileHash\":\"cdd6e951c90483aa07c107b1a00e2c82167810ca7523f2449138a070e934da62e55e746da4947eacaff5692a71c39cff43e27c41ee41bbe79b4459ca4720db21\",\"type\":\"Unknown\"}, Arg 2: \u003cargument cannot be serialized for logging>, Return Value: true\r\nworkbench.main.js:238 [Extension Host] Python Extension: Rule = cachedInterpreters, result = exit\r\n3\r\nworkbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: \u003cUri:/home/ndp/sandbox/sandbox>, Arg 2: \u003cargument cannot be serialized for logging>, Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Checking support of .NET, Class name = c, , Return Value: true\r\nworkbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/ndp/sandbox/sandbox\r\nworkbench.main.js:238 [Extension Host] Python Extension: Rule = windowsRegistry, result = runNextRule\r\nworkbench.main.js:238 [Extension Host] Python Extension: Executing next rule from windowsRegistry\r\nworkbench.main.js:238 [Extension Host] Python Extension: Rule = settings, result = runNextRule\r\nworkbench.main.js:238 [Extension Host] Python Extension: Executing next rule from settings\r\nworkbench.main.js:238 [Extension Host] Python Extension: Build the workspace interpreter watcher, Class name = h, Arg 1: \u003cUri:/home/ndp/sandbox/sandbox/src/sandbox/__init__.py>, Return Value: \u003cReturn value cannot be serialized for logging>\r\n2\r\nworkbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: \u003cUri:/home/ndp/sandbox/sandbox>, Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from currentPath, {\"architecture\":3,\"path\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv/bin/python\",\"version\":{\"raw\":\"3.7.3-final\",\"major\":3,\"minor\":7,\"patch\":3,\"prerelease\":[\"final\"],\"build\":[],\"version\":\"3.7.3-final\"},\"sysPrefix\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv\",\"fileHash\":\"cdd6e951c90483aa07c107b1a00e2c82167810ca7523f2449138a070e934da62e55e746da4947eacaff5692a71c39cff43e27c41ee41bbe79b4459ca4720db21\",\"type\":\"Unknown\"}\r\nworkbench.main.js:238 [Extension Host] Python Extension: Current value for rule system is {\"architecture\":3,\"path\":\"/usr/bin/python\",\"version\":{\"raw\":\"3.7.3-final\",\"major\":3,\"minor\":7,\"patch\":3,\"prerelease\":[\"final\"],\"build\":[],\"version\":\"3.7.3-final\"},\"sysPrefix\":\"/usr\",\"fileHash\":\"4399b1f9f46fd0eb65553c9cdc3826517b80fa4937cd32d858a5c09438b79f3a04f4998e30768e875c25e97c47c364920e12093a55590edfe900d750f469af23\",\"type\":\"Unknown\",\"displayName\":\"Python 3.7.3 64-bit\"}\r\nworkbench.main.js:238 [Extension Host] Python Extension: Current value for rule currentPath is {\"architecture\":3,\"path\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv/bin/python\",\"version\":{\"raw\":\"3.7.3-final\",\"major\":3,\"minor\":7,\"patch\":3,\"prerelease\":[\"final\"],\"build\":[],\"version\":\"3.7.3-final\"},\"sysPrefix\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv\",\"fileHash\":\"cdd6e951c90483aa07c107b1a00e2c82167810ca7523f2449138a070e934da62e55e746da4947eacaff5692a71c39cff43e27c41ee41bbe79b4459ca4720db21\",\"type\":\"Unknown\"}\r\nworkbench.main.js:238 [Extension Host] Python Extension: Current value for rule windowsRegistry is nothing\r\nworkbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from cachedInterpreters, {\"architecture\":3,\"path\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv/bin/python\",\"version\":{\"raw\":\"3.7.3-final\",\"major\":3,\"minor\":7,\"patch\":3,\"prerelease\":[\"final\"],\"build\":[],\"version\":\"3.7.3-final\"},\"sysPrefix\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv\",\"fileHash\":\"cdd6e951c90483aa07c107b1a00e2c82167810ca7523f2449138a070e934da62e55e746da4947eacaff5692a71c39cff43e27c41ee41bbe79b4459ca4720db21\",\"type\":\"Unknown\"}\r\nworkbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false\r\nworkbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Display locator refreshing progress, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Notify locators are locating, Class name = p, , Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Checking whether locactors have completed locating, Class name = p, , Return Value: false\r\nworkbench.main.js:238 [Extension Host] Python Extension: Detected refreshing of Interpreters, Class name = p, Arg 1: {}, Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Get language server folder name, Class name = f, Arg 1: \u003cUri:/home/ndp/sandbox/sandbox/src/sandbox/__init__.py>, Return Value: \"languageServer.0.2.82\"\r\nworkbench.main.js:238 [Extension Host] Python Extension: Selected Interpreter from system, {\"architecture\":3,\"path\":\"/usr/bin/python\",\"version\":{\"raw\":\"3.7.3-final\",\"major\":3,\"minor\":7,\"patch\":3,\"prerelease\":[\"final\"],\"build\":[],\"version\":\"3.7.3-final\"},\"sysPrefix\":\"/usr\",\"fileHash\":\"4399b1f9f46fd0eb65553c9cdc3826517b80fa4937cd32d858a5c09438b79f3a04f4998e30768e875c25e97c47c364920e12093a55590edfe900d750f469af23\",\"type\":\"Unknown\",\"displayName\":\"Python 3.7.3 64-bit\"}\r\nworkbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/ndp/sandbox/sandbox\r\nworkbench.main.js:238 [Extension Host] Python Extension: Get language server folder name, Class name = f, Arg 1: \u003cUri:/home/ndp/sandbox/sandbox/src/sandbox/__init__.py>, Return Value: \"languageServer.0.2.82\"\r\nworkbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/ndp/sandbox/sandbox/src/sandbox/__init__.py\r\n3\r\nworkbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/ndp/sandbox/sandbox\r\nworkbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, \u003cNo Resource>\r\nworkbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/ndp/sandbox/sandbox/src/sandbox/__init__.py\r\n3\r\nworkbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/ndp/sandbox/sandbox\r\nworkbench.main.js:238 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {\"architecture\":3,\"path\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv/bin/python\",\"version\":{\"raw\":\"3.7.3-final\",\"major\":3,\"minor\":7,\"patch\":3,\"prerelease\":[\"final\"],\"build\":[],\"version\":\"3.7.3-final\"},\"sysPrefix\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv\",\"fileHash\":\"cdd6e951c90483aa07c107b1a00e2c82167810ca7523f2449138a070e934da62e55e746da4947eacaff5692a71c39cff43e27c41ee41bbe79b4459ca4720db21\",\"type\":\"Unknown\"}, Arg 2: undefined, Return Value: false\r\nworkbench.main.js:238 [Extension Host] Python Extension: Rule = currentPath, result = runNextRule\r\nworkbench.main.js:238 [Extension Host] Python Extension: Executing next rule from currentPath\r\nworkbench.main.js:238 [Extension Host] Python Extension: autoSelectInterpreter, Class name = f, Arg 1: \u003cUri:/home/ndp/sandbox/sandbox>, Return Value: undefined\r\nworkbench.main.js:238 [Extension Host] Python Extension: Activation Commands received source /home/ndp/.virtualenvs/sandbox-XSv3_Pyv/bin/activate\r\n2\r\nworkbench.main.js:238 [Extension Host] Python Extension: Cached data exists getEnvironmentVariables, /home/ndp/sandbox/sandbox/src/sandbox/__init__.py\r\nworkbench.main.js:238 [Extension Host] Python Extension: Has Custom Env Vars\r\nworkbench.main.js:238 [Extension Host] Python Extension: Activating Environment to capture Environment variables, . /home/ndp/.virtualenvs/sandbox-XSv3_Pyv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/ndp/.vscode/extensions/ms-python.python-2019.4.12954/pythonFiles/printEnvVariables.py\r\nworkbench.main.js:238 [Extension Host] Python Extension: parseEnvironmentOutput, Class name = S\r\nworkbench.main.js:238 [Extension Host] Python Extension: getActivatedEnvironmentVariables, Class name = S, Arg 1: \u003cUri:/home/ndp/sandbox/sandbox/src/sandbox/__init__.py>\r\nworkbench.main.js:238 [Extension Host] Python Extension: Get language server folder name, Class name = f, Arg 1: \u003cUri:/home/ndp/sandbox/sandbox/src/sandbox/__init__.py>, Return Value: \"languageServer.0.2.82\"\r\nworkbench.main.js:238 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {\"architecture\":3,\"path\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv/bin/python\",\"version\":{\"raw\":\"3.7.3-final\",\"major\":3,\"minor\":7,\"patch\":3,\"prerelease\":[\"final\"],\"build\":[],\"version\":\"3.7.3-final\"},\"sysPrefix\":\"/home/ndp/.virtualenvs/sandbox-XSv3_Pyv\",\"fileHash\":\"cdd6e951c90483aa07c107b1a00e2c82167810ca7523f2449138a070e934da62e55e746da4947eacaff5692a71c39cff43e27c41ee41bbe79b4459ca4720db21\",\"type\":\"Unknown\"}, Arg 2: undefined, Return Value: false\r\nworkbench.main.js:238 [Extension Host] Python Extension: setGlobalInterpreter, Class name = f, Arg 1: {\"architecture\":3,\"path\":\"/usr/bin/python\",\"version\":{\"raw\":\"3.7.3-final\",\"major\":3,\"minor\":7,\"patch\":3,\"prerelease\":[\"final\"],\"build\":[],\"version\":\"3.7.3-final\"},\"sysPrefix\":\"/usr\",\"fileHash\":\"4399b1f9f46fd0eb65553c9cdc3826517b80fa4937cd32d858a5c09438b79f3a04f4998e30768e875c25e97c47c364920e12093a55590edfe900d750f469af23\",\"type\":\"Unknown\",\"displayName\":\"Python 3.7.3 64-bit\"}, Arg 2: undefined, Return Value: false\r\nworkbench.main.js:238 [Extension Host] Python Extension: Rule = cachedInterpreters, result = runNextRule\r\nworkbench.main.js:238 [Extension Host] Python Extension: Executing next rule from cachedInterpreters\r\n\r\n```\r\n\u003c/details>\n\n---\n\n@karrtikr commented on [Wed May 22 2019](https://github.com/microsoft/vscode-python/issues/5703#issuecomment-494510144)\n\nPlease create a `.env` file in the root directory with content `PYTHONPATH=./src`, and see if that resolves the warnings.\n\n---\n\n@potens1 commented on [Wed May 22 2019](https://github.com/microsoft/vscode-python/issues/5703#issuecomment-494692602)\n\nHi,\r\nI created it, tried with `.src`, `./src`, or `src`, and no, it does not change anything.\r\nBy the way, in my `setup.py`, the `package_dir` already specify where to find the package (if this should/could be understood by the extension)\r\n\r\n\r\n\r\nThank you\n\n---\n\n@karrtikr commented on [Wed May 22 2019](https://github.com/microsoft/vscode-python/issues/5703#issuecomment-494894511)\n\nSetting `PYTHONPATH=./src` and reloading is expected to find `sandbox`. Moving this issue, please follow up in the mentioned link.\n\n","author":{"url":"https://github.com/karrtikr","@type":"Person","name":"karrtikr"},"datePublished":"2019-05-22T17:24:10Z","url":"https://github.com/microsoft/python-language-server/issues/1118"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5bfaf272-d389-7fec-e275-b2f22ab5bdfc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEDE:32EBEA:6B268D:923FE2:6AFE686F |
| html-safe-nonce | c51c28344495af88b8e95f41f741c4cd4b8b608409c2d85642b0ff289b4a7082 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRURFOjMyRUJFQTo2QjI2OEQ6OTIzRkUyOjZBRkU2ODZGIiwidmlzaXRvcl9pZCI6Ijc5NzAyMDkxNDU1NjUzNzQ1NzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 73827be35ba3d6a13c2dcabeac921e4647f4d9fdf196ef521c74174fe0613609 |
| hovercard-subject-tag | issue:447255901 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/1118/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e5fcc6f54161ef4acc810c4724340817e94438b84d6ebdded345fef791127447/microsoft/python-language-server/issues/1118 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e5fcc6f54161ef4acc810c4724340817e94438b84d6ebdded345fef791127447/microsoft/python-language-server/issues/1118 |
| og:image:alt | potens1 commented on Tue May 21 2019 Environment data VS Code version: 1.34.0 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Linux Arch Python version (& d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | karrtikr |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 145901977 |
| octolytics-dimension-repository_nwo | microsoft/python-language-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145901977 |
| octolytics-dimension-repository_network_root_nwo | microsoft/python-language-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width