Title: Python Language Server doesn't seem to work with namespace packages · Issue #71 · microsoft/python-language-server · GitHub
Open Graph Title: Python Language Server doesn't seem to work with namespace packages · Issue #71 · microsoft/python-language-server
X Title: Python Language Server doesn't seem to work with namespace packages · Issue #71 · microsoft/python-language-server
Description: Issue Type: Bug I'm using the bare package made by python-cookiecutter here: https://github.com/ionelmc/python-nameless A fresh checkout followed by a pipenv install -e . results in a couple of problems for VSCode: It can't find tests, t...
Open Graph Description: Issue Type: Bug I'm using the bare package made by python-cookiecutter here: https://github.com/ionelmc/python-nameless A fresh checkout followed by a pipenv install -e . results in a couple of pro...
X Description: Issue Type: Bug I'm using the bare package made by python-cookiecutter here: https://github.com/ionelmc/python-nameless A fresh checkout followed by a pipenv install -e . results in a couple of...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/71
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python Language Server doesn't seem to work with namespace packages","articleBody":"Issue Type: \u003cb\u003eBug\u003c/b\u003e\r\n\r\nI'm using the bare package made by python-cookiecutter here:\r\nhttps://github.com/ionelmc/python-nameless\r\n\r\nA fresh checkout followed by a `pipenv install -e .` results in a couple of problems for VSCode:\r\n\r\n1. It can't find tests, though they are in the root, or more accurately, it says it can't find the tests, but if I look at the output log, it's running the tests, but failing on the initial import:\r\n\r\n```\r\n============================= test session starts ==============================\r\nplatform darwin -- Python 3.6.5, pytest-3.7.3, py-1.6.0, pluggy-0.7.1\r\nrootdir: /Users/mjf/dev/python-nameless, inifile: setup.cfg\r\ncollected 0 items / 2 errors\r\n\r\n==================================== ERRORS ====================================\r\n___________________ ERROR collecting tests/test_nameless.py ____________________\r\ntests/test_nameless.py:2: in \u003cmodule\u003e\r\n from nameless.cli import main\r\nE ModuleNotFoundError: No module named 'nameless'\r\n___________________ ERROR collecting tests/test_nameless.py ____________________\r\nImportError while importing test module '/Users/mjf/dev/python-nameless/tests/test_nameless.py'.\r\nHint: make sure your test modules/packages have valid Python names.\r\nTraceback:\r\ntests/test_nameless.py:2: in \u003cmodule\u003e\r\n from nameless.cli import main\r\nE ModuleNotFoundError: No module named 'nameless'\r\n=========================== short test summary info ============================\r\nERROR tests/test_nameless.py\r\nERROR tests/test_nameless.py\r\n!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!\r\n=========================== 2 error in 0.12 seconds ============================\r\n__________There was an error in identifying unit tests in tests/test_nameless.py__________\r\n___________________ ERROR collecting tests/test_nameless.py ____________________\r\ntests/test_nameless.py:2: in \u003cmodule\u003e\r\n from nameless.cli import main\r\nE ModuleNotFoundError: No module named 'nameless'\r\n__________There was an error in identifying unit tests in tests/test_nameless.py__________\r\n___________________ ERROR collecting tests/test_nameless.py ____________________\r\nImportError while importing test module '/Users/mjf/dev/python-nameless/tests/test_nameless.py'.\r\nHint: make sure your test modules/packages have valid Python names.\r\nTraceback:\r\ntests/test_nameless.py:2: in \u003cmodule\u003e\r\n from nameless.cli import main\r\nE ModuleNotFoundError: No module named 'nameless'\r\n__________There was an error in identifying unit tests in ============ short test summary info__________\r\n=========================== short test summary info ============================\r\nERROR tests/test_nameless.py\r\nERROR tests/test_nameless.py\r\n!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!\r\n\r\n```\r\n\r\n2. Opening a python file `src/__main__.py` shows green error lines on the `from nameless.cli import main`... it can't find nameless.cli with the following message in the tooltip: \"[Python (analysis)] Unable to resolve 'nameless.cli'. IntelliSense may be missing for this module.\"\r\n\r\nThis isn't my code, but my code was made with this tool, and using this package directly from checkout should help eliminate any pilot error of my own doing :-)\r\n\r\nExtension version: 2018.8.0\r\nVS Code version: Code 1.27.1 (5944e81f3c46a3938a82c701f96d7a59b074cfdc, 2018-09-06T09:14:32.385Z)\r\nOS version: Darwin x64 17.7.0\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003eSystem Info\u003c/summary\u003e\r\n\r\n|Item|Value|\r\n|---|---|\r\n|CPUs|Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz (8 x 2300)|\r\n|GPU Status|2d_canvas: enabled\u003cbr\u003echecker_imaging: disabled_off\u003cbr\u003eflash_3d: enabled\u003cbr\u003eflash_stage3d: enabled\u003cbr\u003eflash_stage3d_baseline: enabled\u003cbr\u003egpu_compositing: enabled\u003cbr\u003emultiple_raster_threads: enabled_on\u003cbr\u003enative_gpu_memory_buffers: enabled\u003cbr\u003erasterization: unavailable_software\u003cbr\u003evideo_decode: enabled\u003cbr\u003evideo_encode: enabled\u003cbr\u003ewebgl: enabled\u003cbr\u003ewebgl2: enabled|\r\n|Load (avg)|2, 2, 2|\r\n|Memory (System)|16.00GB (0.21GB free)|\r\n|Process Argv|/Applications/Visual Studio Code.app/Contents/MacOS/Electron|\r\n|Screen Reader|no|\r\n|VM|0%|\r\n\r\n\u003c/details\u003e\r\n\u003c!-- generated by issue reporter --\u003e","author":{"url":"https://github.com/MikhailArkhipov","@type":"Person","name":"MikhailArkhipov"},"datePublished":"2018-09-07T19:38:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/71/python-language-server/issues/71"}
| 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:1000decf-5185-4bb9-d9f2-829297048225 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EDE8:23D6A2:554784:7AE9E7:6A4E313A |
| html-safe-nonce | 60caf741bda9811ecadba330bd40a6935395be8019a62bfe5113d6a19e2d150b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREU4OjIzRDZBMjo1NTQ3ODQ6N0FFOUU3OjZBNEUzMTNBIiwidmlzaXRvcl9pZCI6IjcxOTE2MzIxMDI3OTM1NTYyODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 784f65a20b954e169651cc8c8d2fd70d175d16ebfcd1668c531ed0fdf3ce22a1 |
| hovercard-subject-tag | issue:358187879 |
| 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/71/issue_layout |
| twitter:image | https://opengraph.githubassets.com/adc0089c81f904da61394d91069a0677ca6e3a2d17fb3ec8a9e7b50445db9df9/microsoft/python-language-server/issues/71 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/adc0089c81f904da61394d91069a0677ca6e3a2d17fb3ec8a9e7b50445db9df9/microsoft/python-language-server/issues/71 |
| og:image:alt | Issue Type: Bug I'm using the bare package made by python-cookiecutter here: https://github.com/ionelmc/python-nameless A fresh checkout followed by a pipenv install -e . results in a couple of pro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MikhailArkhipov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | 42a6d378d7587a44c93aca255096cd66b7c8eb2d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width