René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1000decf-5185-4bb9-d9f2-829297048225
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEDE8:23D6A2:554784:7AE9E7:6A4E313A
html-safe-nonce60caf741bda9811ecadba330bd40a6935395be8019a62bfe5113d6a19e2d150b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFREU4OjIzRDZBMjo1NTQ3ODQ6N0FFOUU3OjZBNEUzMTNBIiwidmlzaXRvcl9pZCI6IjcxOTE2MzIxMDI3OTM1NTYyODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac784f65a20b954e169651cc8c8d2fd70d175d16ebfcd1668c531ed0fdf3ce22a1
hovercard-subject-tagissue:358187879
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/71/issue_layout
twitter:imagehttps://opengraph.githubassets.com/adc0089c81f904da61394d91069a0677ca6e3a2d17fb3ec8a9e7b50445db9df9/microsoft/python-language-server/issues/71
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/adc0089c81f904da61394d91069a0677ca6e3a2d17fb3ec8a9e7b50445db9df9/microsoft/python-language-server/issues/71
og:image:altIssue 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMikhailArkhipov
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
turbo-cache-controlno-preview
go-importgithub.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id145901977
octolytics-dimension-repository_nwomicrosoft/python-language-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id145901977
octolytics-dimension-repository_network_root_nwomicrosoft/python-language-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release42a6d378d7587a44c93aca255096cd66b7c8eb2d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/python-language-server/issues/71#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F71
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F71
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fpython-language-server
Reloadhttps://github.com/microsoft/python-language-server/issues/71
Reloadhttps://github.com/microsoft/python-language-server/issues/71
Reloadhttps://github.com/microsoft/python-language-server/issues/71
Please reload this pagehttps://github.com/microsoft/python-language-server/issues/71
microsoft https://github.com/microsoft
python-language-serverhttps://github.com/microsoft/python-language-server
Notifications https://github.com/login?return_to=%2Fmicrosoft%2Fpython-language-server
Fork 131 https://github.com/login?return_to=%2Fmicrosoft%2Fpython-language-server
Star 921 https://github.com/login?return_to=%2Fmicrosoft%2Fpython-language-server
Code https://github.com/microsoft/python-language-server
Issues 309 https://github.com/microsoft/python-language-server/issues
Pull requests 6 https://github.com/microsoft/python-language-server/pulls
Projects https://github.com/microsoft/python-language-server/projects
Models https://github.com/microsoft/python-language-server/models
Wiki https://github.com/microsoft/python-language-server/wiki
Security and quality 0 https://github.com/microsoft/python-language-server/security
Insights https://github.com/microsoft/python-language-server/pulse
Code https://github.com/microsoft/python-language-server
Issues https://github.com/microsoft/python-language-server/issues
Pull requests https://github.com/microsoft/python-language-server/pulls
Projects https://github.com/microsoft/python-language-server/projects
Models https://github.com/microsoft/python-language-server/models
Wiki https://github.com/microsoft/python-language-server/wiki
Security and quality https://github.com/microsoft/python-language-server/security
Insights https://github.com/microsoft/python-language-server/pulse
Python Language Server doesn't seem to work with namespace packageshttps://github.com/microsoft/python-language-server/issues/71#top
https://github.com/AlexanderSher
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
feature: importshttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20imports%22
Dec 2018.1https://github.com/microsoft/python-language-server/milestone/6
https://github.com/MikhailArkhipov
MikhailArkhipovhttps://github.com/MikhailArkhipov
on Sep 7, 2018https://github.com/microsoft/python-language-server/issues/71#issue-358187879
https://github.com/ionelmc/python-namelesshttps://github.com/ionelmc/python-nameless
AlexanderSherhttps://github.com/AlexanderSher
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
feature: importshttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22feature%3A%20imports%22
Dec 2018.1https://github.com/microsoft/python-language-server/milestone/6
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.